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

[NSE-831] Support more expression types in getting attribute #830

Merged
merged 1 commit into from
Apr 8, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,12 @@ object ConverterUtils extends Logging {
getAttrFromExpr(u.child)
case ss: Substring =>
getAttrFromExpr(ss.children(0))
case and: And =>
getAttrFromExpr(and.children(0))
case caseWhen: CaseWhen =>
getAttrFromExpr(caseWhen.children(0))
case greaterThanOrEqual: GreaterThanOrEqual =>
getAttrFromExpr(greaterThanOrEqual.children(0))
case other =>
throw new UnsupportedOperationException(
s"makeStructField is unable to parse from $other (${other.getClass}).")
Expand Down