File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed
src/query/sql/src/planner/plans Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -141,13 +141,6 @@ impl ScalarExpr {
141141 left. append ( & mut right) ;
142142 Ok ( left)
143143 }
144- ScalarExpr :: WindowFunction ( scalar) => {
145- let mut result = vec ! [ ] ;
146- for scalar in & scalar. agg_func . args {
147- result. append ( & mut scalar. used_tables ( metadata. clone ( ) ) ?) ;
148- }
149- Ok ( result)
150- }
151144 ScalarExpr :: AggregateFunction ( scalar) => {
152145 let mut result = vec ! [ ] ;
153146 for scalar in & scalar. args {
@@ -163,9 +156,11 @@ impl ScalarExpr {
163156 Ok ( result)
164157 }
165158 ScalarExpr :: CastExpr ( scalar) => scalar. argument . used_tables ( metadata) ,
166- ScalarExpr :: SubqueryExpr ( _) => Err ( ErrorCode :: Unimplemented (
167- "SubqueryExpr doesn't support used_tables method" . to_string ( ) ,
168- ) ) ,
159+ ScalarExpr :: WindowFunction ( _) | ScalarExpr :: SubqueryExpr ( _) => {
160+ Err ( ErrorCode :: Unimplemented (
161+ "SubqueryExpr/WindowFunction doesn't support used_tables method" . to_string ( ) ,
162+ ) )
163+ }
169164 }
170165 }
171166
You can’t perform that action at this time.
0 commit comments