diff --git a/sql/data_masking.py b/sql/data_masking.py index 94196c30..91471e26 100644 --- a/sql/data_masking.py +++ b/sql/data_masking.py @@ -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,获取语句信息,并返回命中脱敏规则的列信息