You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to read data from a delta table in azure storage. The table was created using databricks (not sure if that matters). It is overall working. I can connect, I can describe the table, and I can select the correct number of rows, but all of the return values are null. I am using the nodejs client. The code looks like this:
const duckdb = require('duckdb');
const db = new duckdb.Database(':memory:', {
"access_mode": "READ_WRITE",
"max_memory": "512MB",
"threads": "4"
}, errHandler);
db.exec("FORCE INSTALL AZURE; LOAD AZURE; FORCE INSTALL DELTA from core_nightly; LOAD DELTA", errHandler)
db.exec(`CREATE SECRET azure_spn (
TYPE AZURE,
PROVIDER SERVICE_PRINCIPAL,
TENANT_ID '${AUTH_CONFIG.credentials.tenantID}',
CLIENT_ID '${AUTH_CONFIG.credentials.clientID}',
CLIENT_SECRET '${AUTH_CONFIG.credentials.clientSecret}',
ACCOUNT_NAME 'xxxxxxxxxxxxx'
)`, errHandler);
db.all(`DESCRIBE SELECT * FROM delta_scan('abfss://produced/qep/country')`, (err: Error, res: any) => {
if (err) { console.error(err); } else console.dir(res); });
db.all(`SELECT * FROM delta_scan('abfss://produced/qep/country')`, (err: Error, res: any) => {
if (err) { console.error(err); } else console.dir(res); });
HI,
I am trying to read data from a delta table in azure storage. The table was created using databricks (not sure if that matters). It is overall working. I can connect, I can describe the table, and I can select the correct number of rows, but all of the return values are null. I am using the nodejs client. The code looks like this:
But the output looks like this:
The text was updated successfully, but these errors were encountered: