You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Brian Lachniet (JIRA)" <ji...@apache.org> on 2019/08/16 23:19:00 UTC
[jira] [Assigned] (AVRO-2509) Avro schema default value to null,
should it be "null" (with quotes) or null (without quotes)?
[ https://issues.apache.org/jira/browse/AVRO-2509?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brian Lachniet reassigned AVRO-2509:
------------------------------------
Assignee: Brian Lachniet
> Avro schema default value to null, should it be "null" (with quotes) or null (without quotes)?
> ----------------------------------------------------------------------------------------------
>
> Key: AVRO-2509
> URL: https://issues.apache.org/jira/browse/AVRO-2509
> Project: Apache Avro
> Issue Type: Task
> Components: java
> Reporter: KT
> Assignee: Brian Lachniet
> Priority: Trivial
>
> HI,
> I am new to Avro and trying to define a schema. Wondering if I am trying to default a value to null, should it be:
> a. "default": null
> b. "default": "null"
> Does it matter what the data type is? like for int then the default will be "default": null, but when it's for a string then the default should be "default":"null"? or it doesn't matter?
>
> Thanks
> KT
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)