Joe McDonnell created IMPALA-13506:
--------------------------------------

             Summary: Crash in RawValue::PrintValue() when running 
query_test/test_chars.py
                 Key: IMPALA-13506
                 URL: https://issues.apache.org/jira/browse/IMPALA-13506
             Project: IMPALA
          Issue Type: Sub-task
          Components: Frontend
    Affects Versions: Impala 4.5.0
            Reporter: Joe McDonnell


I ran into a crash with the Calcite planner when running test_chars.py. Here 
are reproducing conditions:

 
{noformat}
# Start Impala cluster with --use_calcite_planner=true
# Connect to Impala using Beeswax
bin/impala-shell.sh --protocol=beeswax

# Run these statements
use functional;
WITH numbered AS (
  SELECT *, row_number() over (order by cs) as rn
  FROM chars_tiny)
SELECT *
FROM (
  SELECT CASE WHEN rn % 2 = 0 THEN cs END cs,
    CASE WHEN rn % 2 = 1 THEN cl END cl,
    CASE WHEN rn % 3 = 0 THEN vc END vc
  FROM numbered
  UNION ALL
  SELECT CASE WHEN rn % 2 = 1 THEN cs END cs,
    CASE WHEN rn % 2 = 0 THEN cl END cl,
    CASE WHEN rn % 3 = 1 THEN vc END vc
  FROM numbered) v{noformat}
It hits this DCHECK with this stacktrace:

 
{noformat}
F1031 14:45:41.711074 2288125 raw-value.cc:471] 
65447b8728b9f39a:cdb466c300000000] Check failed: string_val->Len() <= type.len

 6  impalad!google::LogMessageFatal::~LogMessageFatal() [logging.cc : 2048 + 
0x5]
 7  impalad!impala::RawValue::PrintValue(void const*, impala::ColumnType 
const&, int, std::__cxx11::basic_stringstream<char, std::char_traits<char>, 
std::allocator<char> >*, bool) [raw-value.cc : 471 + 0x16]
 8  
impalad!impala::AsciiQueryResultSet::AddRows(std::vector<impala::ScalarExprEvaluator*,
 std::allocator<impala::ScalarExprEvaluator*> > const&, impala::RowBatch*, int, 
int) [query-result-set.cc : 222 + 0x1b]
 9  impalad!impala::BufferedPlanRootSink::GetNext(impala::RuntimeState*, 
impala::QueryResultSet*, int, bool*, long) [buffered-plan-root-sink.cc : 239 + 
0x1b]
10  impalad!impala::Coordinator::GetNext(impala::QueryResultSet*, int, bool*, 
long) [coordinator.cc : 1051 + 0x23]
11  impalad!impala::ClientRequestState::FetchRowsInternal(int, 
impala::QueryResultSet*, long) [client-request-state.cc : 1425 + 0x1f]
12  impalad!impala::ClientRequestState::FetchRows(int, impala::QueryResultSet*, 
long) [client-request-state.cc : 1272 + 0x18]
13  impalad!impala::ImpalaServer::FetchInternal(impala::TUniqueId, bool, int, 
beeswax::Results*) [impala-beeswax-server.cc : 688 + 0x20]
14  impalad!impala::ImpalaServer::fetch(beeswax::Results&, beeswax::QueryHandle 
const&, bool, int) [impala-beeswax-server.cc : 205 + 0x35]{noformat}
 

 

 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to