Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.19.0
Description
Let's assume sql = SELECT TRIM(' str ')
When we use HiveSqlDialect and transform "sql", we expect SELECT TRIM(' str '),but get SELECT TRIM(BOTH ' ' FROM ' str ') which is incorrect sql format in hive.
So maybe HiveSqlDialect behavior should be changed when transform function trim:
- SELECT TRIM(' str ') => SELECT TRIM(' str ')
- SELECT TRIM(BOTH ' ' from ' str ') => SELECT TRIM(' str ')
- SELECT TRIM(LEADING ' ' from ' str ') => SELECT LTRIM(' str ')
- SELECT TRIM(TRAILING ' ' from ' str ')=> SELECT RTRIM(' str ')
Attachments
Issue Links
- links to