This content has been marked as final.
Show 2 replies
-
1. Re: Teiid drops VARCHAR length, causing an HSQL syntax error
shawkins Feb 16, 2016 3:15 PM (in response to gsteinberg)1 of 1 people found this helpfulTeiid effectively ignores constraints on datatypes. The parsing support was added for DDL, but I don't see an explicit reference in the docs that they are effectively ignored in casts so one will need to be added.
The HSQL issue is a bug. The translator needs to be aware that the cast requires a length.
In general you'd want to use the the left function. You can also log an enhancement for Teiid to respect the length for a varchar cast.
-
2. Re: Teiid drops VARCHAR length, causing an HSQL syntax error
gsteinberg Feb 16, 2016 3:51 PM (in response to shawkins)Thanks, Steven.
I will create a bug for the HSQL issue. Unfortunately this query was created by Tableau, and I doubt I can convince it to use the LEFT function instead of a CAST to VARCHAR,