diff --git a/evadb/optimizer/statement_to_opr_converter.py b/evadb/optimizer/statement_to_opr_converter.py index 11e5a876f..d0e36e16a 100644 --- a/evadb/optimizer/statement_to_opr_converter.py +++ b/evadb/optimizer/statement_to_opr_converter.py @@ -132,11 +132,7 @@ def visit_select(self, statement: SelectStatement): col_with_func_exprs = [] - if ( - statement.from_table - and statement.orderby_list - and statement.groupby_clause is None - ): + if statement.orderby_list and statement.groupby_clause is None: projection_cols = [] for col in statement.target_list: if isinstance(col, FunctionExpression):