-
Notifications
You must be signed in to change notification settings - Fork 208
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
unwrap
panic on several queries with let
CTEs
#2926
Comments
Thanks @blainehansen ! I see it working OK on If you're exclusively on python and don't have a rust compiler it's not trivial to test. But we will be releasing 0.9.0 fairly soon... #2689 |
Also not what you asked, but check out
|
Hey! Sorry didn't have time to think about this for a few days. I have a rust compiler on my machine, but our internal project is a pure python codebase built using poetry/docker :/ That's probably not going to cut it for our production build though hahahahah. When do you think |
Yeah I can't even get it to work because of differences in python version between my system and the docker image :( ( I believe you that it works on P.S. As a hail mary, I also tried both of these dependency statements in our
|
Does a plain pip install work for you? This works for me:
Or possibly it sounds like it needs to be installed it in your docker image, but that image doesn't have a linker, which is required since this is compiling from source? |
I could finish off #1618, and then we could publish wheels... |
You know what, I'm realizing this isn't as urgent as I'm making it sound hahaha. If you guys have figured out this problem in a version that will be released in the next few weeks, that's just fine. (I'm only working on a speculative project, it will become my main focus but not for a few weeks.) Don't sweat this for now, just release P.S., I tried the manual pip install while inside the docker container (had to install rustup in it first ha), and it still didn't work, but most likely just because the pip install didn't put things in the same place as everything else ha. Again, don't sweat it. I've verified the queries are fine when I run the compiler through |
Note that nightly builds include prql-python wheels (e.g. https://github.com/PRQL/prql/actions/runs/5411366409) I believe this could be published to PyPI. (the problem is that there is no mechanism to determine the version number) |
Python supports versioning by the git hash, or the number of commits since the previous tag — so we could use https://github.com/pypa/setuptools_scm to do this... |
Can it be used in combination with maturin? I believe prql-python currently uses the Cargo.toml version as is. |
Sorry, no it can't, at least with no luck with 10 mins of testing... |
What happened?
The below prql causes this unwrap panic:
It also fails in the playground, giving a
Missing query
error at the end of inputPRQL input
SQL output
Expected SQL output
Shouldn't panic.
MVCE confirmation
Anything else?
Version:
prql_python = "^0.8.1"
I'll be happy to pitch in to solve this. We're using prql as an intermediate step from a custom dsl, and obviously the actual queries we want to compile aren't this trivial, but this is a minimal example. Here's an example query that's a little more realistic:
The text was updated successfully, but these errors were encountered: