minor change

dev
Bill Sun 3 years ago
parent 588ca0ba0b
commit d4d11286d5

@ -46,7 +46,7 @@ class projection(ast_node):
elif type(value) is str: elif type(value) is str:
self.datasource = self.context.tables_byname[value] self.datasource = self.context.tables_byname[value]
if 'assumptions' in from_clause: 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: elif type(from_clause) is str:
self.datasource = self.context.tables_byname[from_clause] self.datasource = self.context.tables_byname[from_clause]

@ -8,7 +8,7 @@ SELECT Month,avgs(3,sales)
FROM sale FROM sale
-- ASSUMING ASC Month -- ASSUMING ASC Month
INTO OUTFILE "moving_avg_output.csv" INTO OUTFILE "moving_avg_output.csv"
FIELDS TERMINATED BY "," FIELDS TERMINATED BY ";"
select sales, mins(2,Month) from sale group by sales select sales, mins(2,Month) from sale group by sales
into outfile "flatten.csv" into outfile "flatten.csv"
Loading…
Cancel
Save