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: 

spark databricks jdbc driver integration return rows having column names as values

manohar3
New Contributor III

Hi all,

i am using below to code to query table but query returns rows having column names as values

spark.read
.format("jdbc")
.option("url", "jdbc:databricks://acme.cloud.databricks.com:443/myschema;transportMode=http;ssl=1;httpPath=<httppath>;AuthMech=3;UID=token;PWD=<token>;")
.option("dbtable", "mytable")
.load().show()

+---+---------+
|key|value|
+---+---------+
|key|value|
|key|value|
|key|value|
|key|value|

jdbc driver version is 2.6.36

note that odbc driver works but i dont support struct, map, array as column names .


 

1 ACCEPTED SOLUTION

Accepted Solutions

manohar3
New Contributor III
2 REPLIES 2

manohar3
New Contributor III

any idea what causing this? please note that above query i am running from standalone spark application also when i run above in databricks notebook i see expected result

manohar3
New Contributor III

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