[ https://issues.apache.org/jira/browse/HIVE-25438?focusedWorklogId=636835&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-636835 ]
ASF GitHub Bot logged work on HIVE-25438: ----------------------------------------- Author: ASF GitHub Bot Created on: 11/Aug/21 09:52 Start Date: 11/Aug/21 09:52 Worklog Time Spent: 10m Work Description: maheshk114 commented on a change in pull request #2573: URL: https://github.com/apache/hive/pull/2573#discussion_r686677911 ########## File path: standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/DirectSqlUpdateStat.java ########## @@ -647,6 +653,12 @@ public long getNextCSIdForMPartitionColumnStatistics(long numStats) throws MetaE jdoConn = pm.getDataStoreConnection(); dbConn = (Connection) (jdoConn.getNativeConnection()); + if (sqlGenerator.getDbProduct().isMYSQL()) { + try (Statement stmt = dbConn.createStatement()) { + stmt.execute("SET @@session.sql_mode=ANSI_QUOTES"); + } + } + Review comment: done -- 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: gitbox-unsubscr...@hive.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 636835) Time Spent: 40m (was: 0.5h) > Update partition column stats fails with invalid syntax error for MySql > ----------------------------------------------------------------------- > > Key: HIVE-25438 > URL: https://issues.apache.org/jira/browse/HIVE-25438 > Project: Hive > Issue Type: Sub-task > Reporter: mahesh kumar behera > Assignee: mahesh kumar behera > Priority: Major > Labels: pull-request-available > Time Spent: 40m > Remaining Estimate: 0h > > The quotes are not supported by mysql if ANSI_QUOTES is not set. -- This message was sent by Atlassian Jira (v8.3.4#803005)