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

🪲 Errors found in fuzzing #1813

Closed
joocer opened this issue Jul 20, 2024 · 1 comment · Fixed by #1822
Closed

🪲 Errors found in fuzzing #1813

joocer opened this issue Jul 20, 2024 · 1 comment · Fixed by #1822
Labels
Bug 🪲 Something isn't working

Comments

@joocer
Copy link
Contributor

joocer commented Jul 20, 2024

I asked ChatGPT for some test cases, it included these queries which failed but appeared like they should all run.

SELECT LOWER(name) FROM $astronauts WHERE UPPER(name) LIKE 'A%'

Query failed with error <class 'AttributeError'> but error None was expected

SELECT CAST(magnitude AS INTEGER) FROM $satellites WHERE magnitude IS NOT NULL 

Query failed with error <class 'opteryx.exceptions.InconsistentSchemaError'> but error None was expected

SELECT CONCAT('Astronaut: ', name) FROM $astronauts

AND

SELECT CONCAT(('Astronaut: ', name)) FROM $astronauts

AND

SELECT CONCAT('Hello', ' ', 'World') as concatenated

.

SELECT LPAD(name, 10, '*') FROM $planets

AND

SELECT RPAD(name, 10, '*') FROM $planets

.

SELECT ASCII('A') as ascii_value

AND

SELECT CHAR(65) as char_value
@joocer joocer added the Bug 🪲 Something isn't working label Jul 20, 2024
joocer added a commit that referenced this issue Jul 21, 2024
joocer added a commit that referenced this issue Jul 21, 2024
joocer added a commit that referenced this issue Jul 21, 2024
joocer added a commit that referenced this issue Jul 21, 2024
joocer added a commit that referenced this issue Jul 21, 2024
joocer added a commit that referenced this issue Jul 21, 2024
@joocer
Copy link
Contributor Author

joocer commented Jul 21, 2024

#1820 and #1821 raised

@joocer joocer mentioned this issue Jul 21, 2024
4 tasks
joocer added a commit that referenced this issue Jul 21, 2024
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

Successfully merging a pull request may close this issue.

1 participant