pvary commented on code in PR #5129:
URL: https://github.com/apache/hive/pull/5129#discussion_r1529156757
##########
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/ObjectStore.java:
##########
@@ -624,6 +624,40 @@ public boolean openTransaction(String isolationLevel) {
return result;
}
+ @Override
+ public int updateParameterWithExpectedValue(Table table, String key, String
expectedValue, String newValue)
+ throws MetaException {
+ String dml = String.format(
Review Comment:
Could we do something like this:
https://www.datanucleus.org/products/accessplatform_6_0/jdo/query.html#jdoql_bulkupdate
I would like to avoid:
- Writing strings to the queries based on table parameters
- Using native connection
If using jdo queries doesn't work, then I would create a method in
`MetaStoreDirectSql` for this, and throw an exception if directSql is not
turned on
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]