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

Comparisons involving lists cause runtime failure #575

Open
mwylde opened this issue Mar 31, 2024 · 0 comments
Open

Comparisons involving lists cause runtime failure #575

mwylde opened this issue Mar 31, 2024 · 0 comments
Labels
Milestone

Comments

@mwylde
Copy link
Member

mwylde commented Mar 31, 2024

This query causes a failure at runtime

CREATE TABLE mastodon (
    value TEXT
) WITH (
    connector = 'sse',
    format = 'raw_string',
    endpoint = 'http://mastodon.arroyo.dev/api/v1/streaming/public',
    events = 'update'
);

SELECT tags FROM (
    SELECT extract_json(value, '$.tags[*].name') AS tags
    FROM mastodon)
WHERE tags != '[]'
2024-03-31T18:00:41.790792Z ERROR arroyo_server_common: panicked at crates/arroyo-worker/src/arrow/mod.rs:90:31:
should be able to compute batch: ArrowError(InvalidArgumentError("Invalid comparison operation: List(Field { name: \"item\", data_type: Utf8, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }) != List(Field { name: \"item\", data_type: Utf8, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} })"), None) panic.file="crates/arroyo-worker/src/arrow/mod.rs" panic.line=90 panic.column=31

We also get a failure comparing it with [], so this seems to be a general problem with comparing lists.

@mwylde mwylde added bug Something isn't working runtime-panic df-migration labels Mar 31, 2024
@mwylde mwylde added this to the 0.10 milestone Mar 31, 2024
@mwylde mwylde changed the title Comparisons between strings and lists cause runtime failure Comparisons involving lists cause runtime failure Mar 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant