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

fix: Fix panic with empty delta scan, or empty parquet scan with a provided schema #19884

Merged
merged 12 commits into from
Nov 21, 2024
Merged
Prev Previous commit
Next Next commit
c
  • Loading branch information
nameexhaustion committed Nov 21, 2024
commit 82c9f571d94684dcf063c5621bfb962e9547589f
5 changes: 3 additions & 2 deletions crates/polars-plan/src/plans/conversion/dsl_to_ir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -235,11 +235,12 @@ pub fn to_alp_impl(lp: DslPlan, ctxt: &mut DslConversionContext) -> PolarsResult
};

if file_options.hive_options.enabled.is_none() {
// TODO: Auto-enable this based on whether we received a hive schema.
file_options.hive_options.enabled = Some(false);
}

if file_options.hive_options.enabled.unwrap() == false
&& file_options.hive_options.schema.is_some()
if file_options.hive_options.schema.is_some()
&& !file_options.hive_options.enabled.unwrap()
{
polars_bail!(
ComputeError:
Expand Down