

@classmethod
def setUpClass(cls):
    ImpalaE2E.setup_e2e(cls, ENV)
    df = pd.DataFrame({
        'year': [2009, 2009, 2009, 2010, 2010, 2010],
        'month': ['1', '2', '3', '1', '2', '3'],
        'value': [1, 2, 3, 4, 5, 6],
    })
    df = pd.concat(([df] * 10), ignore_index=True)
    df['id'] = df.index.values
    cls.df = df
    cls.db = cls.con.database(cls.tmp_db)
    cls.pd_name = _tmp_name()
    cls.db.create_table(cls.pd_name, df)

dataset/ETHPy150Open cloudera/ibis/ibis/impala/tests/test_partition.py TestPartitioning.setUpClass/original