delta-sharing icon indicating copy to clipboard operation
delta-sharing copied to clipboard

Protocol spec does not specify the Content-Type of the POST body for reading table data.

Open rustyconover opened this issue 2 years ago • 4 comments

The current Delta Sharing protocol document does not specify what the content type should be of the POST body for the

{prefix}/shares/{share}/schemas/{schema}/tables/{table}/query endpoint.

DataBricks currently uses x-www-form-urlencoded when making requests for data, but the data of the body is actually JSON. To be correct it should use application/json as the content type.

rustyconover avatar Feb 13 '23 16:02 rustyconover

Hi @rustyconover , do you mind sharing how you discovered that "DataBricks currently uses x-www-form-urlencoded when making requests for data"?

zhuansunxt avatar Feb 13 '23 20:02 zhuansunxt

Hi @zhuansunxt I logged the incoming request to the sharing server.

rustyconover avatar Feb 13 '23 20:02 rustyconover

@rustyconover did you start your own sharing server?

linzhou-db avatar Feb 15 '23 00:02 linzhou-db

Yes, I did.

rustyconover avatar Feb 15 '23 03:02 rustyconover