Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Avro >> mail # dev >> Can Nested or Child Record has same namespace as of parent record?


Copy link to this message
-
Re: Can Nested or Child Record has same namespace as of parent record?
If a nested schema specifies no namespace then the namespace of its
parent is used.  A nested schema's namespace is not printed unless it
differs from its parent's.  If you extract only the nested
"productRecord" schema and print it un-nested then the namespace will
be shown.  E.g.,

transactionSchema.getField("productRecord").schema().toString()

Doug

On Tue, Jun 3, 2014 at 3:36 PM, hiteshpahuja <[EMAIL PROTECTED]> wrote: