I have a SQL Server 2008 database set up as a Dremio source. When I try and run a SELECT that includes a CONCAT function call
SELECT A, CONCAT('pre-', "B") as PreB FROM TABLE
I get the following error:
com.microsoft.sqlserver.jdbc.SQLServerException: 'CONCAT' is not a recognized built-in function name.
CONCAT was not introduced to SQL server until 2012 but I had assumed Dremio would fallback on its own SQL engine?
2008 does allow string concatenation using +
but if I try that i get a calcite error:
org.apache.calcite.sql.validate.SqlValidatorException: Cannot apply '+' to arguments of type '<VARCHAR(4)>....'
Is there anyway to work around this?