Outer join was removed in favor of full in polars, matching this API change

This commit is contained in:
Jack Wright 2024-06-26 12:13:45 -07:00
parent 83f859e1b5
commit 161c206490

View File

@ -35,7 +35,7 @@ impl PluginCommand for LazyJoin {
Some('i'), Some('i'),
) )
.switch("left", "left join between lazyframes", Some('l')) .switch("left", "left join between lazyframes", Some('l'))
.switch("outer", "outer join between lazyframes", Some('o')) .switch("full", "full join between lazyframes", Some('f'))
.switch("cross", "cross join between lazyframes", Some('c')) .switch("cross", "cross join between lazyframes", Some('c'))
.named( .named(
"suffix", "suffix",
@ -183,13 +183,13 @@ impl PluginCommand for LazyJoin {
input: PipelineData, input: PipelineData,
) -> Result<PipelineData, LabeledError> { ) -> Result<PipelineData, LabeledError> {
let left = call.has_flag("left")?; let left = call.has_flag("left")?;
let outer = call.has_flag("outer")?; let full = call.has_flag("full")?;
let cross = call.has_flag("cross")?; let cross = call.has_flag("cross")?;
let how = if left { let how = if left {
JoinType::Left JoinType::Left
} else if outer { } else if full {
JoinType::Outer JoinType::Full
} else if cross { } else if cross {
JoinType::Cross JoinType::Cross
} else { } else {