Skip to content

Mr: Optimize schema string retrieval in Iceberg#10489

Merged
amogh-jahagirdar merged 1 commit into
apache:mainfrom
dzzxjl:bugfix-new
Jun 14, 2024
Merged

Mr: Optimize schema string retrieval in Iceberg#10489
amogh-jahagirdar merged 1 commit into
apache:mainfrom
dzzxjl:bugfix-new

Conversation

@dzzxjl
Copy link
Copy Markdown
Contributor

@dzzxjl dzzxjl commented Jun 13, 2024

This PR optimizes the retrieval of the schema string in Iceberg. Instead of calling props.getProperty(InputFormatConfig.TABLE_SCHEMA) twice, the method is now called once and the result is stored in the schemaString variable. This variable is then used for parsing the schema, reducing unnecessary method calls and improving code efficiency.

@github-actions github-actions Bot added the MR label Jun 13, 2024
Copy link
Copy Markdown
Contributor

@amogh-jahagirdar amogh-jahagirdar left a comment

Choose a reason for hiding this comment

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

Thanks for cleaning this up @dzzxjl , and the review @Fokko

@amogh-jahagirdar amogh-jahagirdar merged commit 42c3159 into apache:main Jun 14, 2024
jasonf20 pushed a commit to jasonf20/iceberg that referenced this pull request Aug 4, 2024
Co-authored-by: howieyang <howieyang@tencent.com>
sasankpagolu pushed a commit to sasankpagolu/iceberg that referenced this pull request Oct 27, 2024
Co-authored-by: howieyang <howieyang@tencent.com>
zachdisc pushed a commit to zachdisc/iceberg that referenced this pull request Dec 23, 2024
Co-authored-by: howieyang <howieyang@tencent.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants