1
我已經創建了具有數據類型-dateTimeOffset值的單列的表並插入了一些值。如果ExecuteSQL具有dateTime Offset值,它不會選擇表格嗎?
create table dto (dto datetimeoffset(7))
insert into dto values (GETDATE()) -- inserts date and time with 0 offset
insert into dto values (SYSDATETIMEOFFSET()) -- current date time and offset
insert into dto values ('20131114 08:54:00 +10:00') -- manual way
在Nifi,我指定查詢在 「從DTO選擇*」 執行SQL。
它顯示如下錯誤..,
java.lang.IllegalArgumentException: createSchema: Unknown SQL type -155 cannot be converted to Avro type
如果我改變該列到日期時間,然後運行的ExecuteSQL正確,但它並沒有在列的DateTimeOffset工作。
任何幫助表示讚賞。
非常感謝
Thanks Mattyb for your response –