We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a5f5029 commit 6ea2ec8Copy full SHA for 6ea2ec8
expression/expression.go
@@ -79,7 +79,12 @@ type Expression interface {
79
// IsCorrelated checks if this expression has correlated key.
80
IsCorrelated() bool
81
82
- // ConstItem checks if this expression refers to a table.
+ // ConstItem checks if this expression is constant item, regardless of query evaluation state.
83
+ // An expression is constant item if it:
84
+ // refers no tables.
85
+ // refers no subqueries that refers any tables.
86
+ // refers no non-deterministic functions.
87
+ // refers no statement parameters.
88
ConstItem() bool
89
90
// Decorrelate try to decorrelate the expression by schema.
0 commit comments