Skip to content

Add tryRegisterNamedVectorSerde() to VectorSerde classes#16757

Open
han-yan01 wants to merge 1 commit intofacebookincubator:mainfrom
han-yan01:export-D96412951
Open

Add tryRegisterNamedVectorSerde() to VectorSerde classes#16757
han-yan01 wants to merge 1 commit intofacebookincubator:mainfrom
han-yan01:export-D96412951

Conversation

@han-yan01
Copy link
Contributor

@han-yan01 han-yan01 commented Mar 13, 2026

Summary:
Add static tryRegisterNamedVectorSerde() method to PrestoVectorSerde,
CompactRowVectorSerde, and UnsafeRowVectorSerde. This method checks if
the serde is already registered before attempting registration, avoiding
duplicate registration errors and simplifying caller code.

This is extracted from D96046667 as a minimal API addition to unblock
axiom migration (D96254285) while the full refactor is reviewed.

Reviewed By: xiaoxmeng

Differential Revision: D96412951

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 13, 2026
@netlify
Copy link

netlify bot commented Mar 13, 2026

Deploy Preview for meta-velox canceled.

Name Link
🔨 Latest commit ad62ed4
🔍 Latest deploy log https://app.netlify.com/projects/meta-velox/deploys/69b3ac0d3cdb220009a183fe

@meta-codesync
Copy link

meta-codesync bot commented Mar 13, 2026

@han-yan01 has exported this pull request. If you are a Meta employee, you can view the originating Diff in D96412951.

@han-yan01 han-yan01 changed the title Add name() static method to VectorSerde classes refactor: Add name() static method to VectorSerde classes Mar 13, 2026
@meta-codesync meta-codesync bot changed the title refactor: Add name() static method to VectorSerde classes Add name() static method to VectorSerde classes Mar 13, 2026
@han-yan01 han-yan01 force-pushed the export-D96412951 branch 2 times, most recently from 7271873 to ca6b12e Compare March 13, 2026 05:25
@meta-codesync meta-codesync bot changed the title Add name() static method to VectorSerde classes Add name() static method to VectorSerde classes (#16757) Mar 13, 2026
han-yan01 added a commit to han-yan01/velox that referenced this pull request Mar 13, 2026
)

Summary:

Add static name() method to PrestoVectorSerde, CompactRowVectorSerde,
and UnsafeRowVectorSerde to provide a compile-time serde name accessor.
This allows callers to reference serde names without hardcoding strings.

This is extracted from D96046667 as a minimal API addition to unblock
axiom migration (D96254285) while the full refactor is reviewed.

Reviewed By: xiaoxmeng

Differential Revision: D96412951
han-yan01 added a commit to han-yan01/velox that referenced this pull request Mar 13, 2026
)

Summary:
Pull Request resolved: facebookincubator#16757

Add static name() method to PrestoVectorSerde, CompactRowVectorSerde,
and UnsafeRowVectorSerde to provide a compile-time serde name accessor.
This allows callers to reference serde names without hardcoding strings.

This is extracted from D96046667 as a minimal API addition to unblock
axiom migration (D96254285) while the full refactor is reviewed.

Reviewed By: xiaoxmeng

Differential Revision: D96412951
@meta-codesync meta-codesync bot changed the title Add name() static method to VectorSerde classes (#16757) Add tryRegisterNamedVectorSerde() to VectorSerde classes Mar 13, 2026
Summary:
Add static tryRegisterNamedVectorSerde() method to PrestoVectorSerde,
CompactRowVectorSerde, and UnsafeRowVectorSerde. This method checks if
the serde is already registered before attempting registration, avoiding
duplicate registration errors and simplifying caller code.

This is extracted from D96046667 as a minimal API addition to unblock
axiom migration (D96254285) while the full refactor is reviewed.

Reviewed By: xiaoxmeng

Differential Revision: D96412951
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants