Skip to content

Bump spirit to @main#12

Open
morgo wants to merge 1 commit into
block:mainfrom
morgo:bump-spirit-main-20260703
Open

Bump spirit to @main#12
morgo wants to merge 1 commit into
block:mainfrom
morgo:bump-spirit-main-20260703

Conversation

@morgo

@morgo morgo commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator

Bumps the github.com/block/spirit dependency to the latest main (5b931ac). polt's main was on a much older spirit (v0.12.1, Apr 2026), so this also pulls in transitive updates (x/text, x/tools).

The new spirit changed the chunker construction API:

  • table.NewCompositeChunker(...) was removed.
  • table.NewChunker now takes (t *table.TableInfo, config table.ChunkerConfig) instead of positional args.

Migrated all three call sites accordingly:

  • pkg/stage/stager.go (was NewCompositeChunker; Key/Where now set on the config, which forces the composite chunker as before)
  • pkg/archive/buffer_stager.go
  • pkg/parquet/write_buffer_test.go

go build ./... and go vet ./... pass. Supersedes the earlier draft #11.

🤖 Generated with Claude Code

Migrate chunker construction to the new spirit API: table.NewCompositeChunker
was removed and table.NewChunker's signature changed to take a
table.ChunkerConfig struct. Updated all three call sites (pkg/stage,
pkg/archive, pkg/parquet test). go build ./... and go vet ./... pass.
Copilot AI review requested due to automatic review settings July 3, 2026 13:07
@morgo morgo mentioned this pull request Jul 3, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Updates github.com/block/spirit to the latest main commit and adjusts polt’s chunker construction code to the new Spirit API (table.NewChunker(*TableInfo, table.ChunkerConfig)), replacing the removed table.NewCompositeChunker and older NewChunker call patterns.

Changes:

  • Bump github.com/block/spirit to v0.15.2-0.20260702163828-5b931ace8482 and refresh transitive dependencies (notably x/text, x/tools, x/sync, kong, etc.).
  • Migrate all in-repo chunker construction call sites to table.NewChunker(..., table.ChunkerConfig{...}).
  • Update the parquet write-buffer test to use the new chunker config-based constructor.

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
pkg/stage/stager.go Replaces removed NewCompositeChunker with NewChunker + ChunkerConfig (Key/Where moved into config).
pkg/archive/buffer_stager.go Updates chunker construction to the new NewChunker signature using ChunkerConfig (including NewTable).
pkg/parquet/write_buffer_test.go Updates test chunker creation to NewChunker + ChunkerConfig.
go.mod Bumps Spirit and related direct/indirect module requirements.
go.sum Updates checksums for the bumped dependencies.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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