[
https://issues.apache.org/jira/browse/SQOOP-1707?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14208731#comment-14208731
]
Hari Shreedharan commented on SQOOP-1707:
-----------------------------------------
You'd basically need to use a bunch of instance of to figure out if the
"object" is an array or a Text field (for an array, you'd need recursive
validation on each element in the array too). If it is a text field - say you
want it to be UTF-8 only, you'd validate that the entire text can be parsed as
UTF-8 or whatever charset you need.
Unfortunately this is an added overhead due to the loss of type information :(
Also, things have changed a whole lot in Sqoop2 since I last worked on it. So I
am not sure if this is an issue anymore (since an Object is passed around), I
think it still is.
> SQOOP2: Address the validate method in Column class
> ---------------------------------------------------
>
> Key: SQOOP-1707
> URL: https://issues.apache.org/jira/browse/SQOOP-1707
> Project: Sqoop
> Issue Type: Sub-task
> Components: sqoop2-framework
> Reporter: Veena Basavaraj
> Fix For: 1.99.5
>
>
> Another TODO::)
> {code}
> public boolean validate(Object o) {
> // TODO: Implement this in all subclasses!
> return true;
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)