You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafodion.apache.org by "Atanu Mishra (JIRA)" <ji...@apache.org> on 2015/08/14 01:52:46 UTC
[jira] [Closed] (TRAFODION-147) LP Bug: 1248680 - Index on a PIC
column causes a predicate to return NAStringDef.cpp internal error
[ https://issues.apache.org/jira/browse/TRAFODION-147?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Atanu Mishra closed TRAFODION-147.
----------------------------------
Resolution: Fixed
Assignee: (was: Anoop Sharma)
Fix Version/s: 1.0 (pre-incubation)
> LP Bug: 1248680 - Index on a PIC column causes a predicate to return NAStringDef.cpp internal error
> ---------------------------------------------------------------------------------------------------
>
> Key: TRAFODION-147
> URL: https://issues.apache.org/jira/browse/TRAFODION-147
> Project: Apache Trafodion
> Issue Type: Bug
> Components: sql-general
> Reporter: Weishiun Tsai
> Priority: Critical
> Fix For: 1.0 (pre-incubation)
>
>
> Creating an index on a PIC column causes a query with a predicate on the same column to return an internal assertion error in NAStringDef.cpp, as shown in the following example. The same query works fine prior to the creation of the index. A similar query without the predicate also works fine even after the index is created. Both are also shown in the following example:
> >>set schema seabase.mytest;
> --- SQL operation complete.
> >>create table t(a pic sv9(2) comp default 0 not null, b pic 9(3) default 0 not
> null, primary key (b));
> --- SQL operation complete.
> >>insert into t values (0.12,441), (-0.25,442), (0.13,443), (0.14,444), (0.15,44
> 5), (0.16,446), (0.17,447), (0.18,448);
> --- 8 row(s) inserted.
> >>select * from t;
> A B
> ------- ---
> .12 441
> -.25 442
> .13 443
> .14 444
> .15 445
> .16 446
> .17 447
> .18 448
> --- 8 row(s) selected.
> >>select * from t where a <0;
> A B
> ------- ---
> -.25 442
> --- 1 row(s) selected.
> >>create index t1 on t (a);
> --- SQL operation complete.
> >>select * from t;
> A B
> ------- ---
> -.25 442
> .12 441
> .13 443
> .14 444
> .15 445
> .16 446
> .17 447
> .18 448
> --- 8 row(s) selected.
> >>select * from t where a <0;
> *** ERROR[2006] Internal error: assertion failure (FALSE) in file ../export/NASt
> ringDef.cpp at line 1293.
> *** ERROR[8822] The statement was not prepared.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)