Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.19.0
Description
Let's assume sql = SELECT SUBSTRING('ABC', 2)
When we use HiveSqlDialect and transform "sql", we expect SUBSTRING(' abc', 2),but get SUBSTRING(' abc' FROM 2) which is incorrect sql format in hive.
So maybe HiveSqlDialect behavior should be changed when transform function SUBSTRING:
- SELECT SUBSTRING('ABC', 2) => SELECT SUBSTRING('ABC', 2)
- SELECT SUBSTRING('ABC', 2, 3) => SELECT SUBSTRING('ABC', 2, 3)
- SELECT SUBSTRING('ABC' FROM 2) => SELECT SUBSTRING('ABC', 2)
- SELECT SUBSTRING('ABC' FROM 2 FOR 3) => SELECT SUBSTRING('ABC', 2, 3)
Attachments
Issue Links
- links to