mirror of
https://github.com/apache/impala.git
synced 2026-01-05 12:01:11 -05:00
Many python files had a hashbang and the executable bit set though they were not intended to be run a standalone script. That makes determining which python files are actually scripts very difficult. A future patch will update the hashbang in real python scripts so they use $IMPALA_HOME/bin/impala-python. Change-Id: I04eafdc73201feefe65b85817a00474e182ec2ba Reviewed-on: http://gerrit.cloudera.org:8080/599 Reviewed-by: Casey Ching <casey@cloudera.com> Reviewed-by: Taras Bobrovytsky <tbobrovytsky@cloudera.com> Tested-by: Internal Jenkins
29 lines
961 B
Python
29 lines
961 B
Python
# Copyright (c) 2012 Cloudera, Inc. All rights reserved.
|
|
# Targeted performance tests.
|
|
# These queries are already run as part of our performance benchmarking.
|
|
# Additionally, we don't get any 'extra' coverage from them, so they're
|
|
# not an essential part of functional verification.
|
|
import logging
|
|
import pytest
|
|
from tests.common.test_vector import *
|
|
from tests.common.impala_test_suite import ImpalaTestSuite
|
|
|
|
class TestTargetedPerf(ImpalaTestSuite):
|
|
@classmethod
|
|
def get_workload(cls):
|
|
return 'targeted-perf'
|
|
|
|
@classmethod
|
|
def add_test_dimension(cls):
|
|
super(TestTargetedPerf, cls).add_test_dimensions()
|
|
cls.TestMatrix.add_constraint(lambda v: v.get_value('exec_option')['batch_size'] == 0)
|
|
|
|
def test_perf_aggregation(self, vector):
|
|
self.run_test_case('aggregation', vector)
|
|
|
|
def test_perf_limit(self, vector):
|
|
self.run_test_case('limit', vector)
|
|
|
|
def test_perf_string(self, vector):
|
|
self.run_test_case('string', vector)
|