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

Method _write_select_item

tests/comparison/model_translator.py:186–190  ·  view source on GitHub ↗
(self, select_item)

Source from the content-addressed store, hash-verified

184 return sql
185
186 def _write_select_item(self, select_item):
187 if select_item.alias:
188 return '{0} AS {1}'.format(self._write(select_item.val_expr), select_item.alias)
189 else:
190 return self._write(select_item.val_expr)
191
192 def _write_struct_column(self, struct_col):
193 if isinstance(struct_col.owner, StructColumn) or \

Callers

nothing calls this directly

Calls 2

_writeMethod · 0.95
formatMethod · 0.45

Tested by

no test coverage detected