Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

ERROR: SELECT query reserved (but escaped) colum name breaks in DESCRIBE

avatar
Visitor

I'm sending a simple SELECT query using jdbc4 2.5.22 to a table which is named using a reserved key (Symbol).

I've escaped the table name with backticks but the query fails as if it didn;t recognise the escaping.

 

The error happen not on the SELECT query but on a hidden DESCRIBE query

the error doesn't happen with jdbc3 2.5.5

1 ACCEPTED SOLUTION

avatar

Can you try enabling "use native query"? The driver will send the query to Impala verbatim (sometimes the driver may make some changes to the SQL).

 

http://www.cloudera.com/content/cloudera/en/documentation/connectors/latest/PDF/Cloudera-JDBC-Driver...

 

View solution in original post

1 REPLY 1

avatar

Can you try enabling "use native query"? The driver will send the query to Impala verbatim (sometimes the driver may make some changes to the SQL).

 

http://www.cloudera.com/content/cloudera/en/documentation/connectors/latest/PDF/Cloudera-JDBC-Driver...