Skip to content

Commit

Permalink
print query_tree
Browse files Browse the repository at this point in the history
  • Loading branch information
hhyo authored and 李环焕 committed Jun 7, 2018
1 parent 2380613 commit 2fbf35e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sql/data_masking.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ def query_table_ref(self, sqlContent, cluster_name, dbName):
query_tree_str = re.sub(r",\s*?}", "}", query_tree_str)
query_tree_str = query_tree_str.replace("'", "\"")
table_ref = json.loads(query_tree_str)['table_ref']
result['data'] = table_ref
return result

# 解析query_tree,获取语句信息,并返回命中脱敏规则的列信息
Expand Down

0 comments on commit 2fbf35e

Please sign in to comment.