You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "godfreyhe (via GitHub)" <gi...@apache.org> on 2023/04/28 03:24:57 UTC

[GitHub] [flink] godfreyhe commented on a diff in pull request #22478: [FLINK-31917][table-planner] Fix the idempotence lost in JsonSerDe round trip for AggregateCall and RexNode

godfreyhe commented on code in PR #22478:
URL: https://github.com/apache/flink/pull/22478#discussion_r1179890814


##########
flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/serde/RexNodeJsonSerializer.java:
##########
@@ -230,12 +226,10 @@ private static void serializeLiteralValue(
             case BIGINT:
                 gen.writeNumberField(FIELD_NAME_VALUE, ((BigDecimal) value).longValue());
                 break;
-            case FLOAT:

Review Comment:
   why you only move the 'FLOAT' branch to below? not including other number types
   
   do we have any tests cover the changes? (I do not see the changes about json value is changed from string to float number)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org