aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvvvv <vvvv@ydb.tech>2022-12-20 20:09:23 +0300
committervvvv <vvvv@ydb.tech>2022-12-20 20:09:23 +0300
commitda4fef57b0600fbf586a9de784ab8bc681d4a18c (patch)
treee6c1225767980a2d3d372b5c0c512e75da6d2a52
parent5fe69a04172f883571b4c9c166d3908b30305409 (diff)
downloadydb-da4fef57b0600fbf586a9de784ab8bc681d4a18c.tar.gz
[pg] support of precision for pginterval
-rw-r--r--ydb/library/yql/core/type_ann/type_ann_pg.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ydb/library/yql/core/type_ann/type_ann_pg.cpp b/ydb/library/yql/core/type_ann/type_ann_pg.cpp
index 7772b47589..b28c68ee38 100644
--- a/ydb/library/yql/core/type_ann/type_ann_pg.cpp
+++ b/ydb/library/yql/core/type_ann/type_ann_pg.cpp
@@ -4388,8 +4388,8 @@ IGraphTransformer::TStatus PgTypeModWrapper(const TExprNode::TPtr& input, TExprN
}
if (pgType->GetName() == "interval" || pgType->GetName() == "_interval") {
- if (mods.size() != 1) {
- ctx.Expr.AddError(TIssue(ctx.Expr.GetPosition(input->Pos()), "Exactly one modidifer is expected for pginterval"));
+ if (mods.size() < 1) {
+ ctx.Expr.AddError(TIssue(ctx.Expr.GetPosition(input->Pos()), "At least one modifier is expected for pginterval"));
return IGraphTransformer::TStatus::Error;
}