-
Notifications
You must be signed in to change notification settings - Fork 4.8k
HIVE-29396: Drop the property hive.metastore.try.direct.sql.ddl #6265
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
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What change(in Postgres?) makes it possible to remove the flag?
We can delete the same parameters in HiveConf and some test cases as well.
common/src/java/org/apache/hadoop/hive/conf/HiveConf.java: METASTORE_TRY_DIRECT_SQL_DDL("hive.metastore.try.direct.sql.ddl", true,
ql/src/test/queries/clientpositive/alter_table_column_stats.q:-- Test for external tables with metastore.try.direct.sql.ddl as false
ql/src/test/queries/clientpositive/alter_table_column_stats.q:set metaconf:metastore.try.direct.sql.ddl=false;
standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/conf/MetastoreConf.java: TRY_DIRECT_SQL_DDL("metastore.try.direct.sql.ddl", "hive.metastore.try.direct.sql.ddl", true,
With the help of HIVE-26976, it's possible to recover from the direct sql by rolling back to the savepoint before sql execution, |
|
Makes sense for me if we update the three files. The test error looks related. |
Done, looks the latest failure isn't related |
|
@dengzhhu653 , HiveConf changes in this PR are big +1 , I need some input on how to deal with the deprecated Metastore configs present in HiveConf. For example: I had filed HIVE-29289 and the goal was to remove these configurations from HiveConf. Mostly these configs are used in test code. I was thinking of moving those tests in itests module to prevent cyclic depenedency if caused by adding metastore-comomon as dependency. Can you provide your thoughts on this? |
Not sure how it could introduce the cyclic depenedency, the hive-common has already contained the dependency on metastore-common, can you give an example? |
|



What changes were proposed in this pull request?
Why are the changes needed?
Does this PR introduce any user-facing change?
How was this patch tested?