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

Lazy topn should be disabled in query with qualify #17146

Closed
sundy-li opened this issue Dec 31, 2024 · 1 comment
Closed

Lazy topn should be disabled in query with qualify #17146

sundy-li opened this issue Dec 31, 2024 · 1 comment
Assignees

Comments

@sundy-li
Copy link
Member

Summary
Lazy topn should be disabled in query with qualify

@sundy-li
Copy link
Member Author

 
create or replace table t_17146(
        data variant,
        user_id int,
        created_at timestamp
);

 
SELECT     data,
          user_id,
          created_at
FROM      t_17146
WHERE     data::STRING LIKE '%xxx%' QUALIFY row_number() OVER (
          PARTITION BY user_id
          ORDER BY  created_at DESC
          )=1
LIMIT     1;

error: APIError: QueryFailed: [1006]Unable to get field named "1". Valid fields: ["0", "4"]

@sundy-li sundy-li self-assigned this Dec 31, 2024
@sundy-li sundy-li closed this as completed Jan 2, 2025
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