You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Dmitriy Pavlov (JIRA)" <ji...@apache.org> on 2018/04/20 13:49:00 UTC
[jira] [Commented] (IGNITE-8052) Clear error message needed when
using a non-existing column name for CREATE TABLE primary key
[ https://issues.apache.org/jira/browse/IGNITE-8052?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16445743#comment-16445743 ]
Dmitriy Pavlov commented on IGNITE-8052:
----------------------------------------
[~vozerov], could you please take a look?
> Clear error message needed when using a non-existing column name for CREATE TABLE primary key
> ---------------------------------------------------------------------------------------------
>
> Key: IGNITE-8052
> URL: https://issues.apache.org/jira/browse/IGNITE-8052
> Project: Ignite
> Issue Type: Improvement
> Components: sql
> Reporter: Roman Shtykh
> Assignee: Roman Shtykh
> Priority: Minor
> Labels: usability
> Fix For: 2.5
>
>
> On _CREATE TABLE_ with a misspelled column name for _PRIMARY KEY_ we have the following error with assertions enabled
> {code:java}
> java.lang.AssertionError
> at org.apache.ignite.internal.processors.query.h2.sql.GridSqlQueryParser.parseCreateTable(GridSqlQueryParser.java:1044)
> at org.apache.ignite.internal.processors.query.h2.sql.GridSqlQueryParser.parse(GridSqlQueryParser.java:1647)
> at org.apache.ignite.internal.processors.query.h2.ddl.DdlStatementsProcessor.runDdlStatement(DdlStatementsProcessor.java:245)
> ...
> {code}
> and when disabled
> {code:java}
> class org.apache.ignite.internal.processors.query.IgniteSQLException: null
> at org.apache.ignite.internal.processors.query.h2.ddl.DdlStatementsProcessor.runDdlStatement(DdlStatementsProcessor.java:492)
> at org.apache.ignite.internal.processors.query.h2.IgniteH2Indexing.doRunPrepared(IgniteH2Indexing.java:1643)
> at org.apache.ignite.internal.processors.query.h2.IgniteH2Indexing.querySqlFields(IgniteH2Indexing.java:1577)
> ...
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)