HIVE-29396: Drop the property hive.metastore.try.direct.sql.ddl#6265
HIVE-29396: Drop the property hive.metastore.try.direct.sql.ddl#6265dengzhhu653 merged 2 commits intoapache:masterfrom
Conversation
There was a problem hiding this comment.
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? |
|
|
LGTM +1 |
I'm will work on HIVE-29289 and will discuss more under that following JIRA. |
|
Thanks for the review @okumin, @Aggarwal-Raghav! |



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?