def METHOD_NAME(self):
    import tempfile
    import shutil
    temp_dir = tempfile.mkdtemp()
    try:
        temp_file = os.path.join(temp_dir, "hits_0.parquet")
        shutil.copyfile(hits_0, temp_file)
        pq_table = Table(temp_parquet_path=temp_file)
        self.assertEqual((1000000, 105), pq_table.to_pandas().shape)
        t = time.time()
        ret = pq_table.query(sql)
        print("Run on temp file. Time cost:", time.time() - t, "s", file=output)
        self.assertEqual(expected_query_output, str(ret))
        # temp file should be deleted after del pq_table
        del pq_table
        print(temp_file)
        self.assertFalse(os.path.exists(temp_file))
    finally:
        shutil.rmtree(temp_dir)