Ignite failes以创建以日期为主键的表

时间:2018-05-19 09:39:01

标签: sql ignite

让我们尝试使用例如时间戳作为主键创建表:

0: jdbc:ignite:thin://127.0.0.1/> create table t3 (i date primary key, i2 int);
Error: class org.apache.ignite.IgniteCheckedException: Failed to find value class in the node classpath (use default marshaller to enable binary objects) : SQL_PUBLIC_T3_203867a5_800b_4821_9690_e8902ca7b8e1 (state=50000,code=0)
java.sql.SQLException: class org.apache.ignite.IgniteCheckedException: Failed to find value class in the node classpath (use default marshaller to enable binary objects) : SQL_PUBLIC_T3_203867a5_800b_4821_9690_e8902ca7b8e1
    at org.apache.ignite.internal.jdbc.thin.JdbcThinConnection.sendRequest(JdbcThinConnection.java:648)
    at org.apache.ignite.internal.jdbc.thin.JdbcThinStatement.execute0(JdbcThinStatement.java:130)
    at org.apache.ignite.internal.jdbc.thin.JdbcThinStatement.execute(JdbcThinStatement.java:299)
    at sqlline.Commands.execute(Commands.java:823)
    at sqlline.Commands.sql(Commands.java:733)
    at sqlline.SqlLine.dispatch(SqlLine.java:795)
    at sqlline.SqlLine.begin(SqlLine.java:668)
    at sqlline.SqlLine.start(SqlLine.java:373)
    at sqlline.SqlLine.main(SqlLine.java:265)

如上所示,没关系。现在让我们尝试创建以日期为主键的表:

{{1}}

此外,我在日志中收到此错误:https://pastebin.com/wLYiF0x0

1 个答案:

答案 0 :(得分:0)

我想它很快就会修复 - https://issues.apache.org/jira/browse/IGNITE-8552

如果将键和值类型添加到ddl命令,则它可以工作:

create table t2(i timestamp primary key, i2 date
) WITH "key_type=KeyType, value_type=ValueType";