dynamobi/dynamobi — Issue #291: [LDB-30] assertion in LcsClusterReader, selecting from what should be an empty table
Author: dynamobi-build
Created: 2011-12-30 02:27:12+00:00
State: open
Labels: LCS, LDB

[reporter="schoi", created="Tue, 14 Feb 2006 12:54:35 -0500 (GMT-05:00)"]
to repro:

--------------

create schema s;

set schema 's';

create table datatype_target(col smallint);

create table datatype_source(

coltiny tinyint,

colint integer);

-- causes valid error

insert into datatype_source values(32767,32767);

-- this should insert nothing into datatype_target

insert into datatype_target select colint from datatype_source;

-- should return empty table

select * from datatype_target;

Failure:

-----------

java: LcsClusterReader.cpp:190: void fennel::LcsClusterReader::setUpBlock(): Assertion `pLHdr->nBatch > 0' failed.

*** CAUGHT SIGNAL 6; BACKTRACE:

/home/schoi/open/fennel/libfennel/.libs/libfennel_common-0.5.0.so(fennel::AutoBacktrace::signal_handler(int)+0x29) [0x3ae41]

[0xffffe420]

[0xffffe410]

/lib/tls/i686/cmov/libc.so.6(gsignal+0x51) [0xb7ebc9b1]

/lib/tls/i686/cmov/libc.so.6(abort+0xe9) [0xb7ebe2c9]

/lib/tls/i686/cmov/libc.so.6(__assert_fail+0x101) [0x21f51]

/home/schoi/open/fennel/lucidera/libfennel_lu/.libs/libfennel_lu_colstore-0.5.0.so(fennel::LcsClusterReader::setUpBlock()+0x76) [0x440be]

/home/schoi/open/fennel/lucidera/libfennel_lu/.libs/libfennel_lu_colstore-0.5.0.so(fennel::LcsClusterReader::moveToBlock(fennel::OpaqueInteger)+0x62) [0x43e1c]

/home/schoi/open/fennel/lucidera/libfennel_lu/.libs/libfennel_lu_colstore-0.5.0.so(fennel::LcsClusterReader::position(fennel::OpaqueInteger)+0xe1) [0x43c57]

/home/schoi/open/fennel/lucidera/libfennel_lu/.libs/libfennel_lu_colstore-0.5.0.so(fennel::LcsRowScanExecStream::execute(fennel::ExecStreamQuantum const&)+0x214) [0x4d66c]

/home/schoi/open/fennel/libfennel/.libs/libfennel_exec-0.5.0.so(fennel::ExecStreamScheduler::executeStream(fennel::ExecStream&, fennel::ExecStreamQuantum const&)+0x8c) [0xbc6b8]

/home/schoi/open/fennel/libfennel/.libs/libfennel_exec-0.5.0.so(fennel::DfsTreeExecStreamScheduler::readStream(fennel::ExecStream&)+0x4a5) [0xba82b]

/home/schoi/open/fennel/farrago/.libs/libfarrago-0.5.0.so(Java_net_sf_farrago_fennel_FennelStorage_tupleStreamFetch+0xa6) [0xb127dcce]

[0xb273941b]