Hi, Is there a way I can create a physical dataset for a file/folder using JDBC? I have been creating dataset for a file on S3 in Dremio using REST API and Dremio UI but wanted to know if there is a way of doing this via JDBC as well? Wanted to do this in case a user only has a JDBC client to work with Dremio and wants to work with files in say S3 or any filesystem so are there any options for that? Or creating a PDS using REST or UI needs to be done first.
Example of what I am doing using REST is below:
{
“entityType”: “dataset”,
“id”: “dremio%3A%2FSamples%2Fsamples.dremio.com%2FDremio%20University%vendor_lookup.csv”,
“path”: [
“Samples”,
“samples.dremio.com”,
“Dremio University”,
“vendor_lookup.csv”
],
“type”: “PHYSICAL_DATASET”,
“format”: {
“type”: “Text”,
“fieldDelimiter”: “,”,
“lineDelimiter”: “\r\n”,
“escape”: “”",
“quote”: “”",
“skipFirstLine”: false,
“extractHeader”: true,
“trimHeader”: true,
“autoGenerateColumnNames”: false
}
}