Skip to content

[GLUTEN-12263][VL] Bump lance-spark to 0.9.0-beta.2 - #13515

Closed
malinjawi wants to merge 1 commit into
apache:mainfrom
malinjawi:chore/lance-0.9.0-beta.2
Closed

malinjawi wants to merge 1 commit into
apache:mainfrom
malinjawi:chore/lance-0.9.0-beta.2

Conversation

@malinjawi

@malinjawi malinjawi commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

What changes are proposed in this pull request?

This is a temporary bump of lance.version from 0.8.0 to 0.9.0-beta.2. That beta is the first lance-spark release with the changes the native Lance writer for #12263 needs: LanceBatchWrite.taskCommit (lance-format/lance-spark#715) and LanceBatchWrite.getFragmentWriteSpec (lance-format/lance-spark#892). The writer comes in a follow-up PR.

Once lance-spark publishes its next official release, we will switch lance.version to it.

Lance reads do not change: lance-core stays at 12.0.0.

How was this patch tested?

VeloxLanceSuite passes on Spark 3.5 and 4.0 against 0.9.0-beta.2 from Maven Central.

Was this patch authored or co-authored using generative AI tooling?

Generated-by: IBM Bob

0.9.0-beta.2 is the first lance-spark release with
LanceBatchWrite.taskCommit (lance-spark#715) and
LanceBatchWrite.getFragmentWriteSpec (lance-spark#892), which a native
Lance writer in Gluten builds on. Lance reads are unchanged.
@github-actions github-actions Bot added the CORE works for Gluten Core label Nov 1, 2026
@github-actions

github-actions Bot commented Nov 1, 2026

Copy link
Copy Markdown

Run Gluten Clickhouse CI on x86

@malinjawi

Copy link
Copy Markdown
Contributor Author

cc @zhouyuan @FelixYBW @sezruby could you take a look? This is a small temporary bump so the native Lance writer can build on the lance-spark beta; we’ll move to the next official release once it’s out.

@sezruby sezruby left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Two non-blocking notes:

  1. Could you open a tracking issue, or add a TODO next to lance.version, so this moves to the final 0.9.0 before the next Gluten release and we don't ship against a beta?
  2. The bump changes which scans the Arrow C stream export accepts. lance-spark now restores timestamp units and timezones from field metadata (lance-spark#881) and widens pruned nested structs (ReadSchemaNestedStructWidening, added with lance-spark#891). So two cases that used to fail after offload should now work: microsecond timestamps with a non-UTC timezone, and reads of only some nested-struct fields. VeloxLanceSuite covers neither, so a test for each would lock that in. Timestamps stored in ns/ms/s still fail after offload, because Spark's ArrowColumnVector only accepts microsecond vectors. Now that the unit is in the field metadata, a follow-up could have isExportable keep those on vanilla Spark.

@malinjawi

Copy link
Copy Markdown
Contributor Author

Thanks @sezruby!

  1. Good call, I opened [VL] Move lance-spark off the 0.9.0 beta before the next Gluten release #13527 so we don't forget to move off the beta before the next release.
  2. Nice catch on those two. Now that [GLUTEN-13487][VL] Offload Lance scans with vector columns #13488 is merged, I'll add tests for both (microsecond timestamps with a non-UTC timezone, and reading just some fields of a nested struct) in the scan fallback PR for [VL] Lance scan fails at runtime on vector columns instead of falling back #13487. That PR's check builds the Arrow schema with lance-spark's own mapping, so with the unit now in the metadata it should keep ns/ms/s timestamps on vanilla Spark as well. I'll add a test for that too.

@malinjawi

Copy link
Copy Markdown
Contributor Author

Closing in favor of #13595, which includes this bump as its first commit along with the native writer.

@malinjawi malinjawi closed this Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CORE works for Gluten Core

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants