Skip to content

Conversation

@kgyrtkirk
Copy link
Member

@kgyrtkirk kgyrtkirk commented Feb 24, 2021

What changes were proposed in this pull request?

Previously the swo could have created situations which were not correctly handled by the parallel edge fixer.

Why are the changes needed?

To prevent strange npe-s caused when other things happen in the RS like col rename.

Does this PR introduce any user-facing change?

no

the patch also contains: HIVE-24823 (#2014)

Copy link
Contributor

@kasakrisz kasakrisz left a comment

Choose a reason for hiding this comment

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

LGTM

ExprNodeConstantDesc exprNodeConstantDesc = (ExprNodeConstantDesc) expr;
return exprNodeConstantDesc.getFoldedFromCol();
}
throw new RuntimeException("unexpected mapping expression!");
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: a more specific checked exception would suit better here or just return null a later in colMappingInverseKeys handle the specific exception or null only.

@kgyrtkirk kgyrtkirk merged commit ab69e64 into apache:master Feb 26, 2021
aihuaxu pushed a commit to aihuaxu/hive that referenced this pull request Mar 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants