Skip to content

[test] Fix Spark test assumptions about partition names and full-text queries - #11623

Merged
JingsongLi merged 1 commit into
apache:masterfrom
Zouxxyy:test/spark-partition-fulltext-portability
Dec 2, 2026
Merged

JingsongLi merged 1 commit into
apache:masterfrom
Zouxxyy:test/spark-partition-fulltext-portability

Conversation

@Zouxxyy

@Zouxxyy Zouxxyy commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Purpose

The null partition management test hardcodes __DEFAULT_PARTITION__. Read the table's partition.default-name and cover both the default and a custom name. The assertions check that the configured marker is rejected as a literal and that NULL selects the null partition.

Use {"match":{"query":"paimon"}} in the search snapshot test. This query is accepted by the test full-text backend and the native single-column index, whose default schema does not configure a content field. The assertions continue to check that search results come from the ranking snapshot.

Tests

mvn -B -ntp -pl paimon-spark/paimon-spark-ut -Pflink1,spark4 \
  -DfailIfNoTests=false -Dtest=none \
  -DwildcardSuites=org.apache.paimon.spark.sql.PaimonPartitionManagementTest,org.apache.paimon.spark.sql.VectorSearchOptionsTest \
  -Duser.timezone=GMT+00:00 test

30 tests passed on Spark 4.1.4. Standard module checks also passed.

@JingsongLi
JingsongLi merged commit f1b735b into apache:master Dec 2, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants