Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

createScalarFunction UDF with Utf8 return type not working as expected #1882

Open
Raviston6296 opened this issue Oct 7, 2024 · 1 comment

Comments

@Raviston6296
Copy link

What happens?

Scalar udf not working as expected for return type Utf8

To Reproduce

Basically create a UDF that returns the exact value. The results will all turn into \u0000

Screenshot 2024-10-07 at 3 31 41 PM

// Function to append 'data' to the input string
function stringTest(a) {
  try {
    return a + "hello";
  }catch(ex){
    console.log(ex)
  }
}

conn.createScalarFunction('stringTest', new Utf8(), stringTest);

Browser/Environment:

Firefox 130.0

Device:

macOS 14.1.1 (23B81)

DuckDB-Wasm Version:

1.28.1-dev106.0

DuckDB-Wasm Deployment:

duckdb wasm browser

Full Name:

Raviston Thanasekar

Affiliation:

None

@Raviston6296
Copy link
Author

Guys please tell, was that issue is from my side or yours ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant