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