diff options
author | uzhas <uzhas@ydb.tech> | 2023-06-08 13:14:45 +0300 |
---|---|---|
committer | uzhas <uzhas@ydb.tech> | 2023-06-08 13:14:45 +0300 |
commit | 74801b5fa21692b9fce51b8096694453568cbf8a (patch) | |
tree | 821fbff9293728279f448386a4373a13d593b42e | |
parent | 71a165f7a0a707cf4d440144b8c4af65567bc32b (diff) | |
download | ydb-74801b5fa21692b9fce51b8096694453568cbf8a.tar.gz |
support pgtimestamp from parquet
-rw-r--r-- | ydb/library/yql/udfs/common/clickhouse/client/clickhouse_client_udf.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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 8a684a8a8a..92697f3627 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 @@ -169,6 +169,11 @@ NDB::DataTypePtr PgMetaToClickHouse(const TPgConvertInfo& info) { if (info.TypeName == TStringRef("float8")) {
return std::make_shared<NDB::DataTypeFloat64>();
}
+
+ if (info.TypeName == TStringRef("timestamp")) {
+ return std::make_shared<NDB::DataTypeDateTime64>(6, "UTC");
+ }
+
return std::make_shared<NDB::DataTypeString>();
}
|