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:ย 

ResultSet metadata does not return correct type for TIMESTAMP_NTZ

EricCournarie
New Contributor III

Hello, using the JDBC driver, when I retrieve the metadata of a ResultSet, the type for a TIMESTAMP_NTZ is not correct (it's a TIMESTAMP one).

My SQL is a simple SELECT * on a table where you have a TIMESTAMP_NTZ column

This works when retrieving metadata for a table , where the correct type is retrieved.

Thanks for your help

Eric

 

8 REPLIES 8

saurabh18cs
Honored Contributor II

Hi @EricCournarie  I think this is a JDBC driver limitation. Looks it reports generic type which is TIMESTAMP.

Khaja_Zaffer
Contributor III

Hello @EricCournarie 

Good day!!

This is explicitly noted in the Databricks documentation for the TIMESTAMP_NTZ type 
"TIMESTAMP_NTZ is not supported in Databricks JDBC/ODBC drivers or Databricks open source drivers."
 
 
 
You can use TIMESTAMP or TIMESTAMP_LTZ in your table schema instead, as these are fully supported.

EricCournarie
New Contributor III

Hi, thanks for the response !

ok,as it was working on table metadata, I thought the doc was not up to date.. so it's partially supported. 

do you know if there is any chance it will be fully supported in some 'near' future ?

Thanks

szymon_dybczak
Esteemed Contributor III

Hi @EricCournarie ,

It seems that they added support for timestamp_ntz in open source version of the driver. At least, following PR suggest that. Try to use OSS driver version and maybe it will work ๐Ÿ™‚

[PECOBLR-108]support timestamp_ntz by shivam2680 ยท Pull Request #725 ยท databricks/databricks-jdbc ยท ...

Hello, I did try switching to the OSS version , but it does not fix my problem

Thanks for your help anyway

hello @EricCournarie 

Thank you for your reply. 

You must contact your databricks account team(usually every company has a databricks account team) OR raise a ticket this link  https://help.databricks.com/s/contact-us?ReqType=training explaining the issue clearly so that it will be easy for supoort team to help easily.

Depending upon many such request or urgency they will start implementing the feature request.

Advika
Databricks Employee
Databricks Employee

Hello @EricCournarie!

Just to confirm, were you initially using the JDBC driver v2.7.3? According to the release notes, this version adds support for the TIMESTAMP_NTZ data type.

EricCournarie
New Contributor III

Yes, I was using the latest driver version

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