示例#1
0
        class TestOtherTables(hive.HiveQueryToMysqlTask):  # pylint: disable=abstract-method
            """Sample task that relies on other tables."""
            @property
            def required_table_tasks(self):
                return (sentinel.table_1, sentinel.table_2)

            query = 'SELECT 1'
            table = 'test_table'
            columns = [('one', 'VARCHAR')]
            partition = hive.HivePartition('dt', '2014-01-01')
示例#2
0
 def setUp(self):
     self.partition = hive.HivePartition('dt', '2014-01-01')