Skip to content

Commit

Permalink
update classdoc for WithField explaining why we extend Unevaluable
Browse files Browse the repository at this point in the history
  • Loading branch information
fqaiser94 committed Aug 12, 2020
1 parent 977ff31 commit 2b0ac34
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,9 @@ trait StructFieldsOperation {

/**
* Add or replace a field by name.
*
* We extend [[Unevaluable]] here to ensure that [[UpdateFields]] can include it as part of its
* children, and thereby enable the analyzer to resolve and transform valExpr as necessary.
*/
case class WithField(name: String, valExpr: Expression)
extends Unevaluable with StructFieldsOperation {
Expand Down

0 comments on commit 2b0ac34

Please sign in to comment.