Skip to content
This repository has been archived by the owner on Sep 18, 2023. It is now read-only.

Commit

Permalink
Quick fix for ConverterUtils$.getAttrFromExpr (#754)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhixingheyi-tian authored Mar 9, 2022
1 parent 20379cd commit ca9f2a5
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,8 @@ object ConverterUtils extends Logging {
fieldExpr match {
case a: Cast =>
getAttrFromExpr(a.child)
case l: Literal =>
new AttributeReference("name", l.dataType, l.nullable)()
case a: AggregateExpression =>
getAttrFromExpr(a.aggregateFunction.children(0))
case a: AttributeReference =>
Expand Down

0 comments on commit ca9f2a5

Please sign in to comment.