Skip to content
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 write to Nimble table in HiveConnector #10941

Closed
wants to merge 1 commit into from

Conversation

Yuhta
Copy link
Contributor

@Yuhta Yuhta commented Sep 6, 2024

Summary:
Recent refactor #10915
breaks the capability to write to Nimble table in Hive connector, fix it.

Differential Revision: D62302602

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 6, 2024
Copy link

netlify bot commented Sep 6, 2024

Deploy Preview for meta-velox canceled.

Name Link
🔨 Latest commit 2e84c5a
🔍 Latest deploy log https://app.netlify.com/sites/meta-velox/deploys/66df26103dd9ab00084ebb8b

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D62302602

Copy link
Contributor

@xiaoxmeng xiaoxmeng left a comment

Choose a reason for hiding this comment

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

@Yuhta thanks!

@@ -993,12 +993,20 @@ void updateWriterOptionsFromHiveConfig(
const std::shared_ptr<const HiveConfig>& hiveConfig,
const config::ConfigBase* sessionProperties,
std::shared_ptr<dwio::common::WriterOptions>& writerOptions) {
if (fileFormat == dwio::common::FileFormat::PARQUET) {
switch (fileFormat) {
Copy link
Contributor

Choose a reason for hiding this comment

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

@Yuhta should we make this a virtual call to remove the switch?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's not possible because the virtual call would be in file readers/writers and we need the Hive information here. File formats cannot depend on Hive but the reverse is good.

Copy link
Contributor

Choose a reason for hiding this comment

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

@Yuhta Is there an actual dependency on Hive in these functions? It seems like all they are doing is fetching configs, and the parsing and fetching of these configs probably belongs with the file writer library itself. Similar to what we did for other parquet configs recently.

Copy link
Contributor Author

@Yuhta Yuhta Sep 9, 2024

Choose a reason for hiding this comment

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

It seems our change to WriterOptions is refactored in the mentioned PR. Let's merge this to unblock clients and address the dispatch problem in subsequent diff. One possible solution is to move only the Hive config keys (this should be only one header file and dependency free) into dwio/common, since dw here is almost equivalent to Hive. CC: @xiaoxmeng

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D62302602

Yuhta added a commit to Yuhta/velox that referenced this pull request Sep 6, 2024
Summary:
Pull Request resolved: facebookincubator#10941

Recent refactor facebookincubator#10915
breaks the capability to write to Nimble table in Hive connector, fix it.

Reviewed By: xiaoxmeng

Differential Revision: D62302602
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D62302602

Yuhta added a commit to Yuhta/velox that referenced this pull request Sep 6, 2024
Summary:
Pull Request resolved: facebookincubator#10941

Recent refactor facebookincubator#10915
breaks the capability to write to Nimble table in Hive connector, fix it.

Reviewed By: xiaoxmeng

Differential Revision: D62302602
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D62302602

Yuhta added a commit to Yuhta/velox that referenced this pull request Sep 9, 2024
Summary:
Pull Request resolved: facebookincubator#10941

Recent refactor facebookincubator#10915
breaks the capability to write to Nimble table in Hive connector, fix it.

Reviewed By: xiaoxmeng

Differential Revision: D62302602
Summary:
Pull Request resolved: facebookincubator#10941

Recent refactor facebookincubator#10915
breaks the capability to write to Nimble table in Hive connector, fix it.

Reviewed By: xiaoxmeng

Differential Revision: D62302602
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D62302602

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in d9e0e9b.

Copy link

Conbench analyzed the 1 benchmark run on commit d9e0e9bd.

There were no benchmark performance regressions. 🎉

The full Conbench report has more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants