databricks / databricks-sql-nodejs

Databricks SQL Connector for Node.js
Apache License 2.0
24 stars 32 forks source link

Infer missing arrow schema #233

Closed kravets-levko closed 6 months ago

kravets-levko commented 7 months ago

Older DBR versions may not return a serialized Arrow schema in TGetResultSetMetadataResp. But schema in Arrow binary format is required to deserialize Arrow batches (which contain only rows). Python connector has a code that converts Hive schema to Arrow, and this PR adds similar solution to Node connector.

Fixes databricks/databricks-sql-nodejs#232