Skip to content

fix: Add null comparison ops to ColumnSerializable - #5656

Open
enesbugrahankilic wants to merge 1 commit into
serverpod:mainfrom
enesbugrahankilic:fix/column-serializable-null-ops
Open

enesbugrahankilic wants to merge 1 commit into
serverpod:mainfrom
enesbugrahankilic:fix/column-serializable-null-ops

Conversation

@enesbugrahankilic

@enesbugrahankilic enesbugrahankilic commented Aug 31, 2026 •

Copy link
Copy Markdown

Summary

ColumnSerializable previously had no column operations, making null checks on nullable JSON columns (e.g. List<T>?) impossible.

This PR extends ColumnSerializable with _NullableColumnDefaultOperations, matching ColumnUri and similar types. equals(null) and notEquals(null) now produce IS NULL / IS NOT NULL expressions.

Fixes #1591

Test plan

  • Added unit tests for null and non-null comparisons

@github-actions

github-actions Bot commented Aug 31, 2026 •

Copy link
Copy Markdown

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@enesbugrahankilic enesbugrahankilic changed the title fix: add null comparison ops to ColumnSerializable fix: Add null comparison ops to ColumnSerializable Aug 31, 2026
@enesbugrahankilic

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

@enesbugrahankilic

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA


@enesbugrahankilic

Copy link
Copy Markdown
Author

recheck

@enesbugrahankilic
enesbugrahankilic force-pushed the fix/column-serializable-null-ops branch from 7534c0e to f10084d Compare August 31, 2026 05:33
ColumnSerializable now supports equals/notEquals with null, enabling
is-not-null checks on nullable JSON columns (e.g. List<T>?).

Fixes serverpod#1591

Co-authored-by: Cursor <[email protected]>
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.

ColumnSerializable implementation is incomplete

1 participant