You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2022/03/02 16:20:00 UTC
[jira] [Commented] (NIFI-9064) ExecuteSQLRecord support Oracle timestamp when `Use Avro Logical Types` is true
[ https://issues.apache.org/jira/browse/NIFI-9064?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17500269#comment-17500269 ]
ASF subversion and git services commented on NIFI-9064:
-------------------------------------------------------
Commit a85cafe7718aee5a4080ccd35432b6517d90dab4 in nifi's branch refs/heads/main from zhangcheng
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=a85cafe ]
NIFI-9064:Support Oracle timestamp when `Use Avro Logical Types` is true for ExecuteSQLRecord and QueryDatabaseTableRecord
Signed-off-by: Joe Gresock <jg...@gmail.com>
This closes #5807.
> ExecuteSQLRecord support Oracle timestamp when `Use Avro Logical Types` is true
> --------------------------------------------------------------------------------
>
> Key: NIFI-9064
> URL: https://issues.apache.org/jira/browse/NIFI-9064
> Project: Apache NiFi
> Issue Type: Bug
> Components: Extensions
> Affects Versions: 1.14.0
> Reporter: ZhangCheng
> Assignee: ZhangCheng
> Priority: Major
> Time Spent: 3h 10m
> Remaining Estimate: 0h
>
> When the source db is Oracle, and the table has `timestamp` column, using `ExecuteSQLRecord`(the same as `QueryDatabaseTableRecord`) and set `Use Avro Logical Types` true, we will get sth like this:
> ```
> Caused by: java.io.IOException: org.apache.nifi.serialization.record.util.IllegalTypeConversionException: Cannot convert value [2021-08-19 10:58:50.000001] of type class oracle.sql.TIMESTAMP to Timestamp for field TS
> at org.apache.nifi.processors.standard.sql.RecordSqlWriter.writeResultSet(RecordSqlWriter.java:88)
> at org.apache.nifi.processors.standard.AbstractExecuteSQL.lambda$onTrigger$1(AbstractExecuteSQL.java:302)
> ... 14 common frames omitted
> ```
--
This message was sent by Atlassian Jira
(v8.20.1#820001)