I am trying to create a new data source in Dremio using REST API.
While the docs are pretty decent, they lack real examples which is where I fail.
So wanting to add a new data source I do the following REST calls:
I am getting HTTP 400 with a message that the entity to promote with a given path does not exist (when I can verify it does)
Anybody with any experience using Dremio's REST should be able to shed some light.
Thank you!
Can you describe your PHYSICAL_DATASET
can you add an example of your code and file here
here example for csv
authenticate to get token
Call POST localhost:9047/api/v3/catalog/{id}
{ "entityType": "dataset", "path": ["REST", "data.csv"], "type": "PHYSICAL_DATASET", "format": { "type": "Text", "fieldDelimiter": ",", "lineDelimiter": "\n", "quote": """, "escape": """, "skipFirstLine": false, "extractHeader": true, "trimHeader": false, "autoGenerateColumnNames": true }
}
to get {id} localhost:9047/api/v3/catalog/by-path/SPACE/FILE =>"id": ? {id} should be URLencoded