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
While trying to execute a custom function within an SQL query with return type string, instead of receiving the expected string value, we are consistently getting the result '\x00\x00...'
`
DuckDBUtil.connection.createScalarFunction('testmethod', new arrow.Utf8(), () => { return 'hello' });
const table = await DuckDBUtil.connection.query('SELECT testmethod() as COLUMN');
const row = table.toArray()[0]['COLUMN'];
`
row returns as '\x00\x00\x00\x00\x00' instead of 'hello'
Not sure if this is an issue with the function construction or an issue with receiving the data. Need some clarification on cracking this.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
While trying to execute a custom function within an SQL query with return type string, instead of receiving the expected string value, we are consistently getting the result '\x00\x00...'
`
DuckDBUtil.connection.createScalarFunction('testmethod', new arrow.Utf8(), () => { return 'hello' });
const table = await DuckDBUtil.connection.query('SELECT testmethod() as COLUMN');
const row = table.toArray()[0]['COLUMN'];
`
row returns as '\x00\x00\x00\x00\x00' instead of 'hello'
Not sure if this is an issue with the function construction or an issue with receiving the data. Need some clarification on cracking this.
Browser/Environment:
Chrome 129
Device:
macOS 14.7
DuckDB-Wasm Version:
1.28.1-dev106.0
DuckDB-Wasm Deployment:
duckdb wasm browser
Beta Was this translation helpful? Give feedback.
All reactions