Skip to content

CLI unable to execute queries with range(..) function #10177

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

Open
Omega359 opened this issue Apr 22, 2024 · 1 comment
Open

CLI unable to execute queries with range(..) function #10177

Omega359 opened this issue Apr 22, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Omega359
Copy link
Contributor

Describe the bug

Noticed when attempting to reproduce #9755 the initial query in that issue does not work when run against current main branch:

❯ docker build -f datafusion-cli/Dockerfile . --tag datafusion-cli
...
❯ docker run -it -v /tmp:/data datafusion-cli
DataFusion CLI v37.1.0
> CREATE
OR REPLACE TABLE pricing AS
SELECT
    t,
    RANDOM() as v
FROM
    range(
        '2022-01-01' :: TIMESTAMP,
        '2023-01-01' :: TIMESTAMP,
        INTERVAL 1 DAY
    ) ts(t);
Error during planning: table function 'range' not found

To Reproduce

Build and start CLI, run query.

Expected behavior

Query should succeed.

Additional context

No response

@Omega359 Omega359 added the bug Something isn't working label Apr 22, 2024
@Lordworms
Copy link
Contributor

Lordworms commented Apr 23, 2024

I think it is a related issue with #10069 (comment)
and if it is necessary to register range as a default table function, I would like to do that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants