-
Notifications
You must be signed in to change notification settings - Fork 2k
Cut Parquet over to PhysicalExprAdapter, remove SchemaAdapter
#18998
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
Changes from 15 commits
9e7e9a7
b4e6a34
c3f9ef9
1593758
f567362
5a65cbd
74256d0
a5592af
95a1caf
b81b5de
91e261b
ba36483
54a8dbd
c2eb2dc
3cd7c84
24713b6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1257,7 +1257,7 @@ mod tests { | |
| ("c3", c3.clone()), | ||
| ]); | ||
|
|
||
| // batch2: c3(int8), c2(int64), c1(string), c4(string) | ||
| // batch2: c3(date64), c2(int64), c1(string), c4(date64) | ||
| let batch2 = create_batch(vec![("c3", c4), ("c2", c2), ("c1", c1)]); | ||
|
|
||
| let table_schema = Schema::new(vec![ | ||
|
|
@@ -1272,7 +1272,7 @@ mod tests { | |
| .round_trip_to_batches(vec![batch1, batch2]) | ||
| .await; | ||
| assert_contains!(read.unwrap_err().to_string(), | ||
| "Cannot cast file schema field c3 of type Date64 to table schema field of type Int8"); | ||
| "Cannot cast column 'c3' from 'Date64' (physical data type) to 'Int8' (logical data type)"); | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This looks the opposite to me - Int should be the physical type and Date is the logical one
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I checked and I think this is right. From above: let batch2 = create_batch(vec![("c3", c4), ("c2", c2), ("c1", c1)]);And: let c4: ArrayRef = Arc::new(Date64Array::from(vec![
Some(86400000),
None,
Some(259200000),
]));But in the schema: Field::new("c3", DataType::Int8, true)So in the physical data |
||
| } | ||
|
|
||
| #[tokio::test] | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤔 batch2 only has 3 columns (c3(date64), c2(int64) and c1(string))