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

[NativeIO]panic when target datatype and source datatype mismatch #214

Conversation

Ceng23333
Copy link
Contributor

No description provided.

@Ceng23333 Ceng23333 force-pushed the bug/native_io_should_panic_at_datatype_mismatch branch from 681517b to 1d4186d Compare May 16, 2023 07:04
Signed-off-by: zenghua <441651826@qq.com>
@xuchen-plus xuchen-plus self-requested a review May 17, 2023 04:08
@xuchen-plus xuchen-plus added bug Something isn't working native-io labels May 17, 2023
Signed-off-by: zenghua <441651826@qq.com>
_ => array.clone(),
target_datatype => {
if target_datatype != *array.data_type() {
panic!("Parquet column cannot be converted in file. Column: [{}], Expected: {}, Found: {}", name, target_datatype, array.data_type())
Copy link
Contributor

Choose a reason for hiding this comment

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

we should throw the exception to java wrapper, and let spark/flink jobs fail in such unsupported cases

@xuchen-plus xuchen-plus merged commit 03fcb85 into lakesoul-io:main May 22, 2023
1 check passed
@Ceng23333 Ceng23333 deleted the bug/native_io_should_panic_at_datatype_mismatch branch August 2, 2023 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working native-io
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

None yet

2 participants