Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

skip failing tests for Spark 3.3.0 #5313

Merged
merged 2 commits into from
Apr 26, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions integration_tests/src/main/python/map_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,9 @@ def test_simple_get_map_value_ansi_fail(data_gen):

@pytest.mark.skipif(is_before_spark_330(),
reason="Only in Spark 3.3.0 + ANSI mode + Strict Index, map key throws on no such element")
@pytest.mark.skipif(not is_before_spark_330(),
jlowe marked this conversation as resolved.
Show resolved Hide resolved
reason="There was a bug introduced in Spark 3.3.0 which is being tracked by " \
"https://issues.apache.org/jira/browse/SPARK-39015")
@pytest.mark.parametrize('strict_index', ['true', 'false'])
@pytest.mark.parametrize('data_gen', [simple_string_to_string_map_gen], ids=idfn)
def test_simple_get_map_value_with_strict_index(strict_index, data_gen):
Expand Down Expand Up @@ -359,6 +362,9 @@ def test_element_at_map_timestamp_keys(data_gen):


@pytest.mark.parametrize('data_gen', [simple_string_to_string_map_gen], ids=idfn)
@pytest.mark.skipif(not is_before_spark_330(),
reason="There was a bug introduced in Spark 3.3.0 which is being tracked by " \
"https://issues.apache.org/jira/browse/SPARK-39015")
def test_map_element_at_ansi_fail(data_gen):
message = "org.apache.spark.SparkNoSuchElementException" if (not is_before_spark_330() or is_databricks104_or_later()) else "java.util.NoSuchElementException"
# For 3.3.0+ strictIndexOperator should not affect element_at
Expand Down