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

Issue with casting arrays #637

Open
gyoza opened this issue Jan 26, 2024 · 1 comment
Open

Issue with casting arrays #637

gyoza opened this issue Jan 26, 2024 · 1 comment

Comments

@gyoza
Copy link

gyoza commented Jan 26, 2024

query

SELECT array_to_string('tags') FROM stream LIMIT 10;

Error in parseable server

parseable-server-d475ccd9b-bkxz4 server-server thread 'actix-rt|system:0|arbiter:1' panicked at /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/datafusion-physical-expr-32.0.0/src/array_expressions.rs:1506:54:
parseable-server-d475ccd9b-bkxz4 server-server index out of bounds: the len is 1 but the index is 1
parseable-server-d475ccd9b-bkxz4 server-server note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Let me know if you need anything. Running on 'Edge'

@nitisht
Copy link
Member

nitisht commented Jan 29, 2024

@gyoza can you try like array_to_string(array, delimiter), in this case the delimiter is ^.

Ref: https://arrow.apache.org/datafusion/user-guide/sql/scalar_functions.html#array-to-string

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

3 participants