Skip to content

feat: remove serialisation of built-in file formats from ballista - #2348

Open
milenkovicm wants to merge 1 commit into
apache:mainfrom
milenkovicm:feat_cleanup_logical_codec
Open

feat: remove serialisation of built-in file formats from ballista #2348
milenkovicm wants to merge 1 commit into
apache:mainfrom
milenkovicm:feat_cleanup_logical_codec

Conversation

@milenkovicm

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Closes #.

Rationale for this change

datafusion DefaultLogicalExtensionCodec support serde of build in file formats since apache/datafusion#16944 there is no need to have duplicated code in ballista.

What changes are included in this PR?

remove handling of build in file formats from ballista logical code, and delegate it to datafusion

Are there any user-facing changes?

No

@milenkovicm milenkovicm changed the title feat: remove serialisation of build in file formats from ballista feat: remove serialisation of built-in file formats from ballista Aug 20, 2026
&self,
mut f: impl FnMut(&dyn LogicalExtensionCodec) -> Result<R>,
) -> Result<(u32, R)> {
let mut last_err = None;

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.

I think this changes the protobuf encoding wire numbers? If so, we should bump BALLISTA_PROTOCOL_VERSION

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

#2337 ( you 🫵🏻 ) update it two days ago 😀. i believe, we as we haven't released it yet, no need to update it. do i miss something @avantgardnerio ?

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.

I was not sure what convention we wanted to support here. I'm not sure if folks are tracking ballista/main in their own projects. It seemed like monotonic bumps couldn't hurt. @phillipleblanc ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I have no problem to increment it, id argue that we should have API checkpoint on release

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.

Makes me wonder if it should just be the hash of the protobuf, or a git SHA. Not advocating for either, just thinking out loud.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

we could do it, it would be easy to automate, it would be hard to capture backward compatible changes, though.

i believe this change should produce same binary output (as the logic has been moved from here to datafusion), i would not put my money on that claim 😀

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.

3 participants