2019-12-15 06:34:43 +00:00
|
|
|
#pragma once
|
|
|
|
|
2018-09-26 00:31:40 +00:00
|
|
|
#include <string>
|
|
|
|
#include <Core/ColumnNumbers.h>
|
|
|
|
#include <Core/ColumnsWithTypeAndName.h>
|
|
|
|
|
|
|
|
|
|
|
|
class DateLUTImpl;
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
|
|
|
class Block;
|
|
|
|
|
|
|
|
/// Determine working timezone either from optional argument with time zone name or from time zone in DateTime type of argument.
|
2020-06-28 20:20:49 +00:00
|
|
|
std::string extractTimeZoneNameFromFunctionArguments(
|
|
|
|
const ColumnsWithTypeAndName & arguments, size_t time_zone_arg_num, size_t datetime_arg_num);
|
|
|
|
|
|
|
|
const DateLUTImpl & extractTimeZoneFromFunctionArguments(
|
|
|
|
Block & block, const ColumnNumbers & arguments, size_t time_zone_arg_num, size_t datetime_arg_num);
|
2018-09-26 00:31:40 +00:00
|
|
|
|
|
|
|
}
|