MCPcopy Create free account
hub / github.com/apache/impala / write_query

Method write_query

tests/comparison/model_translator.py:95–105  ·  view source on GitHub ↗

Return SQL as a string for the given query. If "pretty" is True, the SQL will be formatted (though not very well) with new lines and indentation.

(self, statement, pretty=False)

Source from the content-addressed store, hash-verified

93 'IsNotNull': '({0}) IS NOT NULL'}
94
95 def write_query(self, statement, pretty=False):
96 """
97 Return SQL as a string for the given query.
98
99 If "pretty" is True, the SQL will be formatted (though not very well) with new
100 lines and indentation.
101 """
102 sql = self._write(statement)
103 if pretty:
104 sql = self.make_pretty_sql(sql)
105 return sql
106
107 def _write_query(self, query):
108 """

Callers 8

write_create_table_asMethod · 0.95
write_create_viewMethod · 0.95
_writeMethod · 0.95
_fetch_sql_resultsMethod · 0.45
_explain_queryMethod · 0.45
test_write_queryFunction · 0.45
generate_random_queriesFunction · 0.45

Calls 2

_writeMethod · 0.95
make_pretty_sqlMethod · 0.95

Tested by 1

test_write_queryFunction · 0.36