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-27925: HiveConf: unify ConfVars enum and use underscore for better readability #4919

Merged
merged 1 commit into from
Jan 3, 2024

Conversation

kokila-19
Copy link
Contributor

What changes were proposed in this pull request?

HiveConf: unify ConfVars enum and use underscore for better readability

Why are the changes needed?

Better readability

Does this PR introduce any user-facing change?

No

Is the change a dependency upgrade?

No

How was this patch tested?

Build and Unit tests.

Copy link

@aturoczy aturoczy left a comment

Choose a reason for hiding this comment

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

+1 it is just a rename refactor which is nice

+1 for @abstractdog for this detailed describtion:
When I read something like "BASICSTATSTASKSMAXTHREADSFACTOR" I feel someone in the world laughs out loud thinking of me struggling. I can read it, but I hate it imagine what if we have vars like HIVE_MATERIALIZED_VIEW_ENABLE_AUTO_REWRITING_SUBQUERY_SQL without underscores...okay, let me help, it is: HIVEMATERIALIZEDVIEWENABLEAUTOREWRITINGSUBQUERYSQL

Made my day :D

btw: This is a real and meaningful Hungarian word: megszentségteleníthetetlenségeskedéseitekért (same as our enums :) useless)

@aturoczy
Copy link

@ayushtkn @abstractdog @deniskuzZ Could you please check this PR as well. Many files are touched but it is a simple rename.

Copy link
Contributor

@abstractdog abstractdog left a comment

Choose a reason for hiding this comment

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

+1

Copy link

sonarcloud bot commented Jan 3, 2024

Quality Gate Passed Quality Gate passed

The SonarCloud Quality Gate passed, but some issues were introduced.

72 New issues
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@SourabhBadhya SourabhBadhya merged commit b33b3d3 into apache:master Jan 3, 2024
6 checks passed
tarak271 pushed a commit to tarak271/hive-1 that referenced this pull request Feb 9, 2024
…er readability (apache#4919) (Kokila N reviewed by Laszlo Bodor)
dengzhhu653 pushed a commit to dengzhhu653/hive that referenced this pull request Mar 7, 2024
…er readability (apache#4919) (Kokila N reviewed by Laszlo Bodor)
dongjoon-hyun added a commit to apache/spark that referenced this pull request Apr 2, 2024
…ctly

### What changes were proposed in this pull request?

This PR aims to use `HiveConf.getConfVars` or Hive config names directly to be robust on Hive incompatibility.

### Why are the changes needed?

Apache Hive 4.0.0 introduced incompatible changes on `ConfVars` enum via HIVE-27925.
- apache/hive#4919
- apache/hive#5107

`HiveConf.getConfVars` or config names is more robust way to handle this incompatibility.

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Pass the CIs.

### Was this patch authored or co-authored using generative AI tooling?

No.

Closes #45804 from dongjoon-hyun/SPARK-47679.

Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
@dom93dd
Copy link

dom93dd commented Apr 30, 2024

This change seems to break the compatibility with apache.iceberg.hive dependency:

E.g. here:
https://github.com/apache/iceberg/blob/6f0d9dd47c693dc2aa13a38fab3d56473d925563/hive-metastore/src/main/java/org/apache/iceberg/hive/HiveCatalog.java#L95

We have been using the HiveCatalog of apache.iceberg prior the newly introduced changes of 4.0.0 Alpha 1. With this change, this isn't possible anymore. Furthermore, if I switch to apache.hive HiveCatalog then the necessary included shading of fasterxml breaks everything. Because the JsonUtil class in apache.iceberg includes the fasterxml dependency without the relocated path. Anyone an idea what to do here?

Here is my feature request for apache.iceberg to introduce the ENV changes there too: apache/iceberg#10254

Here is my jira issue where I specified the current problem I have with the shading:
https://issues.apache.org/jira/browse/HIVE-28229

Thanks!

@dom93dd
Copy link

dom93dd commented May 3, 2024

If using Hive > 4.0.0 then use the iceberg shading dependency. All good here. Probably could be added to the ReadMe ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants