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

feat: support 'col IN (a, b, c)' type expressions #652

Open
wants to merge 29 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
28a5648
feat: support 'col IN (a, b, c)' type expressions
roeap Jan 18, 2025
d6e3730
Merge branch 'main' into feat/col-in-arr
roeap Jan 24, 2025
848ef11
fix: PR feedback
roeap Jan 24, 2025
290d65d
chore: clippy
roeap Jan 24, 2025
def21c1
chore: fmt
roeap Jan 24, 2025
6b959eb
fix: null handling for in-list
roeap Jan 30, 2025
4e3e92c
Merge branch 'main' into feat/col-in-arr
roeap Jan 30, 2025
ba3b4e9
fix: simplify partial_cmp impl
roeap Jan 30, 2025
233c0e8
fix: partial_cmp for decimals via rust_decimal
roeap Feb 2, 2025
6c813e9
fix: in-list null handling
roeap Feb 2, 2025
88fd54c
chore: revert partialeq releated changes
roeap Feb 4, 2025
bff7143
chore: cleanup in-list implementation
roeap Feb 4, 2025
edeacfc
chore: clippy
roeap Feb 4, 2025
fcdf565
Merge branch 'main' into feat/col-in-arr
roeap Feb 4, 2025
fd58d70
test: add test for in-list false case
roeap Feb 4, 2025
511b451
refactor: split up arrow_expression module
roeap Feb 4, 2025
00b3002
chore: cleanup
roeap Feb 4, 2025
7d9abd4
chore: clippy
roeap Feb 4, 2025
1062b44
refactor: move expression mod.rs back into top level file
roeap Feb 5, 2025
8ab65b2
fix: make cargo fmt work on in-list file
roeap Feb 5, 2025
f678e7e
fix: extend arrow type coverage and tests
roeap Feb 5, 2025
1ec75e0
chore: simplify
roeap Feb 5, 2025
3f2e567
Merge branch 'main' into feat/col-in-arr
roeap Feb 5, 2025
58349f2
Merge branch 'main' into feat/col-in-arr
roeap Feb 5, 2025
7869610
fix: simplify based on PR feedback
roeap Feb 5, 2025
46c84f8
refactor: remove prim_array_cmp macro
roeap Feb 6, 2025
eb29de8
fix: error message test
roeap Feb 6, 2025
2d04413
Merge branch 'main' into feat/col-in-arr
roeap Feb 6, 2025
41030fc
fix: clippy
roeap Feb 6, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion kernel/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ chrono = { version = "0.4" }
fix-hidden-lifetime-bug = "0.2"
indexmap = "2.5.0"
itertools = "0.13"
paste = "1.0"
roaring = "0.10.6"
serde = { version = "1", features = ["derive", "rc"] }
serde_json = "1"
Expand Down Expand Up @@ -159,7 +160,6 @@ rustc_version = "0.4.1"
arrow = { workspace = true, features = ["json", "prettyprint"] }
delta_kernel = { path = ".", features = ["default-engine", "sync-engine"] }
test_utils = { path = "../test-utils" }
paste = "1.0"
test-log = { version = "0.2", default-features = false, features = ["trace"] }
tempfile = "3"
tar = "0.4"
Expand Down
6 changes: 1 addition & 5 deletions kernel/src/engine/arrow_conversion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,11 +207,7 @@ impl TryFrom<&ArrowDataType> for DataType {
ArrowDataType::Date32 => Ok(DataType::DATE),
ArrowDataType::Date64 => Ok(DataType::DATE),
ArrowDataType::Timestamp(TimeUnit::Microsecond, None) => Ok(DataType::TIMESTAMP_NTZ),
ArrowDataType::Timestamp(TimeUnit::Microsecond, Some(tz))
if tz.eq_ignore_ascii_case("utc") =>
{
Ok(DataType::TIMESTAMP)
}
ArrowDataType::Timestamp(TimeUnit::Microsecond, Some(_)) => Ok(DataType::TIMESTAMP),
ArrowDataType::Struct(fields) => {
DataType::try_struct_type(fields.iter().map(|field| field.as_ref().try_into()))
}
Expand Down
Loading
Loading