• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Python test_dimensions.create_exec_option_dimension函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Python中tests.common.test_dimensions.create_exec_option_dimension函数的典型用法代码示例。如果您正苦于以下问题:Python create_exec_option_dimension函数的具体用法?Python create_exec_option_dimension怎么用?Python create_exec_option_dimension使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了create_exec_option_dimension函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。

示例1: add_test_dimensions

  def add_test_dimensions(cls):
    super(TestFailpoints, cls).add_test_dimensions()
    # Executing an explain on the the test query will fail in an enviornment where hbase
    # tables don't exist (s3). Since this happens before the tests are run, the skipif
    # marker won't catch it. If 's3' is detected as a file system, return immedietely.
    if os.getenv("TARGET_FILESYSTEM") in ["s3", "isilon", "local"]: return
    node_id_map = TestFailpoints.parse_plan_nodes_from_explain_output(QUERY, "functional")
    assert node_id_map
    cls.TestMatrix.add_dimension(TestDimension('location', *FAILPOINT_LOCATION))
    cls.TestMatrix.add_dimension(TestDimension('target_node', *(node_id_map.items())))
    cls.TestMatrix.add_dimension(TestDimension('action', *FAILPOINT_ACTION))
    cls.TestMatrix.add_dimension(TestDimension('query_type', *QUERY_TYPE))
    cls.TestMatrix.add_dimension(create_exec_option_dimension([0], [False], [0]))

    # These are invalid test cases.
    # For more info see IMPALA-55 and IMPALA-56.
    cls.TestMatrix.add_constraint(lambda v: not (
        v.get_value('action') == 'FAIL' and
        v.get_value('location') in ['CLOSE'] and
        v.get_value('target_node')[0] in ['AGGREGATE', 'HASH JOIN']) and
        not (v.get_value('location') in ['PREPARE'] and
             v.get_value('action') == 'CANCEL'))

    # Don't create CLOSE:WAIT debug actions to avoid leaking plan fragments (there's no
    # way to cancel a plan fragment once Close() has been called)
    cls.TestMatrix.add_constraint(
        lambda v: not (v.get_value('action') == 'CANCEL'
                     and v.get_value('location') == 'CLOSE'))

    # No need to test error in scanner preparation for non-scan nodes.
    cls.TestMatrix.add_constraint(
        lambda v: (v.get_value('location') != 'PREPARE_SCANNER' or
            v.get_value('target_node')[0] == 'SCAN HDFS'))
开发者ID:cchanning,项目名称:incubator-impala,代码行数:33,代码来源:test_failpoints.py


示例2: add_test_dimensions

 def add_test_dimensions(cls):
   super(TestStringQueries, cls).add_test_dimensions()
   cls.ImpalaTestMatrix.add_dimension(
     create_exec_option_dimension(disable_codegen_options=[False, True]))
   cls.ImpalaTestMatrix.add_constraint(lambda v:\
       v.get_value('table_format').file_format in ['text'] and
       v.get_value('table_format').compression_codec in ['none'])
开发者ID:michaelhkw,项目名称:Impala,代码行数:7,代码来源:test_chars.py


示例3: add_test_dimensions

 def add_test_dimensions(cls):
   super(TestLocalTzConversion, cls).add_test_dimensions()
   cls.ImpalaTestMatrix.add_dimension(create_exec_option_dimension(
       cluster_sizes=[0], disable_codegen_options=[False, True], batch_sizes=[0]))
   # Test with and without expr rewrites to cover regular expr evaluations
   # as well as constant folding, in particular, timestamp literals.
   cls.ImpalaTestMatrix.add_dimension(
       ImpalaTestDimension('enable_expr_rewrites', *[0,1]))
开发者ID:apache,项目名称:incubator-impala,代码行数:8,代码来源:test_local_tz_conversion.py


示例4: add_test_dimensions

  def add_test_dimensions(cls):
    super(TestAggregationQueries, cls).add_test_dimensions()

    cls.TestMatrix.add_dimension(
      create_exec_option_dimension(disable_codegen_options=[False, True]))

    if cls.exploration_strategy() == 'core':
      cls.TestMatrix.add_dimension(create_uncompressed_text_dimension(cls.get_workload()))
开发者ID:cloudera,项目名称:recordservice,代码行数:8,代码来源:test_aggregation.py


示例5: add_test_dimensions

  def add_test_dimensions(cls):
    super(TestWideAggregationQueries, cls).add_test_dimensions()

    cls.TestMatrix.add_dimension(
      create_exec_option_dimension(disable_codegen_options=[False, True]))

    # File format doesn't matter for this test.
    cls.TestMatrix.add_constraint(
      lambda v: v.get_value('table_format').file_format == 'parquet')
开发者ID:attilajeges,项目名称:incubator-impala,代码行数:9,代码来源:test_aggregation.py


示例6: add_test_dimensions

 def add_test_dimensions(cls):
   super(TestInsertParquetVerifySize, cls).add_test_dimensions()
   # Fix the exec_option vector to have a single value.
   cls.TestMatrix.add_dimension(create_exec_option_dimension(
       cluster_sizes=[0], disable_codegen_options=[False], batch_sizes=[0],
       sync_ddl=[1]))
   cls.TestMatrix.add_constraint(lambda v:\
       v.get_value('table_format').file_format == 'parquet')
   cls.TestMatrix.add_constraint(lambda v:\
       v.get_value('table_format').compression_codec == 'none')
   cls.TestMatrix.add_dimension(TestDimension("compression_codec", *PARQUET_CODECS));
开发者ID:mbrukman,项目名称:apache-impala,代码行数:11,代码来源:test_insert_parquet.py


示例7: __create_exec_option_dimension

 def __create_exec_option_dimension(cls):
   cluster_sizes = ALL_CLUSTER_SIZES
   disable_codegen_options = ALL_DISABLE_CODEGEN_OPTIONS
   batch_sizes = ALL_BATCH_SIZES
   exec_single_node_option = [0]
   if cls.exploration_strategy() == 'core':
     disable_codegen_options = [False]
     cluster_sizes = ALL_NODES_ONLY
   return create_exec_option_dimension(cluster_sizes, disable_codegen_options,
                                       batch_sizes,
                                       exec_single_node_option=exec_single_node_option)
开发者ID:attilajeges,项目名称:incubator-impala,代码行数:11,代码来源:impala_test_suite.py


示例8: add_test_dimensions

 def add_test_dimensions(cls):
   super(TestStringQueries, cls).add_test_dimensions()
   cls.ImpalaTestMatrix.add_dimension(
     create_exec_option_dimension(disable_codegen_options=[False, True]))
   cls.ImpalaTestMatrix.add_constraint(lambda v:\
       v.get_value('table_format').file_format in ['text'] and
       v.get_value('table_format').compression_codec in ['none'])
   # Run these queries through both beeswax and HS2 to get coverage of CHAR/VARCHAR
   # returned via both protocols.
   cls.ImpalaTestMatrix.add_dimension(create_beeswax_hs2_dimension())
   cls.ImpalaTestMatrix.add_constraint(hs2_text_constraint)
开发者ID:apache,项目名称:incubator-impala,代码行数:11,代码来源:test_chars.py


示例9: add_test_dimensions

  def add_test_dimensions(cls):
    super(TestExprLimits, cls).add_test_dimensions()
    if cls.exploration_strategy() != 'exhaustive':
      # Ensure the test runs with codegen enabled and disabled, even when the
      # exploration strategy is not exhaustive.
      cls.TestMatrix.clear_dimension('exec_option')
      cls.TestMatrix.add_dimension(create_exec_option_dimension(
          cluster_sizes=[0], disable_codegen_options=[False, True], batch_sizes=[0]))

    # There is no reason to run these tests using all dimensions.
    cls.TestMatrix.add_dimension(create_uncompressed_text_dimension(cls.get_workload()))
开发者ID:cchanning,项目名称:incubator-impala,代码行数:11,代码来源:test_exprs.py


示例10: add_test_dimensions

 def add_test_dimensions(cls):
     super(TestInsertParquetInvalidCodec, cls).add_test_dimensions()
     # Fix the exec_option vector to have a single value.
     cls.TestMatrix.add_dimension(
         create_exec_option_dimension(
             cluster_sizes=[0], disable_codegen_options=[False], batch_sizes=[0], sync_ddl=[1]
         )
     )
     cls.TestMatrix.add_dimension(TestDimension("compression_codec", "bzip2"))
     cls.TestMatrix.add_constraint(lambda v: v.get_value("table_format").file_format == "parquet")
     cls.TestMatrix.add_constraint(lambda v: v.get_value("table_format").compression_codec == "none")
开发者ID:RingsC,项目名称:Impala,代码行数:11,代码来源:test_insert_parquet.py


示例11: add_test_dimensions

 def add_test_dimensions(cls):
     super(TestExprLimits, cls).add_test_dimensions()
     cls.TestMatrix.clear_dimension("exec_option")
     # Run with codegen enabled and disabled.
     cls.TestMatrix.add_dimension(
         create_exec_option_dimension(cluster_sizes=[0], disable_codegen_options=[False, True], batch_sizes=[0])
     )
     # There is no reason to run these tests using all dimensions.
     cls.TestMatrix.add_constraint(
         lambda v: v.get_value("table_format").file_format == "text"
         and v.get_value("table_format").compression_codec == "none"
     )
开发者ID:hmncyj,项目名称:Impala,代码行数:12,代码来源:test_expr_limits.py


示例12: add_test_dimensions

 def add_test_dimensions(cls):
   super(TestInsertQueriesWithPermutation, cls).add_test_dimensions()
   # Fix the exec_option vector to have a single value. This is needed should we decide
   # to run the insert tests in parallel (otherwise there will be two tests inserting
   # into the same table at the same time for the same file format).
   # TODO: When we do decide to run these tests in parallel we could create unique temp
   # tables for each test case to resolve the concurrency problems.
   # TODO: do we need to run with multiple file formats? This seems to be really
   # targeting FE behavior.
   cls.TestMatrix.add_dimension(create_exec_option_dimension(
       cluster_sizes=[0], disable_codegen_options=[False], batch_sizes=[0]))
   cls.TestMatrix.add_dimension(create_uncompressed_text_dimension(cls.get_workload()))
开发者ID:1ack,项目名称:Impala,代码行数:12,代码来源:test_insert_permutation.py


示例13: add_test_dimensions

 def add_test_dimensions(cls):
     super(TestInsertQueriesWithPermutation, cls).add_test_dimensions()
     # Fix the exec_option vector to have a single value. This is needed should we decide
     # to run the insert tests in parallel (otherwise there will be two tests inserting
     # into the same table at the same time for the same file format).
     # TODO: When we do decide to run these tests in parallel we could create unique temp
     # tables for each test case to resolve the concurrency problems.
     cls.TestMatrix.add_dimension(
         create_exec_option_dimension(cluster_sizes=[0], disable_codegen_options=[False], batch_sizes=[0])
     )
     # Insert is currently only supported for text and parquet
     cls.TestMatrix.add_constraint(lambda v: v.get_value("table_format").file_format in ["text", "parquet"])
     cls.TestMatrix.add_constraint(lambda v: v.get_value("table_format").compression_codec == "none")
开发者ID:ZhuChaoyu,项目名称:Impala,代码行数:13,代码来源:test_insert_permutation.py


示例14: add_test_dimensions

  def add_test_dimensions(cls):
    super(TestMetadataQueryStatements, cls).add_test_dimensions()
    sync_ddl_opts = [0, 1]
    if cls.exploration_strategy() != 'exhaustive':
      # Cut down on test runtime by only running with SYNC_DDL=0
      sync_ddl_opts = [0]

    cls.TestMatrix.add_dimension(create_exec_option_dimension(
        cluster_sizes=ALL_NODES_ONLY,
        disable_codegen_options=[False],
        batch_sizes=[0],
        sync_ddl=sync_ddl_opts))
    cls.TestMatrix.add_dimension(create_uncompressed_text_dimension(cls.get_workload()))
开发者ID:attilajeges,项目名称:incubator-impala,代码行数:13,代码来源:test_metadata_query_statements.py


示例15: add_test_dimensions

  def add_test_dimensions(cls):
    super(TestDdlBase, cls).add_test_dimensions()
    sync_ddl_opts = [0, 1]
    if cls.exploration_strategy() != 'exhaustive':
      # Only run with sync_ddl on exhaustive since it increases test runtime.
      sync_ddl_opts = [0]

    cls.TestMatrix.add_dimension(create_exec_option_dimension(
        cluster_sizes=ALL_NODES_ONLY,
        disable_codegen_options=[False],
        batch_sizes=[0],
        sync_ddl=sync_ddl_opts))

    # There is no reason to run these tests using all dimensions.
    cls.TestMatrix.add_dimension(create_uncompressed_text_dimension(cls.get_workload()))
开发者ID:cchanning,项目名称:incubator-impala,代码行数:15,代码来源:test_ddl_base.py


示例16: add_test_dimensions

  def add_test_dimensions(cls):
    super(TestInsertWideTable, cls).add_test_dimensions()

    # Only vary codegen
    cls.TestMatrix.add_dimension(create_exec_option_dimension(
        cluster_sizes=[0], disable_codegen_options=[True, False], batch_sizes=[0]))

    # Inserts only supported on text and parquet
    cls.TestMatrix.add_constraint(lambda v:\
        v.get_value('table_format').file_format == 'parquet' or \
        v.get_value('table_format').file_format == 'text')
    cls.TestMatrix.add_constraint(lambda v:\
        v.get_value('table_format').compression_codec == 'none')

    # Don't run on core. This test is very slow (IMPALA-864) and we are unlikely to
    # regress here.
    if cls.exploration_strategy() == 'core':
      cls.TestMatrix.add_constraint(lambda v: False);
开发者ID:ZhuChaoyu,项目名称:Impala,代码行数:18,代码来源:test_insert.py


示例17: add_test_dimensions

  def add_test_dimensions(cls):
    super(TestFailpoints, cls).add_test_dimensions()
    cls.ImpalaTestMatrix.add_dimension(
        ImpalaTestDimension('query', *QUERIES))
    cls.ImpalaTestMatrix.add_dimension(
        ImpalaTestDimension('action', *FAILPOINT_ACTIONS))
    cls.ImpalaTestMatrix.add_dimension(
        ImpalaTestDimension('location', *FAILPOINT_LOCATIONS))
    cls.ImpalaTestMatrix.add_dimension(
        ImpalaTestDimension('mt_dop', *MT_DOP_VALUES))
    cls.ImpalaTestMatrix.add_dimension(
        create_exec_option_dimension([0], [False], [0]))

    # Don't create PREPARE:WAIT debug actions because cancellation is not checked until
    # after the prepare phase once execution is started.
    cls.ImpalaTestMatrix.add_constraint(
        lambda v: not (v.get_value('action') == 'CANCEL'
                     and v.get_value('location') == 'PREPARE'))
    # Don't create CLOSE:WAIT debug actions to avoid leaking plan fragments (there's no
    # way to cancel a plan fragment once Close() has been called)
    cls.ImpalaTestMatrix.add_constraint(
        lambda v: not (v.get_value('action') == 'CANCEL'
                     and v.get_value('location') == 'CLOSE'))
开发者ID:apache,项目名称:incubator-impala,代码行数:23,代码来源:test_failpoints.py


示例18: add_test_dimensions

  def add_test_dimensions(cls):
    super(TestFailpoints, cls).add_test_dimensions()
    node_id_map = TestFailpoints.parse_plan_nodes_from_explain_output(QUERY, "functional")
    assert node_id_map
    cls.TestMatrix.add_dimension(TestDimension('location', *FAILPOINT_LOCATION))
    cls.TestMatrix.add_dimension(TestDimension('target_node', *(node_id_map.items())))
    cls.TestMatrix.add_dimension(TestDimension('action', *FAILPOINT_ACTION))
    cls.TestMatrix.add_dimension(TestDimension('query_type', *QUERY_TYPE))
    cls.TestMatrix.add_dimension(create_exec_option_dimension([0], [False], [0]))

    # These are invalid test cases.
    # For more info see IMPALA-55 and IMPALA-56.
    cls.TestMatrix.add_constraint(lambda v: not (\
        v.get_value('action') == 'FAIL' and\
        v.get_value('location') in ['CLOSE'] and\
        v.get_value('target_node')[0] in ['AGGREGATE', 'HASH JOIN']) and\
        not (v.get_value('location') in ['PREPARE'] and \
             v.get_value('action') == 'CANCEL'))

    # Don't create CLOSE:WAIT debug actions to avoid leaking plan fragments (there's no
    # way to cancel a plan fragment once Close() has been called)
    cls.TestMatrix.add_constraint(
      lambda v: not (v.get_value('action') == 'CANCEL'
                     and v.get_value('location') == 'CLOSE'))
开发者ID:Web5design,项目名称:Impala,代码行数:24,代码来源:test_failpoints.py


示例19: add_test_dimensions

 def add_test_dimensions(cls):
   super(TestErrorLogs, cls).add_test_dimensions()
   cls.ImpalaTestMatrix.add_constraint(lambda v:\
       v.get_value('table_format').file_format == 'text')
   cls.ImpalaTestMatrix.add_dimension(create_exec_option_dimension(
       cluster_sizes=[0], disable_codegen_options=[False], batch_sizes=[0]))
开发者ID:michaelhkw,项目名称:Impala,代码行数:6,代码来源:test_errorlog.py


示例20: add_test_dimensions

 def add_test_dimensions(cls):
   super(TestCorruptTableStats, cls).add_test_dimensions()
   cls.ImpalaTestMatrix.add_dimension(create_exec_option_dimension(
     disable_codegen_options=[False], exec_single_node_option=[100]))
   cls.ImpalaTestMatrix.add_dimension(
       create_uncompressed_text_dimension(cls.get_workload()))
开发者ID:apache,项目名称:incubator-impala,代码行数:6,代码来源:test_compute_stats.py



注:本文中的tests.common.test_dimensions.create_exec_option_dimension函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python test_dimensions.create_single_exec_option_dimension函数代码示例发布时间:2022-05-27
下一篇:
Python debug.minimal函数代码示例发布时间:2022-05-27
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap