[ 
https://issues.apache.org/jira/browse/BEAM-13400?focusedWorklogId=706127&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-706127
 ]

ASF GitHub Bot logged work on BEAM-13400:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 10/Jan/22 13:31
            Start Date: 10/Jan/22 13:31
    Worklog Time Spent: 10m 
      Work Description: vitaly-ivanov commented on a change in pull request 
#16284:
URL: https://github.com/apache/beam/pull/16284#discussion_r781192749



##########
File path: 
sdks/java/io/jdbc/src/test/java/org/apache/beam/sdk/io/jdbc/JdbcIOTest.java
##########
@@ -706,7 +710,9 @@ public void testWriteWithoutPreparedStatement() throws 
Exception {
     stmt.append("column_time          TIME,"); // Time
     stmt.append("column_timestamptz   TIMESTAMP,"); // Timestamp
     stmt.append("column_timestamp     TIMESTAMP,"); // Timestamp
-    stmt.append("column_short         SMALLINT"); // short
+    stmt.append("column_short         SMALLINT,"); // short
+    stmt.append("column_blob          BLOB,"); // blob
+    stmt.append("column_clob          CLOB"); // clob

Review comment:
       Thanks, good idea. Implemented.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 706127)
    Time Spent: 3h 20m  (was: 3h 10m)

> JDBC IO does not support UUID and JSONB PostgreSQL types  and OTHER JDBC 
> types in general
> -----------------------------------------------------------------------------------------
>
>                 Key: BEAM-13400
>                 URL: https://issues.apache.org/jira/browse/BEAM-13400
>             Project: Beam
>          Issue Type: Improvement
>          Components: io-java-jdbc
>    Affects Versions: 2.34.0
>            Reporter: Vitaly Ivanov
>            Priority: P2
>          Time Spent: 3h 20m
>  Remaining Estimate: 0h
>
> The following exception occurs when trying to read rows from table which 
> contains fields with type JSONB and UUID. They have JDBCType OTHER.
> {noformat}
> java.lang.UnsupportedOperationException: Converting OTHER to Beam schema type 
> is not supported
>     at 
> org.apache.beam.sdk.io.jdbc.SchemaUtil.jdbcTypeToBeamFieldConverter(SchemaUtil.java:161)
>     at 
> org.apache.beam.sdk.io.jdbc.SchemaUtil.toBeamSchema(SchemaUtil.java:172)
>     at 
> org.apache.beam.sdk.io.jdbc.JdbcIO$ReadRows.inferBeamSchema(JdbcIO.java:655)
>     at org.apache.beam.sdk.io.jdbc.JdbcIO$ReadRows.expand(JdbcIO.java:632)
>     at org.apache.beam.sdk.io.jdbc.JdbcIO$ReadRows.expand(JdbcIO.java:551)
>     at org.apache.beam.sdk.Pipeline.applyInternal(Pipeline.java:548)
>     at org.apache.beam.sdk.Pipeline.applyTransform(Pipeline.java:499)
>     at org.apache.beam.sdk.values.PBegin.apply(PBegin.java:56){noformat}
> I suppose the issue is quite important because the UUID type is widespread in 
> PostgeSQL.
>  
> Actual for Oracle BLOB as well.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to