databricks / databricks-cli

(Legacy) Command Line Interface for Databricks
Other
384 stars 234 forks source link

API Client is pointing to non-existent version (v2.1) of "lineage-tracking" API #566

Open liamperritt opened 1 year ago

liamperritt commented 1 year ago

API Client is pointing to a non-existent version (v2.1) of the "lineage-tracking" API, although the latest version of this API is still 2.0. This is causing the following error when trying to use the "lineage-tracking" API: Bad Target: /api/2.1/lineage-tracking/table-lineage/get

The bug is in this line of code: https://github.com/databricks/databricks-cli/blob/c62d8613b22cbc16f6314a6cdda956dfda84b383/databricks_cli/sdk/api_client.py#L189

The API Client is classifying "lineage-tracking" as a Unity Catalog API (which does have a v2.1), when it is actually a separate API.

liamperritt commented 1 year ago

Created Pull Request to fix the above issue: https://github.com/databricks/databricks-cli/pull/567