Ashish Pancholi
Ashish Pancholi

Reputation: 23

Apache Superset /api/v1/dataset/ is not working for uploading the new csv file as creating a new dataset

I am new to Apache Superset and I am trying to create a new dataset by directly uploading the CSV file using /api/v1/dataset/. Here is what I am trying to do using Postman.

enter image description here

enter image description here

enter image description here

curl --location 'http://<host_ip>:8088/api/v1/dataset' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJmcmVzaCI6dHJ1ZSwiaWF0IjoxNzM4MTQ2MTYzLCJqdGkiOiJlZTUyZWJiZC01ODc4LTQyYzItOTE0Yy0zNGJkOWQ2YjA3YTUiLCJ0eXBlIjoiYWNjZXNzIiwic3ViIjoxLCJuYmYiOjE3MzgxNDYxNjMsImNzcmYiOiI4NDY2ZjE2My02NzcxLTQ0OWEtYjBhZS04ZWY1NzYzYjE4YWUiLCJleHAiOjE3MzgxNDcwNjN9.4yVFuhkltWNncHMzfqtOYP-LitDUrsWMoQotRlMN6Uo' \
--header 'Cookie: session=eyJfZnJlc2giOmZhbHNlLCJjc3JmX3Rva2VuIjoiZjlkYzliMzA2MmUzODllOTQ3NmEyNzgyMGMzODY3MjlmMjVlOGRkMCIsImxvY2FsZSI6ImVuIn0.Z5nnRA.BBRjDUe0E2s6pFYa-5b7Pgv_y9o' \
--form 'database="4"' \
--form 'table_name="sample"' \
--form 'file=@"/C:/Users/ashis/Downloads/sample.csv"' \
--form 'datasource_name="sample"'

And as you can see, if I have to do the same from APache Superset GUI then we should have to select the database, schema and table which is shown below and they do exist

enter image description here

So if I am trying to do the same with using Postman, why I am not seeing the dataset created? One strange thing happens is it always returns the 200 status code but dataset is not being created.

Upvotes: 0

Views: 29

Answers (0)

Related Questions