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

Andrew Stevenson commented on SQOOP-2252:
-----------------------------------------

I think null for every field. My driver is schema evolution so null is easier 
to manage and otherwise you might infer some business logic into the data, for 
example if you set -1 for a INT this is often used for "Not specified" or "Not 
applicable" in data warehousing.

I can supply a patch.

> Add default to Avro Schema
> --------------------------
>
>                 Key: SQOOP-2252
>                 URL: https://issues.apache.org/jira/browse/SQOOP-2252
>             Project: Sqoop
>          Issue Type: Improvement
>          Components: tools
>    Affects Versions: 1.4.5
>            Reporter: Andrew Stevenson
>            Priority: Minor
>
> Currently no default value is set on the avro schemas. Setting a default 
> value is required for schema evolution.
> I currently have to rewrite the schema to be a union on [null: type] rather 
> than [type:nulll] and add null as a default in other to update kite datasets.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to