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

Function build_hbase_insert

testdata/bin/generate-schema-statements.py:627–636  ·  view source on GitHub ↗
(db_name, db_suffix, table_name)

Source from the content-addressed store, hash-verified

625
626
627def build_hbase_insert(db_name, db_suffix, table_name):
628 hbase_insert = SET_HIVE_HBASE_BULK_LOAD + ';\n'
629 # For Apache Hive, "hive.hbase.bulk does not exist" exception will be thrown and there
630 # is only warning in cdp
631 if os.environ['USE_APACHE_HIVE_3'] == "true":
632 hbase_insert = ""
633 params = build_replacement_params(db_name, db_suffix, table_name)
634 hbase_insert += ("INSERT OVERWRITE TABLE {db_name}{db_suffix}.{table_name}"
635 " SELECT * FROM {db_name}.{table_name};\n").format(**params)
636 return hbase_insert
637
638
639def build_insert(insert, db_name, db_suffix, file_format,

Callers 1

build_insertFunction · 0.85

Calls 2

build_replacement_paramsFunction · 0.85
formatMethod · 0.45

Tested by

no test coverage detected