@ -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]
@ -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"