From d4d11286d504c836bf102fe83ce2cabfa7acecdd Mon Sep 17 00:00:00 2001 From: Bill Sun Date: Thu, 28 Apr 2022 02:34:22 +0800 Subject: [PATCH] minor change --- engine/projection.py | 2 +- moving_avg.a | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/projection.py b/engine/projection.py index 180d197..0b6c02f 100644 --- a/engine/projection.py +++ b/engine/projection.py @@ -46,7 +46,7 @@ class projection(ast_node): elif type(value) is str: self.datasource = self.context.tables_byname[value] if 'assumptions' in from_clause: - self.assumption = orderby(self, enlist(from_clause['assumptions'])) + self.assumption = enlist(from_clause['assumptions']) elif type(from_clause) is str: self.datasource = self.context.tables_byname[from_clause] diff --git a/moving_avg.a b/moving_avg.a index 391f71c..3fdd697 100644 --- a/moving_avg.a +++ b/moving_avg.a @@ -8,7 +8,7 @@ SELECT Month,avgs(3,sales) FROM sale -- ASSUMING ASC Month INTO OUTFILE "moving_avg_output.csv" -FIELDS TERMINATED BY "," +FIELDS TERMINATED BY ";" select sales, mins(2,Month) from sale group by sales into outfile "flatten.csv" \ No newline at end of file