-
Notifications
You must be signed in to change notification settings - Fork 120
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
fsql "SELECT * from . WHERE size > 1gb"
doesn't work
#29
Comments
Hey @christiangenco, thanks for the issue! That syntax for size units was actually removed as of v0.2.0 (haven't gotten around to updating the GIF yet). What you're actually looking for is: $ fsql "SELECT * FROM . WHERE FORMAT(size, GB) > 1" I think you found an interesting bug, but I can't seem to reproduce it (the first query errors out for me, as it should). Can you run the following and see what's outputted? $ fsql "SELECT * FROM . WHERE size > 1gb AND name LIKE mkv" Also, does the output of the first query include any results where the size is less than 1 gigabyte? |
|
Sorry for the late response, been a little busy with school. I do agree that the new syntax is not as clean/intuitive. The main reasoning behind this was to be more consistent between attribute modifiers (both in implementation and syntax). Parsing the unit from the value itself required special consideration in the tokenizer, which I'd prefer to avoid. That being said, I'm all for re-adding that syntax if it could be implemented with the current modifier model (I'll definitely look into this!). |
Check out how Crab does it:
|
If I run a query like in the README gif it works:
but taking away the
name LIKE mkv
clause breaks it:The text was updated successfully, but these errors were encountered: