veghlaci05 commented on code in PR #5010:
URL: https://github.com/apache/hive/pull/5010#discussion_r1463174371


##########
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/txn/jdbc/queries/LatestTxnIdInConflictHandler.java:
##########
@@ -65,9 +66,12 @@ public String getParameterizedQueryString(DatabaseProduct 
databaseProduct) throw
 
   @Override
   public SqlParameterSource getQueryParameters() {
+    List<String> types = new ArrayList<>(2);
+    types.add(OperationType.UPDATE.getSqlConst());
+    types.add(OperationType.DELETE.getSqlConst());
     return new MapSqlParameterSource()
         .addValue("txnId", txnId)
-        .addValue("types", List.of(OperationType.UPDATE.getSqlConst(), 
OperationType.DELETE.getSqlConst()), Types.CHAR)
+        .addValue("types", types, Types.CHAR)

Review Comment:
   The java.util.List does not have .of() method. I accidentally imported 
`com.sun.tools.javac.util.List` which caused runtime issues, see 
[HIVE-28004](https://issues.apache.org/jira/browse/HIVE-28004). Honestly I have 
no idea why the tests did not fail on this one.



-- 
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]

Reply via email to