Skip to content

test(spark): characterize VortexCatalog path identifier resolution - #9161

Merged
robert3005 merged 1 commit into
vortex-data:developfrom
jackylee-ch:spark-vortex-catalog-tests
Aug 4, 2026
Merged

robert3005 merged 1 commit into
vortex-data:developfrom
jackylee-ch:spark-vortex-catalog-tests

Conversation

@jackylee-ch

Copy link
Copy Markdown
Contributor

VortexCatalog — the path-based catalog behind SELECT * FROM vortex.`/path` — was only exercised end-to-end through VortexSqlTest, which starts a real session. This pins the identifier contract directly, without starting Spark.

Covered:

  • the catalog name comes from initialize, and defaults to vortex before it is called
  • listTables is always empty: the catalog holds no state, tables are addressed by path
  • an identifier with no / is not a table, and neither is a namespaced one even when the name looks like a path
  • a path-shaped identifier that cannot be read is deliberately translated into NoSuchTableException, so SQL users see "table not found" rather than an internal error
  • dropTable reports that nothing was dropped rather than deleting data
  • CREATE, ALTER and RENAME TABLE are unsupported

Tests

  • ./gradlew :vortex-spark_2.13:test --tests 'dev.vortex.spark.VortexCatalogTest' — 10/10 pass
  • ./gradlew :vortex-spark_2.12:test --tests 'dev.vortex.spark.VortexCatalogTest' — 10/10 pass
  • ./gradlew :vortex-spark_2.13:spotlessCheck — clean

VortexCatalog was only exercised end-to-end through VortexSqlTest, which
starts a real session. Pin the identifier contract directly instead: a
name must look like a path and carry no namespace, and a path-shaped
identifier that cannot be read is deliberately translated into
NoSuchTableException so SQL users see "table not found" rather than an
internal error.

Also cover the surface the catalog does not implement: dropTable reports
that nothing was dropped rather than deleting data, and CREATE, ALTER and
RENAME TABLE are unsupported.

Signed-off-by: jackylee <qcsd2011@gmail.com>
@robert3005
robert3005 enabled auto-merge (squash) August 4, 2026 10:03
@robert3005 robert3005 added the changelog/chore A trivial change label Aug 4, 2026
@robert3005
robert3005 merged commit c677bb7 into vortex-data:develop Aug 4, 2026
84 of 85 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/chore A trivial change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants