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

Method create_table

tests/comparison/db_connection.py:765–772  ·  view source on GitHub ↗
(self, table)

Source from the content-addressed store, hash-verified

763 self.execute("COMPUTE STATS %s" % table_name)
764
765 def create_table(self, table):
766 # The Hive metastore has a limit to the amount of schema it can store inline.
767 # Beyond this limit, the schema needs to be stored in HDFS and Hive is given a
768 # URL instead.
769 if table.storage_format == "AVRO" and not table.schema_location \
770 and len(table.get_avro_schema()) > 4000:
771 self.upload_avro_schema(table)
772 super(ImpalaCursor, self).create_table(table)
773
774 def upload_avro_schema(self, table):
775 self.ensure_schema_location(table)

Callers

nothing calls this directly

Calls 3

upload_avro_schemaMethod · 0.95
get_avro_schemaMethod · 0.80
create_tableMethod · 0.45

Tested by

no test coverage detected