Azure / Azure/azure-databricks-client

VARIANT, GEOMETRY, GEOGRAPHY missing from DataType enum

Open
#302 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
87
Forks
73
Avg merge
1d 12h
Merged PRs (30d)
2

Description

Documentation: https://docs.databricks.com/api/workspace/tables/get
> [type_name](https://docs.databricks.com/api/workspace/tables/get#columns-type_name)
> Enum: `BOOLEAN | BYTE | SHORT | INT | LONG | FLOAT | DOUBLE | DATE | TIMESTAMP | STRING | BINARY | DECIMAL | INTERVAL | ARRAY | STRUCT | MAP | CHAR | NULL | USER_DEFINED_TYPE | TIMESTAMP_NTZ | VARIANT | GEOMETRY | GEOGRAPHY | TABLE_TYPE`

Implementation:
https://github.com/Azure/azure-databricks-client/blob/0a5fe346ef0b286e8dcc1da990423447820ff289/csharp/Microsoft.Azure.Databricks.Client/Models/UnityCatalog/DataTypeEnum.cs#L3-L26

Currently the following data types are missing, causing deserialization errors:
- `VARIANT`
- `GEOMETRY`
- `GEOGRAPHY`

Contributor guide

Open the contributing guide

Research direction

Open csharp/Microsoft.Azure.Databricks.Client/Models/UnityCatalog/DataTypeEnum.cs and compare the enum with the documented type_name values in the Databricks tables API. Confirm that VARIANT, GEOMETRY, and GEOGRAPHY are represented, then verify that Unity Catalog responses containing those values no longer fail deserialization.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
api
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.