(db_name, db_suffix, table_name)
| 625 | |
| 626 | |
| 627 | def 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 | |
| 639 | def build_insert(insert, db_name, db_suffix, file_format, |
no test coverage detected