Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Won't Do
-
None
-
None
-
None
Description
Considering such query:
"SELECT a, case when c = 'Hi' then 'ARRIVAL' else 'DEPARTURE' end as cc, b FROM sourceTable"
The result type of case when will be BasicSqlType with precision 9. This makes "ARRIVAL" to "ARRIVAL " with two spaces behind. But what users want is just "ARRIVAL".
Also users may write the following query(with one space behind ARRIVAL):
"SELECT a, case when c = 'Hi' then 'ARRIVAL ' else 'DEPARTURE' end as cc, b FROM sourceTable"
The result type of case when will also be BasicSqlType with precision 9, which makes no differences to the first query.