2016-04-18 14:31:32 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <DB/Core/Block.h>
|
|
|
|
#include <DB/Core/ColumnNumbers.h>
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
|
|
|
namespace Conditional
|
|
|
|
{
|
|
|
|
|
2016-08-18 14:25:02 +00:00
|
|
|
class NullMapBuilder;
|
|
|
|
|
2016-04-18 14:31:32 +00:00
|
|
|
class StringArrayEvaluator
|
|
|
|
{
|
|
|
|
public:
|
2016-08-10 19:12:29 +00:00
|
|
|
/// The tracker parameter is an index to a column that tracks the originating column of each value of
|
|
|
|
/// the result column. Calling this function with result == tracker means that no such tracking is
|
|
|
|
/// required, which happens if multiIf is called with no nullable parameters.
|
2016-08-18 14:25:02 +00:00
|
|
|
static bool perform(Block & block, const ColumnNumbers & args, size_t result, NullMapBuilder & builder);
|
2016-04-18 14:31:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|