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

Method _write_collection_column

tests/comparison/model_translator.py:199–216  ·  view source on GitHub ↗
(self, collection_col)

Source from the content-addressed store, hash-verified

197 return '%s.%s' % (struct_col.owner.identifier, struct_col.name)
198
199 def _write_collection_column(self, collection_col):
200 if isinstance(collection_col.owner, (StructColumn, CollectionColumn)) and \
201 not collection_col.owner.alias:
202 if collection_col.alias:
203 return '%s.%s %s' % (
204 self._write(collection_col.owner),
205 collection_col.name,
206 collection_col.alias)
207 else:
208 return '%s.%s' % (self._write(collection_col.owner), collection_col.name)
209 else:
210 if collection_col.alias:
211 return '%s.%s %s' % (
212 collection_col.owner.identifier,
213 collection_col.name,
214 collection_col.alias)
215 else:
216 return '%s.%s' % (collection_col.owner.identifier, collection_col.name)
217
218 def _write_column(self, col):
219 if isinstance(col.owner, StructColumn):

Callers

nothing calls this directly

Calls 1

_writeMethod · 0.95

Tested by

no test coverage detected