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

HIVE-26000: DirectSQL to prune partitions fails with postgres backend for Skewed-Partition tables #3073

Closed
wants to merge 1 commit into from

Conversation

nareshpr
Copy link
Contributor

@nareshpr nareshpr commented Mar 2, 2022

What changes were proposed in this pull request?

PartitionPruning via directSql is failing in postgres db for skewed tables

Why are the changes needed?

Fallback to ORM is taking long time

Does this PR introduce any user-facing change?

No

How was this patch tested?

We already have a testcase covering the issue (list_bucket_dml_4.q), it happens in postgres backend db.

Copy link
Member

@kgyrtkirk kgyrtkirk left a comment

Choose a reason for hiding this comment

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

please add tests

Copy link
Contributor

@nrg4878 nrg4878 left a comment

Choose a reason for hiding this comment

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

Change looks good to me.

@nareshpr
Copy link
Contributor Author

nareshpr commented Mar 3, 2022

please add tests

@kgyrtkirk We already have testcase covering this scenario(list_bucket_dml_4.q), but directSql failure happens only with postgres db if column is not quoted.

@nareshpr
Copy link
Contributor Author

nareshpr commented Mar 3, 2022

Thanks for the review @pvary and @nrg4878.

@nareshpr nareshpr changed the title HIVE-26000: DirectSQL to pruning partitions fails with postgres backend for Skewed-Partition tables HIVE-26000: DirectSQL to prune partitions fails with postgres backend for Skewed-Partition tables Mar 3, 2022
Copy link
Contributor

@zabetak zabetak left a comment

Choose a reason for hiding this comment

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

The fix looks reasonable to me so if it is tested locally I am fine merging this to master. Other than that having tests are good so following up on @kgyrtkirk comment I logged HIVE-26005. It would be nice to tackle this at some point but not necessarily as part of this PR.

@nareshpr
Copy link
Contributor Author

nareshpr commented Mar 4, 2022

Thanks for the review @zabetak. I verified the fix locally.

@nrg4878
Copy link
Contributor

nrg4878 commented Mar 7, 2022

please close this as I have merged to master this morning.

@marton-bod marton-bod closed this Mar 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
6 participants