-
Notifications
You must be signed in to change notification settings - Fork 407
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
Z Order can't find column with a capitalised character #1586
Comments
I suspect this boils down to DataFusion not being case sensitive. Will need more investigation though. |
Are columns being quoted somehow? I know I've had issues with quoted columns being case sensitive in datafusion. EDIT: I can get the python to die every time, but not when I do the same effective code in rust.
This code works just fine: #[cfg(all(feature = "datafusion", feature = "arrow"))]
#[tokio::test]
async fn test_optimize_casing() {
use std::future::IntoFuture;
let mut dt = DeltaTableBuilder::from_uri("/Users/watford/scratch/python/test_caps")
.build()
.unwrap();
dt.load().await.unwrap();
let schema = dt.get_schema().unwrap();
let fields = schema.get_fields().iter().map(|f| { String::from(f.get_name()) }).collect::<Vec<String>>().join(",");
assert_eq!("col_a,col_B", fields);
let v = Vec::<PartitionFilter<&str>>::new();
let cmd: crate::operations::optimize::OptimizeBuilder<'_> = crate::operations::optimize::OptimizeBuilder::new(dt.object_store(), dt.get_state().clone())
.with_max_concurrent_tasks(4)
.with_type(crate::operations::optimize::OptimizeType::ZOrder(vec![String::from("col_a")]))
.with_filters(&v);
let (_dtx, metrics) = cmd.into_future().await.unwrap();
dt.update_incremental(None).await.unwrap();
} And this code from inside the python bindings works just fine:
|
I'm having issues with z_order as well. DeltaError Traceback (most recent call last) |
@wjones127 We are also seeing the same issue but while Updating the delta table |
Same here. |
same here :( |
# Description Enable usage of z-order optimization on columns that have capitalization. # Related Issue(s) - closes #1586
Environment
Delta-rs version: 0.10.1
Binding:
python
Environment:
local
Linux Fedora fc38
Python 3.8
,pyarrow==12.0.1
,arrow==1.2.3
Bug
What happened:
Running z order on table that has columns containing cap case causes exception
Error
What you expected to happen:
Z order to finish the work
How to reproduce it:
More details:
The text was updated successfully, but these errors were encountered: