feat: Support bucket write with non partitioned table#13283
feat: Support bucket write with non partitioned table#13283JkSelf wants to merge 1 commit intofacebookincubator:mainfrom
Conversation
✅ Deploy Preview for meta-velox canceled.
|
|
Please revise pr title to indicate it's for bucket write. |
|
@aditi-pandit Can you help review this PR? Thanks! |
|
Do you receive the error message? |
rui-mo
left a comment
There was a problem hiding this comment.
Do you need to add some unit test? Thanks.
@jinchengchenghh Yes, removing the fallback logic in Gluen caused the following exception during unit testing. |
@rui-mo Yes. I will add the related unit tests later. Thanks. |
10063e5 to
584665b
Compare
| bucketProperty_, | ||
| compressionKind_, | ||
| getNumWriters(), | ||
| connector::hive::LocationHandle::TableType::kExisting, |
There was a problem hiding this comment.
#9740 only test the connector::hive::LocationHandle::TableType::kNew use case.
|
@aditi-pandit @majetideepak @xiaoxmeng @rui-mo @jinchengchenghh Can you help to review this PR? Thanks. |
584665b to
391dea7
Compare
|
@JkSelf : The origin of that check came from Presto behavior https://github.com/prestodb/presto/blob/master/presto-hive/src/main/java/com/facebook/presto/hive/HiveWriterFactory.java#L480.. though I don't think that is an inherent Hive limitation. Trino has fixed it trinodb/trino#1127. We should port that fix to Presto. Created an issue prestodb/presto#25104. But in general, I'm supportive of this change. |
|
apache/incubator-gluten#9575 can pass all the unit tests with this PR. |
|
@majetideepak @aditi-pandit @rui-mo @PHILO-HE Do you have any further comments? Thanks. |
aditi-pandit
left a comment
There was a problem hiding this comment.
Thanks @JkSelf. Looks good.
391dea7 to
13cca53
Compare
|
@bikramSingh91 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
|
@bikramSingh91 Can you help to merge this PR? Thanks. |
|
@bikramSingh91 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
|
@bikramSingh91 merged this pull request in f384796. |
The pull request at #9740 has already added support for bucket writing in non-partitioned tables. Consequently, this PR removes the check for buckets in non-partitioned tables within the getUpdateMode() function.