snuyanzin commented on code in PR #29010:
URL: https://github.com/apache/flink/pull/29010#discussion_r3872536697


##########
flink-table/flink-table-runtime/src/test/java/org/apache/flink/table/formats/raw/RawFormatFactoryTest.java:
##########
@@ -175,6 +175,28 @@ void testInvalidFieldTypes() {
                 .hasMessage("The 'raw' format doesn't supports 'MAP<INT, 
STRING>' as column type.");
     }
 
+    @Test
+    void testVariantSeDeSchema() {
+        final ResolvedSchema variantSchema =
+                ResolvedSchema.of(Column.physical("field1", 
DataTypes.VARIANT()));
+        final RowType variantRowType =
+                (RowType) 
variantSchema.toPhysicalRowDataType().getLogicalType();
+        final Map<String, String> tableOptions = getBasicOptions();
+
+        final RawFormatDeserializationSchema expectedDeser =
+                new RawFormatDeserializationSchema(
+                        variantRowType.getTypeAt(0),
+                        InternalTypeInfo.of(variantRowType),
+                        "UTF-8",

Review Comment:
   ```suggestion
                           StandardCharsets.UTF_8.name(),
   ```
   ?



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to