MCPcopy Create free account
hub / github.com/google-research/language / preprocess_sql

Function preprocess_sql

language/xsp/data_preprocessing/sql_utils.py:77–79  ·  view source on GitHub ↗

Preprocesses a SQL query into a clean string form.

(sql)

Source from the content-addressed store, hash-verified

75
76
77def preprocess_sql(sql):
78 """Preprocesses a SQL query into a clean string form."""
79 return ' '.join(anonymize_aliases(sql)).replace(' . ', '.')
80
81
82class SchemaEntityCopy(object):

Callers 3

convert_spiderFunction · 0.90
convert_wikisqlFunction · 0.90
match_and_saveFunction · 0.85

Calls 2

anonymize_aliasesFunction · 0.85
replaceMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…