MCPcopy Create free account
hub / github.com/apache/madlib / cleanup

Method cleanup

src/madpack/upgrade_util.py:1204–1216  ·  view source on GitHub ↗

@brief Entry function for cleaning the sql script

(self, sql)

Source from the content-addressed store, hash-verified

1202 self._sql = re.sub(pattern, 'CREATE OR REPLACE FUNCTION', self._sql)
1203
1204 def cleanup(self, sql):
1205 """
1206 @brief Entry function for cleaning the sql script
1207 """
1208 self._sql = sql
1209 self._clean_comment()
1210 self._clean_type()
1211 self._clean_cast()
1212 self._clean_operator()
1213 self._clean_opclass()
1214 self._clean_aggregate()
1215 self._clean_function()
1216 return self._sql
1217
1218if __name__ == '__main__':
1219 config = yaml.load(open('changelist.yaml'))

Callers 1

_run_sql_fileFunction · 0.80

Calls 7

_clean_commentMethod · 0.95
_clean_typeMethod · 0.95
_clean_castMethod · 0.95
_clean_operatorMethod · 0.95
_clean_opclassMethod · 0.95
_clean_aggregateMethod · 0.95
_clean_functionMethod · 0.95

Tested by

no test coverage detected