heavyai / heavydb

HeavyDB (formerly OmniSciDB)
https://heavy.ai
Apache License 2.0
2.96k stars 448 forks source link

[Crash Bug] INSERT INTO <table>(<column>, <column>) VALUES(TRUE, TRUE) Brings Errors #809

Open qwebug opened 1 year ago

qwebug commented 1 year ago

Describe:

HeavyDB will crash when using INSERT INTO \

(\, \) VALUES(TRUE, TRUE);

SQL:

CREATE TABLE t0(c0 BOOLEAN, c1 BOOLEAN);
INSERT INTO t0(c0, c0) VALUES(TRUE, TRUE);

Result:

2023-10-02T11:10:25.032495 F 25 9 4 RelAlgExecutor.cpp:2927 Check failed: it_ok.second
Stack trace:
RelAlgExecutor::executeSimpleInsert
Parser::InsertValuesStmt::execute
DBHandler::sql_execute_impl
DBHandler::sql_execute_local
DBHandler::sql_execute
HeavyProcessor::process_sql_execute
HeavyProcessor::dispatchCall
TrackingProcessor::process
apache::thrift::server::TConnectedClient::run
apache::thrift::server::TThreadedServer::TConnectedClientRunner::run
apache::thrift::concurrency::Thread::threadMain
void std::__invoke_impl
std::__invoke_result
void std::thread::_Invoker
std::thread::_Invoker
std::thread::_State_impl
clone
/opt/heavyai/scripts/innerstartheavy: line 180:    25 Aborted                 (core dumped) ./bin/heavydb $MAPD_DATA $RO --port $MAPD_TCP_PORT --http-port $MAPD_HTTP_PORT --calcite-port $MAPD_CALCITE_PORT $CONFIG $VERBOSE $*
Failed to write to log, write storage/log/heavy_web_server.ef51dd6a4e57.root.log.ALL.20231002-110940.26: file already closed
startheavy 9 exited

Environment:

Docker Deployment

https://hub.docker.com/layers/heavyai/heavyai-ee-cuda/latest/images/sha256-5af3ad3a00cbc5ce09c299b8b81cda96521a27373dbb1e59209c02358cfd9b1f?context=explore

Docker DIGEST: sha256:5af3ad3a00cbc5ce09c299b8b81cda96521a27373dbb1e59209c02358cfd9b1f

HeavyDB Version: 7.1.0-20230821-eae9ec17da