mirror of
https://github.com/apache/impala.git
synced 2026-01-03 06:00:52 -05:00
FunctionContext::Allocate() and FunctionContext::AllocateLocal() used to return NULL for zero length allocations. This makes it hard to distinguish between allocation failures and zero length allocations. Such confusion may lead to DCHECK failure in the macro RETURN_IF_NULL() in debug builds or access to NULL pointers in non-debug builds. This change fixes the problem above by returning NULL only if there is allocation failure. Zero-length allocations will always return a dummy non-NULL pointer. Change-Id: Id8c3211f4d9417f44b8018ccc58ae182682693da Reviewed-on: http://gerrit.cloudera.org:8080/3601 Reviewed-by: Michael Ho <kwho@cloudera.com> Tested-by: Internal Jenkins
This directory contains Impala test workloads. The directory layout for the workloads should follow: workloads/ <data set name>/<data set name>_dimensions.csv <- The test dimension file <data set name>/<data set name>_core.csv <- A test vector file <data set name>/<data set name>_pairwise.csv <data set name>/<data set name>_exhaustive.csv <data set name>/queries/<query test>.test <- The queries for this workload