-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix comment on WRITE_OBJECT_STORE_PARTITIONED_PATHS
table property
#11798
base: main
Are you sure you want to change the base?
Fix comment on WRITE_OBJECT_STORE_PARTITIONED_PATHS
table property
#11798
Conversation
I believe this change is correct. The usage is: iceberg/core/src/main/java/org/apache/iceberg/LocationProviders.java Lines 130 to 134 in b9b61b1
|
@@ -244,7 +244,7 @@ private TableProperties() {} | |||
public static final String OBJECT_STORE_ENABLED = "write.object-storage.enabled"; | |||
public static final boolean OBJECT_STORE_ENABLED_DEFAULT = false; | |||
|
|||
// Excludes the partition values in the path when set to true and object store is enabled | |||
// Excludes the partition values in the path when set to false and object store is enabled |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: While this comment is correct, I feel like having the comment when the property is true reads a little bit more easy.
// Includes the partition values in the path when set to true and object store is enabled
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 to changing the comment as @amogh-jahagirdar suggested
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, I feel like this suggested wording could be misinterpreted as "object store must be enabled for partition values to be included" (but default location provision includes partition values), just as this PR's proposed wording could be read as, "to exclude partition values, you should disable this property and enable object store" (which is correct, modulo custom location provision).
I agree that a comment on when the property is true reads better but this PR's wording seems the least misunderstandable IMHO.
@ebyhr @amogh-jahagirdar @nastra thank you for reviewing - let me know your thoughts! Happy to be overruled here and make the suggested change if I'm being too pedantic, or to take other suggestions 😄
This pull request has been marked as stale due to 30 days of inactivity. It will be closed in 1 week if no further activity occurs. If you think that’s incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the [email protected] list. Thank you for your contributions. |
f4536aa
to
0bb2eb3
Compare
Any update on this? Happy to change if #11798 (comment) is baseless. I think fixing a misleading comment would be an improvement though. |
The code comment above the
WRITE_OBJECT_STORE_PARTITIONED_PATHS
constant inTableProperties
was incorrect - partition values are excluded when this property is set to false, not true, and object store is enabled, as stated in the docs. This PR fixes the comment to be consistent.