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

Method test_explicit_name

tests/query_test/test_kudu.py:846–856  ·  view source on GitHub ↗

Check that a Kudu table can be specified using a table property.

(self, vector, kudu_client, unique_database)

Source from the content-addressed store, hash-verified

844
845 @SkipIfKudu.hms_integration_enabled()
846 def test_explicit_name(self, vector, kudu_client, unique_database):
847 """Check that a Kudu table can be specified using a table property."""
848 with self.temp_kudu_table(kudu_client, [INT32]) as kudu_table:
849 table_name = self.random_table_name()
850
851 self.execute_query_using_vector(
852 create_external_kudu_query(unique_database, table_name, kudu_table.name),
853 vector)
854 result = self.execute_query_using_vector(
855 "SELECT * FROM %s.%s" % (unique_database, table_name), vector)
856 assert len(result.data) == 0
857
858 @SkipIfKudu.hms_integration_enabled()
859 def test_explicit_name_preference(self, vector, kudu_client, unique_database):

Callers

nothing calls this directly

Calls 4

temp_kudu_tableMethod · 0.80
random_table_nameMethod · 0.80

Tested by

no test coverage detected