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

[SQL] Reorganize tests, more aggregation functions #996

Merged
merged 3 commits into from
Nov 14, 2023
Merged

Conversation

mihaibudiu
Copy link
Collaborator

Is this a user-visible change (yes/no): yes

There are several things going on in this PR.
First, I reorganized the tests in directories. I have started getting some tests from mysql too. So we have hand-writtten tests, mysql tests, postgres tests, jit tests, foodmart tests (taken from Calcite), and testsuites (e.g., TPCH, and nexmark).
Second, I implemented bitwise operations for byte arrays (BINARY or VARBINARY type).
Third, I implemented more aggregation functions, like BIT_AND, BIT_XOR, and BIT_OR. These work for integers, but also for BINARY types.
I also implemented the TO_HEX and concatenation function on BINARY values.

@mihaibudiu
Copy link
Collaborator Author

Anyone wants to review this?
Would be nice to merge it, since it will cause a fair number of conflicts because I moved files around.

let self_len = self.data.len();
let other_len = other.data.len();
if self_len != other_len {
panic!("Cannot operate on BINARY objects of different sizes {} and {}",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't this kill the entire pipeline?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, that's #297
We don't have any solution right now.
This is the semantics of SQL.

Signed-off-by: Mihai Budiu <mbudiu@feldera.com>
Signed-off-by: Mihai Budiu <mbudiu@feldera.com>
Signed-off-by: Mihai Budiu <mbudiu@feldera.com>
@mihaibudiu mihaibudiu merged commit 598283b into main Nov 14, 2023
5 checks passed
@mihaibudiu mihaibudiu deleted the varbinary branch November 14, 2023 06:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants