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

Glob function with subquery parameter crashes CLI #7239

Closed
2 tasks done
Alex-Monahan opened this issue Apr 25, 2023 · 1 comment
Closed
2 tasks done

Glob function with subquery parameter crashes CLI #7239

Alex-Monahan opened this issue Apr 25, 2023 · 1 comment

Comments

@Alex-Monahan
Copy link
Contributor

What happens?

When (incorrectly!) trying to use a subquery as an input parameter to the glob function, the CLI crashes. @Mytherin noted that to support that case, the glob function would need to be refactored into a table-in-out function. @Tishj mentioned that this is on his todo list!

To Reproduce

select * from glob((select ['any_file.csv'] as test_col));

OS:

Windows

DuckDB Version:

v0.7.2-dev2430

DuckDB Client:

CLI

Full Name:

Alex Monahan

Affiliation:

DuckDB Labs and Intel

Have you tried this on the latest master branch?

  • I agree

Have you tried the steps to reproduce? Do they include all relevant data and configuration? Does the issue you report still appear there?

  • I agree
@Tishj
Copy link
Contributor

Tishj commented Apr 25, 2023

This was already fixed on a branch of my fork:

D select * from glob((select ['any_file.csv'] as test_col));
Error: Binder Error: This table function is not a table in-out function, it can't take a subquery
LINE 1: select * from glob((select ['any_file.csv'] as test_c...

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