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/25 08:03:46 UTC

[jira] [Commented] (TRAFODION-167) LP Bug: 1271673 - Create view sees string overflow 8402 error on empty tables

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

Atanu Mishra commented on TRAFODION-167:
----------------------------------------

Hans Zeller (hans-zeller) wrote on 2014-02-20:	#1
This is a current limitation of the Tradodion metadata, column "_MD_".VIEWS.VIEW_TEXT is a VARCHAR(6000).
Am going to do two things, increase this limit to 30000 and add a new error, 1198, to make it more clear that it's the length of the view text that's the problem:

*** ERROR[1198] View text is too long to fit into the metadata.

Changed in trafodion:
status:	New → In Progress
assignee:	nobody → Hans Zeller (hans-zeller)
Hans Zeller (hans-zeller) wrote on 2014-02-20:	#2
There should not be a need to recreate the metadata, thanks to Trafodion "schema flexibility" we can just change the column length without making any changes in HBase.

Hans Zeller (hans-zeller) wrote on 2014-02-21:	#3
Fix is checked into project/datalake_64_1 rev. 37763.

Changed in trafodion:
status:	In Progress → Fix Committed
Weishiun Tsai (wei-shiun-tsai) wrote on 2014-03-04:	#4
Verified on the trafodion-ci-project-datalake_64_1-20140303-v38027_release.tar build. This problem has been fixed:

-bash-4.1$ sqlci
Trafodion Conversational Interface 0.7.0
(c) Copyright 2014 Hewlett-Packard Development Company, LP.
>>create table agtab3 ( e char(4), p char(6) );

--- SQL operation complete.
>>create table agtab4 ( e char(4), p char(6) );

--- SQL operation complete.
>>create view agvy4 (e, p) as
+>( select * from agtab3
+>union all
+>select * from agtab4
+>union
+>select * from agtab3
+>union all
+>select * from agtab4
+>union
+>select * from agtab3
+>union
+>select * from agtab4
+>union
+>select * from agtab3
+>union
+>select * from agtab4
+>union
+>select * from agtab3
+>union
+>select * from agtab4
+>union
+>select * from agtab3
+>union
+>select * from agtab4
+>union
+>select * from agtab3
+>union
+>select * from agtab4
+>union
+>select * from agtab3
+>union
+>select * from agtab4
+>union
+>select * from agtab3
+>union
+>select * from agtab4
+>union
+>select * from agtab3
+>union
+>select * from agtab4
+>union
+>select * from agtab3
+>union
+>select * from agtab4
+>union
+>select * from agtab3
+>union
+>select * from agtab4
+>union
+>select * from agtab3
+>union
+>select * from agtab4
+>union
+>select * from agtab3
+>union
+>select * from agtab4
+>union
+>select * from agtab3
+>union
+>select * from agtab4
+>union
+>select * from agtab3
+>union
+>select * from agtab4
+>union
+>select * from agtab3
+>union
+>select * from agtab4
+>union
+>select * from agtab3
+>union
+>select * from agtab4
+>union
+>select * from agtab3
+>union
+>select * from agtab4
+>union
+>select * from agtab3
+>union
+>select * from agtab4
+>union
+>select * from agtab3
+>union
+>select * from agtab4
+>union
+>select * from agtab3
+>union
+>select * from agtab4
+>union
+>select * from agtab3
+>union
+>select * from agtab4
+>union
+>select * from agtab3
+>union
+>select * from agtab4
+>union
+>select * from agtab3
+>union
+>select * from agtab4
+>union
+>select * from agtab3
+>union
+>select * from agtab4
+>union
+>select * from agtab3
+>union
+>select * from agtab4
+>union
+>select * from agtab3
+>union
+>select * from agtab4
+>union
+>select * from agtab3
+>union
+>select * from agtab4
+>union
+>select * from agtab3
+>union
+>select * from agtab4
+>union
+>select * from agtab3
+>) ;

--- SQL operation complete.
>>

Changed in trafodion:
status:	Fix Committed → Fix Released


> LP Bug: 1271673 - Create view sees string overflow 8402 error on empty tables
> -----------------------------------------------------------------------------
>
>                 Key: TRAFODION-167
>                 URL: https://issues.apache.org/jira/browse/TRAFODION-167
>             Project: Apache Trafodion
>          Issue Type: Bug
>          Components: sql-general
>            Reporter: Weishiun Tsai
>            Assignee: Hans Zeller
>             Fix For: 0.8 (pre-incubation)
>
>
> As shown below, create view sees string overflow 8402 error, even though the 2 tables involved are completely empty.  This is seen on the beta build trafodion-ci-release-trafodion_beta-20140117-v36857_release.tar running on a workstation installation.
> >>create table  agtab3 ( e char(4), p char(6) );
> --- SQL operation complete.
> >>create table  agtab4 ( e char(4), p char(6) );
> --- SQL operation complete.
> >>create view agvy4 (e, p) as
> +>( select * from agtab3
> +>union all
> +>select * from agtab4
> +>union
> +>select * from agtab3
> +>union all
> +>select * from agtab4
> +>union
> +>select * from agtab3
> +>union
> +>select * from agtab4
> +>union
> +>select * from agtab3
> +>union
> +>select * from agtab4
> +>union
> +>select * from agtab3
> +>union
> +>select * from agtab4
> +>union
> +>select * from agtab3
> +>union
> +>select * from agtab4
> +>union
> +>select * from agtab3
> +>union
> +>select * from agtab4
> +>union
> +>select * from agtab3
> +>union
> +>select * from agtab4
> +>union
> +>select * from agtab3
> +>union
> +>select * from agtab4
> +>union
> +>select * from agtab3
> +>union
> +>select * from agtab4
> +>union
> +>select * from agtab3
> +>union
> +>select * from agtab4
> +>union
> +>select * from agtab3
> +>union
> +>select * from agtab4
> +>union
> +>select * from agtab3
> +>union
> +>select * from agtab4
> +>union
> +>select * from agtab3
> +>union
> +>select * from agtab4
> +>union
> +>select * from agtab3
> +>union
> +>select * from agtab4
> +>union
> +>select * from agtab3
> +>union
> +>select * from agtab4
> +>union
> +>select * from agtab3
> +>union
> +>select * from agtab4
> +>union
> +>select * from agtab3
> +>union
> +>select * from agtab4
> +>union
> +>select * from agtab3
> +>union
> +>select * from agtab4
> +>union
> +>select * from agtab3
> +>union
> +>select * from agtab4
> +>union
> +>select * from agtab3
> +>union
> +>select * from agtab4
> +>union
> +>select * from agtab3
> +>union
> +>select * from agtab4
> +>union
> +>select * from agtab3
> +>union
> +>select * from agtab4
> +>union
> +>select * from agtab3
> +>union
> +>select * from agtab4
> +>union
> +>select * from agtab3
> +>union
> +>select * from agtab4
> +>union
> +>select * from agtab3
> +>union
> +>select * from agtab4
> +>union
> +>select * from agtab3
> +>union
> +>select * from agtab4
> +>union
> +>select * from agtab3
> +>union
> +>select * from agtab4
> +>union
> +>select * from agtab3
> +>union
> +>select * from agtab4
> +>union
> +>select * from agtab3
> +>union
> +>select * from agtab4
> +>union
> +>select * from agtab3
> +>) ;
> *** ERROR[8402] A string overflow occurred during the evaluation of a character expression. Conversion of Source Type:VARCHAR(REC_BYTE_V_ASCII) Source Value:CREATE VIEW TRAFODION.SEABASE.AGVY4 (E, P) AS (SELECT TRAFODION.SEABASE.AGTAB3.E, TRAFODION.SEABASE.AGTAB3.P FROM TRAFODION.SEABASE.AGTAB3 UNION ALL SELECT TRAFODION.SEABASE.AGTAB4.E, TRAFODION.SEABA to Target Type:VARCHAR(REC_BYTE_V_ASCII).
> *** ERROR[8811] Trying to close a statement that is either not in the open state or has not reached EOF.
> --- SQL operation failed with errors.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)