You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Bohdan Siryk (Jira)" <ji...@apache.org> on 2026/04/07 14:10:00 UTC

[jira] [Comment Edited] (CASSGO-118) Nil map for UDT column inserts zero-valued UDT instead of NULL

    [ https://issues.apache.org/jira/browse/CASSGO-118?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18071719#comment-18071719 ] 

Bohdan Siryk edited comment on CASSGO-118 at 4/7/26 2:09 PM:
-------------------------------------------------------------

I'm actually unsure if we should change this, as it has been there for a long time, and applications could rely on this behaviour. Probably fixing it in the next major release is what we should do


was (Author: JIRAUSER306087):
I'm actually unsure if we should change this, as it has been there for a long time, and applications could rely on this behaviour 

> Nil map for UDT column inserts zero-valued UDT instead of NULL
> --------------------------------------------------------------
>
>                 Key: CASSGO-118
>                 URL: https://issues.apache.org/jira/browse/CASSGO-118
>             Project: Apache Cassandra Go driver
>          Issue Type: Bug
>            Reporter: Bohdan Siryk
>            Priority: Normal
>
> Inserting a row with a nil map for a UDT-typed column results in a non-NULL value whose fields behave like defaults / zero values, instead of storing NULL for the whole UDT.
> *Expected*
> The UDT column is NULL in DB.
> *Actual*
> The UDT column is present (not NULL) and fields appear as type defaults (empty string, 0, false, etc.).
> To reproduce it, please use this code snippet on github  gist: https://gist.github.com/worryg0d/22810cd6609cae985ca5c53725c3e3ae



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org