-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add option to HiveDataSink to always create a file (#12331)
Summary: Pull Request resolved: #12331 This change adds an option to HiveDataSink (plumbed via HiveInsertTableHandle) to always create a file. This is useful for query engines that write bucketed tables by running a Task per output bucket rather than by setting the HiveBucketProperty. In this case, even if there is no data to process, Velox will still produce an empty file for the output bucket. Note that this option is not possible to support when the HiveBucketProperty is set or there a partition keys in the data, as this means that the number of files/directories respectively is determined at runtime from the input data. Checks for this are enforced at plan generation time. Reviewed By: Yuhta Differential Revision: D69629165 fbshipit-source-id: d3ea37c4ad58c1562e3940f35595ffdfade70c90
- Loading branch information
1 parent
704aaf7
commit 7861409
Showing
7 changed files
with
181 additions
and
18 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.