[ https://issues.apache.org/jira/browse/DRILL-4405?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15216175#comment-15216175 ]
Serge Harnyk commented on DRILL-4405: ------------------------------------- Doesn't reproduce in Drill 1.7. Solved in DRILL-4372 > invalid Postgres SQL generated for CONCAT (literal, literal) > ------------------------------------------------------------- > > Key: DRILL-4405 > URL: https://issues.apache.org/jira/browse/DRILL-4405 > Project: Apache Drill > Issue Type: Bug > Components: Storage - JDBC > Affects Versions: 1.5.0 > Reporter: N Campbell > Assignee: Serge Harnyk > > select concat( 'FF' , 'FF' ) from postgres.public.tversion > Error: DATA_READ ERROR: The JDBC storage plugin failed while trying setup the > SQL query. > sql SELECT CAST('FFFF' AS ANY) AS "EXPR$0" > FROM "public"."tversion" > plugin postgres > Fragment 0:0 > [Error Id: c3f24106-8d75-4a57-a638-ac5f0aca0769 on centos1:31010] > (org.postgresql.util.PSQLException) ERROR: syntax error at or near "ANY" > Position: 23 > org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse():2182 > org.postgresql.core.v3.QueryExecutorImpl.processResults():1911 > org.postgresql.core.v3.QueryExecutorImpl.execute():173 > org.postgresql.jdbc.PgStatement.execute():622 > org.postgresql.jdbc.PgStatement.executeWithFlags():458 > org.postgresql.jdbc.PgStatement.executeQuery():374 > org.apache.commons.dbcp.DelegatingStatement.executeQuery():208 > org.apache.commons.dbcp.DelegatingStatement.executeQuery():208 > org.apache.drill.exec.store.jdbc.JdbcRecordReader.setup():177 > org.apache.drill.exec.physical.impl.ScanBatch.<init>():108 > org.apache.drill.exec.physical.impl.ScanBatch.<init>():136 > org.apache.drill.exec.store.jdbc.JdbcBatchCreator.getBatch():40 > org.apache.drill.exec.store.jdbc.JdbcBatchCreator.getBatch():33 > org.apache.drill.exec.physical.impl.ImplCreator.getRecordBatch():147 > org.apache.drill.exec.physical.impl.ImplCreator.getChildren():170 > org.apache.drill.exec.physical.impl.ImplCreator.getRootExec():101 > org.apache.drill.exec.physical.impl.ImplCreator.getExec():79 > org.apache.drill.exec.work.fragment.FragmentExecutor.run():230 > org.apache.drill.common.SelfCleaningRunnable.run():38 > java.util.concurrent.ThreadPoolExecutor.runWorker():1142 > java.util.concurrent.ThreadPoolExecutor$Worker.run():617 > java.lang.Thread.run():745 > SQLState: null > ErrorCode: 0 -- This message was sent by Atlassian JIRA (v6.3.4#6332)