# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. import re from datetime import datetime # IMPALA-6715: Every so often the stress test or the TPC workload directories get # changed, and the stress test loses the ability to run the full set of queries. Set # these constants and assert that when a workload is used, all the queries we expect to # use are there. EXPECTED_TPCDS_QUERIES_COUNT = 71 EXPECTED_TPCH_NESTED_QUERIES_COUNT = 22 EXPECTED_TPCH_QUERIES_COUNT = 25 # Regex to extract the estimated memory from an explain plan. # The unit prefixes can be found in # fe/src/main/java/org/apache/impala/common/PrintUtils.java MEM_ESTIMATE_PATTERN = re.compile( r"Per-Host Resource Estimates: Memory=(\d+\.?\d*)(P|T|G|M|K)?B") NEW_GLOG_ENTRY_PATTERN = re.compile(r"[IWEF](?P