databricks-cli icon indicating copy to clipboard operation
databricks-cli copied to clipboard

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

Open liamperritt opened this issue 3 years ago • 1 comments

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 avatar Oct 16 '22 22:10 liamperritt

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

liamperritt avatar Oct 17 '22 02:10 liamperritt