(self, table)
| 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) |
nothing calls this directly
no test coverage detected