sqoop-dev mailing list archives

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

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

Hudson commented on SQOOP-2797:
-------------------------------

SUCCESS: Integrated in Sqoop2 #1006 (See [https://builds.apache.org/job/Sqoop2/1006/])
SQOOP-2797: Sqoop2: Add new schema object for the Blob (jarcec: [https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=cea627fa1465a4a900c8ad02934df568f93f45b1])
* common-test/src/main/java/org/apache/sqoop/common/test/db/DerbyProvider.java
* common/src/main/java/org/apache/sqoop/schema/type/Blob.java
* connector/connector-generic-jdbc/src/main/java/org/apache/sqoop/connector/jdbc/util/SqlTypesUtils.java
* common-test/src/main/java/org/apache/sqoop/common/test/db/types/DerbyTypeList.java
* connector/connector-generic-jdbc/src/main/java/org/apache/sqoop/connector/jdbc/GenericJdbcExtractor.java
* common-test/src/main/java/org/apache/sqoop/common/test/db/DatabaseProvider.java
* common-test/src/main/java/org/apache/sqoop/common/test/asserts/ProviderAsserts.java
* connector/connector-sdk/src/main/java/org/apache/sqoop/connector/common/SqoopIDFUtils.java
* common/src/main/java/org/apache/sqoop/json/util/SchemaSerialization.java
* common/src/main/java/org/apache/sqoop/schema/type/ColumnType.java


> 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, 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