Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-2509

Avro schema default value to null, should it be "null" (with quotes) or null (without quotes)?

    XMLWordPrintableJSON

Details

    • Task
    • Status: Open
    • Trivial
    • Resolution: Unresolved
    • None
    • None
    • java
    • None

    Description

      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

      Attachments

        Activity

          People

            blachniet Brian Lachniet
            kt_hk KT
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: