[ https://issues.apache.org/jira/browse/HIVE-25707?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17482378#comment-17482378 ]
Zoltan Haindrich commented on HIVE-25707: ----------------------------------------- [~rahulp] yes; it could probably catch a lot of problematic cases I've wrote a test for it - but we run the sql-s using sqlline ; if I disable auto-commit - the file is executed without being committed in the end...unless the jdbc driver autocommit-s it... I leave a reference to my branch here - in case someone picks this up later https://github.com/kgyrtkirk/hive/tree/HIVE-25707-schematool-commit > SchemaTool may leave the metastore in-between upgrade steps > ----------------------------------------------------------- > > Key: HIVE-25707 > URL: https://issues.apache.org/jira/browse/HIVE-25707 > Project: Hive > Issue Type: Bug > Reporter: Zoltan Haindrich > Priority: Major > > it seems like: > * schematool runs the sql files via beeline > * autocommit is turned on > * pressing ctrl+c or killing the process will result in an invalid schema > https://github.com/apache/hive/blob/6e02f6164385a370ee8014c795bee1fa423d7937/beeline/src/java/org/apache/hive/beeline/schematool/HiveSchemaTool.java#L79 -- This message was sent by Atlassian Jira (v8.20.1#820001)