You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/10/01 11:34:58 UTC
[GitHub] [arrow-datafusion] askoa commented on a diff in pull request #3674: Fail if field lengths are not same in INTERSECT and EXPECT
askoa commented on code in PR #3674:
URL: https://github.com/apache/arrow-datafusion/pull/3674#discussion_r985088851
##########
datafusion/expr/src/logical_plan/builder.rs:
##########
@@ -781,6 +781,16 @@ impl LogicalPlanBuilder {
join_type: JoinType,
is_all: bool,
) -> Result<LogicalPlan> {
+ let left_len = left_plan.schema().fields().len();
+ let right_len = right_plan.schema().fields().len();
+
+ if left_len != right_len {
+ return Err(DataFusionError::Plan(format!(
+ "Expected the no. of fields to be the same. Left fields count = {} and right fields count = {} are not the same.",
Review Comment:
I updated based on your suggestion. Let me know if that works.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org