File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
ydb/library/yql/core/qplayer/udf_resolver Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -109,6 +109,7 @@ class TResolver : public IUdfResolver {
109109
110110 TString SaveValue (const TFunction* f) const {
111111 auto node = NYT::TNode ()
112+ (" NormalizedName" , f->NormalizedName )
112113 (" CallableType" , TypeToYsonNode (f->CallableType ));
113114 if (f->NormalizedUserType && f->NormalizedUserType ->GetKind () != ETypeAnnotationKind::Void) {
114115 node (" NormalizedUserType" , TypeToYsonNode (f->NormalizedUserType ));
@@ -131,6 +132,12 @@ class TResolver : public IUdfResolver {
131132
132133 void LoadValue (TFunction* f, const TString& value, TExprContext& ctx) const {
133134 auto node = NYT::NodeFromYsonString (value);
135+ if (node.HasKey (" NormalizedName" )) {
136+ f->NormalizedName = node[" NormalizedName" ].AsString ();
137+ } else {
138+ f->NormalizedName = f->Name ;
139+ }
140+
134141 f->CallableType = ParseTypeFromYson (node[" CallableType" ], ctx);
135142 if (node.HasKey (" NormalizedUserType" )) {
136143 f->NormalizedUserType = ParseTypeFromYson (node[" NormalizedUserType" ], ctx);
You can’t perform that action at this time.
0 commit comments