cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Metadata on a prepared statement return upper case column names

EricCournarie
New Contributor III

Hello,

Using the JDBC Driver , when I check the metadata of a prepared statement, the column names names are all uppercase . This does not happen when running a DESCRIBE on the same select. 

Any properties to set , or it is a known issue ? or a workaround ?

SELECT `ColumnName` will return COLUMNNAME if I check PreparedStatement.getMetadata()

DESCRIBE SELECT `ColumnName` returns ColumnName

thanks for your help

Eric

2 REPLIES 2

gchandra
Databricks Employee
Databricks Employee

Looks like a bug. Can you try using double quotes?  SELECT "ColumnName" instead of backticks? 

 



~

Hello, thanks for answering

Sadly, changing the quoting does not change the result. Still uppercase with double quotes

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now