Commit 480b1351 authored by Haoyu Z's avatar Haoyu Z
Browse files

debug

parent a27d7cc9
......@@ -14,11 +14,14 @@ import traceback
tablesWithProvenance = {}
def tablesInQuery(query):
parsed = sp.parse(query)[0]
output_t = ut.get_table_identifier(parsed)
output_set = set(ut.decompose_identifiers(output_t))
return output
parsed = list(sp.parse(query))
tables = []
for s in parsed:
if s.get_type() != 'UNKNOWN':
output_t = ut.get_table_identifier(s)
tables.append(set(ut.decompose_identifiers(output_t)))
return tables
#Preprocess query
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment