DuckDB 2.0.1 rejected by Databricks Unity Catalog Delta API when creating/writing to a managed table

Aperta
#174 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Attiva
Stack tecnologico
azure, python

Direzione di ricerca

Start by locating where the extension builds the User-Agent for Unity Catalog HTTP requests and where it requests storage credentials with operation=READ_WRITE for managed Delta writes. Reproduce the staging-endpoint failure from the DuckDB CLI, then compare the request with the UC Delta API's required User-Agent format. Done means creating and inserting into a UC managed Delta table succeeds from DuckDB with an accepted User-Agent.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Hey everyone,

I’m having trouble writing to a Databricks Unity Catalog managed table from DuckDB. I’m unsure whether the fix belongs on the Databricks side, but I’m posting here in case someone has run into this.

I’m using DuckDB 2.0.1 on macOS ARM64 with up-to-date unity_catalog, delta, and azure extensions. Creating a managed Delta table fails at the staging endpoint. If I create the table in a Databricks notebook with catalog commits enabled, DuckDB can read it with a read-only attachment. An INSERT into that same table still fails when DuckDB requests storage credentials with operation=READ_WRITE.

HTTP 400 Bad Request

The UC Delta API requires clients to identify the calling application in the User-Agent header. The provided User-Agent 'duckdb/v2.0.1(osx_arm64) cli 8d78114e90' is insufficient. Please set an explicit User-Agent to ensure data safety and auditability.

The custom User-Agent values I tested were also rejected. Has anyone gotten managed Delta writes working with DuckDB 2.0.1 on Azure Databricks? Which configuration worked for you?

Thanks, Stefan

Lingua principale
Python
Stelle
111
Fork
50
Merge medio
1g 8h
PR unite (30g)
9

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di duckdb/unity_catalog

Tutte le issue di duckdb/unity_catalog

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.