sqoop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jarek Jarcec Cecho (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SQOOP-2797) Sqoop2: Add new schema object for the Blob
Date Thu, 04 Feb 2016 02:43:39 GMT

     [ https://issues.apache.org/jira/browse/SQOOP-2797?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jarek Jarcec Cecho updated SQOOP-2797:
--------------------------------------
    Description: 
When extract the data from database, the following code segment will be used to transform
{{Blob}} into {{byte[]}}:

{code}
Blob blob = resultSet.getBlob(i + 1);
byte[] bytes = blob.getBytes(1, (int)blob.length());
{code}

Add new schema object for the {{Blob}} to deal with this specific situation.


  was:
When extract the data from database, the following code segment will be used to transform
Blob into byte[],
Blob blob = resultSet.getBlob(i + 1);
byte[] bytes = blob.getBytes(1, (int)blob.length());
Add new schema object for the Blob to deal with this specific situation.



> Sqoop2: Add new schema object for the Blob
> ------------------------------------------
>
>                 Key: SQOOP-2797
>                 URL: https://issues.apache.org/jira/browse/SQOOP-2797
>             Project: Sqoop
>          Issue Type: Improvement
>            Reporter: Colin Ma
>            Assignee: Colin Ma
>             Fix For: 1.99.7
>
>         Attachments: SQOOP-2797.001.patch, SQOOP-2797.patch, SQOOP-2797.patch, SQOOP-2797.patch,
SQOOP-2797.patch
>
>
> When extract the data from database, the following code segment will be used to transform
{{Blob}} into {{byte[]}}:
> {code}
> Blob blob = resultSet.getBlob(i + 1);
> byte[] bytes = blob.getBytes(1, (int)blob.length());
> {code}
> Add new schema object for the {{Blob}} to deal with this specific situation.



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

Mime
View raw message