aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoruzhas <uzhas@ydb.tech>2022-10-10 12:35:06 +0300
committeruzhas <uzhas@ydb.tech>2022-10-10 12:35:06 +0300
commitfc0c8d87b9e0550c098581e408b6a2f2d0f878d8 (patch)
treeb41e56fcd2e89e1190d14c16ea6dbe50ae500a66
parent60163f9f9896fdd2d3eb6d3383b9b02c303943e7 (diff)
downloadydb-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.cpp4
-rw-r--r--ydb/library/yql/udfs/common/clickhouse/client/clickhouse_client_udf.cpp4
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>();