diff options
author | uzhas <uzhas@ydb.tech> | 2022-10-10 12:35:06 +0300 |
---|---|---|
committer | uzhas <uzhas@ydb.tech> | 2022-10-10 12:35:06 +0300 |
commit | fc0c8d87b9e0550c098581e408b6a2f2d0f878d8 (patch) | |
tree | b41e56fcd2e89e1190d14c16ea6dbe50ae500a66 | |
parent | 60163f9f9896fdd2d3eb6d3383b9b02c303943e7 (diff) | |
download | ydb-fc0c8d87b9e0550c098581e408b6a2f2d0f878d8.tar.gz |
add more cases for parsing date types from json
-rw-r--r-- | ydb/library/yql/providers/s3/actors/yql_s3_read_actor.cpp | 4 | ||||
-rw-r--r-- | ydb/library/yql/udfs/common/clickhouse/client/clickhouse_client_udf.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/ydb/library/yql/providers/s3/actors/yql_s3_read_actor.cpp b/ydb/library/yql/providers/s3/actors/yql_s3_read_actor.cpp index 6f240b7a4c..d25cfb788a 100644 --- a/ydb/library/yql/providers/s3/actors/yql_s3_read_actor.cpp +++ b/ydb/library/yql/providers/s3/actors/yql_s3_read_actor.cpp @@ -872,10 +872,10 @@ NDB::DataTypePtr MetaToClickHouse(const TType* type, NSerialization::TSerializat return std::make_shared<NDB::DataTypeDate>(); case NUdf::EDataSlot::Datetime: case NUdf::EDataSlot::TzDatetime: - return std::make_shared<NDB::DataTypeDateTime>(); + return std::make_shared<NDB::DataTypeDateTime>("UTC"); case NUdf::EDataSlot::Timestamp: case NUdf::EDataSlot::TzTimestamp: - return std::make_shared<NDB::DataTypeDateTime64>(6); + return std::make_shared<NDB::DataTypeDateTime64>(6, "UTC"); case NUdf::EDataSlot::Uuid: return std::make_shared<NDB::DataTypeUUID>(); case NUdf::EDataSlot::Interval: diff --git a/ydb/library/yql/udfs/common/clickhouse/client/clickhouse_client_udf.cpp b/ydb/library/yql/udfs/common/clickhouse/client/clickhouse_client_udf.cpp index 46508bac7e..befb8afde8 100644 --- a/ydb/library/yql/udfs/common/clickhouse/client/clickhouse_client_udf.cpp +++ b/ydb/library/yql/udfs/common/clickhouse/client/clickhouse_client_udf.cpp @@ -287,11 +287,11 @@ NDB::DataTypePtr MetaToClickHouse(const TColumnMeta& meta) { break;
case EDataSlot::Datetime:
case EDataSlot::TzDatetime:
- ret = std::make_shared<NDB::DataTypeDateTime>();
+ ret = std::make_shared<NDB::DataTypeDateTime>("UTC");
break;
case EDataSlot::Timestamp:
case EDataSlot::TzTimestamp:
- ret = std::make_shared<NDB::DataTypeDateTime64>(6);
+ ret = std::make_shared<NDB::DataTypeDateTime64>(6, "UTC");
break;
case EDataSlot::Uuid:
ret = std::make_shared<NDB::DataTypeUUID>();
|