-
Notifications
You must be signed in to change notification settings - Fork 3
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
Inconsistent behaviour between CLI and Explorer when specifying equality predicate on WHERE
clause
#129
Comments
WHERE
clauseWHERE
clause
If you have loaded the dataset on macOS with CLI/Python API and then launch Explorer against the loaded database, this could be due to kuzudb/kuzu#2943 which has been fixed in kuzudb/kuzu#2952 but does not go into 0.3.x releases due to the storage format change. |
Ah, that issue might be the reason. Let's keep this open until we release the next version with the storage format change. |
@benjaminwinger I revisited this issue for the latest release of kuzu (v0.4.1) and it seems the issue still exists. I loaded demo-db on macOS (as attached) and the query returns empty result in a Linux Docker container. The issue seems to have not much to do with Explorer, as it is reproducible with CLI as well. Could you please look into it? |
Should we maybe create this as an issue on the Kùzu repo instead? |
Update: this issue seems not reproducible on Linux with x86-64 architecture. When running this query on one of our Linux server, it works fine both locally and in Docker, but when using aarch64 Docker images on Mac with Apple M-series CPU, the issue exists. |
I was also able to reproduce this on an Oracle cloud server with Ampere A1 processor, so this seems to be specific to aarch64 architecture. |
I don't think this is limited to ARM architectures. I created a branch off v0.4.1 which validates the hash index entries: kuzudb/kuzu@8cfcbe5 (and also fixes some uninitialized data which made direct comparisons of the hash index files more difficult) and ended up with the following issues when opening the above database on x86_64 linux:
Update: I can reproduce this with the pre-built 0.4.1 binaries, but not when compiling from scratch. This makes debugging somewhat difficult |
This is likely important functionality that's missing (or a bug) in the explorer.
The following query works in the CLI and in the Python client (i.e., the core is behaving as expected)
Returns a valid result in Python:
And also in the CLI:
However, when the same query is run in Kùzu explorer, it doesn't return anything.
I even tested the same query with the WHERE clause, and the results are not consistent between the CLI/client API and Explorer.
Considering that the explorer uses the Node.js client under the hood, do you think something is off with the query parsing when there are predicates on properties there?
I've only tested via the CLI and the Python client, and they both work as expected, so it's something happening that's specific to the Explorer.
The text was updated successfully, but these errors were encountered: