Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
Description
When use beeline for testing purpose:
beeline -u jdbc:hive2://
CREATE TABLE IF NOT EXISTS will not print AlreadyExistsException, but CREATE DATABASE IF NOT EXISTS will.
The error log may be confused because the sql actually execute successfully.
The root cause is that SemanticAnalyzer will fast-return if table exists:
https://github.com/apache/hive/blob/98d9d22398370f817fe64449368671b978fff096/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java#L14163-L14174
Attachments
Attachments
Issue Links
- links to