Repository navigation
Conversation
Contributor
Author
|
/gemini review |
Contributor
There was a problem hiding this comment.
Code Review
This pull request introduces a new lakehouseSortFields template parameter to the Parquet to Lakehouse YAML template, allowing users to specify the sort order of tables when they are created. The parameter has been added to the Java interface ParquetToLakehouseYaml, the lakehouse_options.yaml configuration, and the pipeline definition in ParquetToLakehouse.yaml. There are no review comments, and I have no feedback to provide.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note: this PR was auto-generated by tooling. Before moving it out of draft, the author has done a full review of the PR, specifically evaluating it on the following criteria:
generate_yaml_java_templates.py), Spotless, Checkstyle, and unit tests have been verifiedIf you have concerns with the PR or with the underlying methodology used to generate this, please comment below - they will be addressed by the author not the tooling :)
Part of #4425 (#4425).
Summary
Exposes the optional
sort_fieldsparameter onIcebergAddFilesinParquetToLakehouse.yaml:lakehouseSortFieldsparameter (order: 7) tolakehouse_add_files_optionsinyaml/src/main/python/options/lakehouse_options.yamlmatching Apache Beam'sIcebergAddFiles.sort_fieldsspecification (<term> [asc|desc] [nulls first|nulls last]).sort_fields: {{ lakehouseSortFields }}inside a{% if lakehouseSortFields %}guard inyaml/src/main/yaml/ParquetToLakehouse.yamlso existing jobs that omitlakehouseSortFieldsrender identically.yaml/src/main/java/com/google/cloud/teleport/templates/yaml/ParquetToLakehouseYaml.javaviagenerate_yaml_java_templates.py.Verification
lakehouseSortFieldsis omitted, empty string, and populated with sort order terms (["id asc", "day(ts) desc nulls last"]).generate_yaml_java_templates.pyoutput,generate_yaml_java_templates_test.py(5/5), Spotless, Checkstyle (0 violations), andmvn test-compile -pl yaml.