You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@impala.apache.org by "Michael Ho (JIRA)" <ji...@apache.org> on 2017/11/15 23:07:00 UTC

[jira] [Created] (IMPALA-6187) Scan with conjuncts but no materialized slots crashes Impalad

Michael Ho created IMPALA-6187:
----------------------------------

             Summary: Scan with conjuncts but no materialized slots crashes Impalad
                 Key: IMPALA-6187
                 URL: https://issues.apache.org/jira/browse/IMPALA-6187
             Project: IMPALA
          Issue Type: Bug
          Components: Backend
    Affects Versions: Impala 2.10.0
            Reporter: Michael Ho
            Priority: Blocker


The simple query {noformat} select count(*) from tpch_parquet.lineitem where rand() = 10.0 {noformat} will trigger the following DCHECK below in {{HdfsScanner::WriteTemplate()}}:

{noformat}
int HdfsScanner::WriteTemplateTuples(TupleRow* row, int num_tuples) {
  DCHECK_GE(num_tuples, 0);
  DCHECK_EQ(scan_node_->tuple_idx(), 0);
  DCHECK_EQ(conjunct_evals_->size(), 0); <<------
  if (num_tuples == 0 || template_tuple_ == NULL) return num_tuples;

  Tuple** row_tuple = reinterpret_cast<Tuple**>(row);
  for (int i = 0; i < num_tuples; ++i) row_tuple[i] = template_tuple_;
  return num_tuples;
}
{noformat}

The assumption in the scanner is that if there are no materialized slots (e.g. count star), there should be no conjuncts too but that doesn't always seems to be the case.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)