mirror of
https://github.com/apache/impala.git
synced 2025-12-19 18:12:08 -05:00
The main motivation is to evaluate expensive geospatial functions (which are Java functions) last in predicates. Java functions have a major overhead anyway from the JNI call, so bumping all Java function costs seems beneficial. Note that currently geospatial functions are the only built-in Java functions. Change-Id: I11d1652d76092ec60af18a33502dacc25b284fcc Reviewed-on: http://gerrit.cloudera.org:8080/22733 Reviewed-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com> Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
33 lines
1.4 KiB
Python
33 lines
1.4 KiB
Python
# 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.
|
|
|
|
from __future__ import absolute_import, division, print_function
|
|
from tests.common.impala_test_suite import ImpalaTestSuite
|
|
from tests.common.skip import SkipIfApacheHive
|
|
|
|
|
|
class TestGeospatialFuctions(ImpalaTestSuite):
|
|
"""Tests the geospatial builtin functions"""
|
|
@SkipIfApacheHive.feature_not_supported
|
|
def test_esri_geospatial_functions(self, vector):
|
|
self.run_test_case('QueryTest/geospatial-esri', vector)
|
|
|
|
def test_esri_geospatial_planner(self, vector):
|
|
# These tests are not among planner tests because with default flags
|
|
# geospatial builtin functions are not loaded.
|
|
self.run_test_case('QueryTest/geospatial-esri-planner', vector)
|