You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Sergey Kozlov (JIRA)" <ji...@apache.org> on 2018/08/02 10:16:00 UTC

[jira] [Commented] (IGNITE-6142) JDBC thin: support ARRAY type

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

Sergey Kozlov commented on IGNITE-6142:
---------------------------------------

The issue still appears in 2.4:
{noformat}
80/688       CREATE TABLE t1( id INT NOT NULL, col1 ARRAY , PRIMARY KEY (id) ) ;
No rows affected (0.031 seconds)
81/688       # DATA LOADING FOR t1
82/688       INSERT INTO t1 (id,col1) VALUES (10,(NULL, 10, '11', 12, NULL));
Error: Value conversion failed [from=[Ljava.lang.Object;, to=java.sql.Array] (state=0700B,code=0)
java.sql.SQLException: Value conversion failed [from=[Ljava.lang.Object;, to=java.sql.Array]
	at org.apache.ignite.internal.jdbc.thin.JdbcThinConnection.sendRequest(JdbcThinConnection.java:751)
	at org.apache.ignite.internal.jdbc.thin.JdbcThinStatement.execute0(JdbcThinStatement.java:210)
	at org.apache.ignite.internal.jdbc.thin.JdbcThinStatement.execute(JdbcThinStatement.java:473)
	at sqlline.Commands.execute(Commands.java:823)
	at sqlline.Commands.sql(Commands.java:733)
	at sqlline.SqlLine.dispatch(SqlLine.java:795)
	at sqlline.SqlLine.runCommands(SqlLine.java:1706)
	at sqlline.Commands.run(Commands.java:1317)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at sqlline.ReflectiveCommandHandler.execute(ReflectiveCommandHandler.java:38)
	at sqlline.SqlLine.dispatch(SqlLine.java:791)
	at sqlline.SqlLine.initArgs(SqlLine.java:595)
	at sqlline.SqlLine.begin(SqlLine.java:643)
	at sqlline.SqlLine.start(SqlLine.java:373)
	at sqlline.SqlLine.main(SqlLine.java:265)

{noformat}

> JDBC thin: support ARRAY type
> -----------------------------
>
>                 Key: IGNITE-6142
>                 URL: https://issues.apache.org/jira/browse/IGNITE-6142
>             Project: Ignite
>          Issue Type: Task
>          Components: jdbc
>    Affects Versions: 2.1, 2.4
>            Reporter: Taras Ledkov
>            Priority: Major
>
> Support SQL ARRAY type by JDBC thin driver.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)