Skip to content

Conversation

@xiarixiaoyao
Copy link
Contributor

@xiarixiaoyao xiarixiaoyao commented Apr 22, 2022

fixed all comments on #5376 and optimize the implementation of rewriteRecordWithNewSchema

@hudi-bot
Copy link
Collaborator

CI report:

Bot commands @hudi-bot supports the following commands:
  • @hudi-bot run azure re-run the last Azure build

@xiarixiaoyao
Copy link
Contributor Author

@nsivabalan @alexeykudinkin could you pls help me review this pr, thanks

@yihua yihua added area:schema Schema evolution and data types priority:medium Moderate impact; usability gaps labels Apr 27, 2022
result = parentNames.stream().collect(Collectors.joining("."));
}
return result;
return StreamSupport
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need for Stream you can just do String.join

@xushiyan xushiyan changed the title [MINOR] follow up HUDI-3921, address all comments [HUDI-3921] Improve rewriteRecordWithNewSchema and refactor code May 23, 2022
@xushiyan
Copy link
Member

@xiarixiaoyao can you please rebase and verify this patch via some testing? sorry about the delay. let's try to land this soon.

Map<Object, Object> map = (Map<Object, Object>) oldRecord;
Map<Object, Object> newMap = new HashMap<>();
fieldNames.push("value");
fieldNames.push(MAP_TYPE_VALUE_NAME);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the variable only used by this method, there is no need to make static variables, the JVM would cache the string constants.

@github-actions github-actions bot added the size:M PR with lines of changes in (100, 300] label Feb 26, 2024
@yihua
Copy link
Contributor

yihua commented Mar 7, 2024

@jonvex could you check if this PR is still needed?

@yihua yihua requested a review from jonvex March 7, 2024 07:06
@jonvex
Copy link
Contributor

jonvex commented Mar 7, 2024

A lot of the changes in this pr are already in master. I think it's probably ok to close this

@danny0405 danny0405 closed this Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:schema Schema evolution and data types priority:medium Moderate impact; usability gaps size:M PR with lines of changes in (100, 300]

Projects

Status: 🚧 Needs Repro
Status: ✅ Done
Status: Done

Development

Successfully merging this pull request may close these issues.

7 participants