Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
MOBIN-F committed Dec 12, 2024
1 parent 0ef5bef commit aed3a7a
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@
import java.lang.reflect.Field;
import java.util.Arrays;

/** Utils for creating JsonRowDataSerializationSchema. */
/**
* Utils for creating JsonRowDataSerializationSchema.TODO: Remove this class after bump to Flink
* 1.20 or higher.
*/
public class JsonRowDataSerializationSchemaUtils {

/**
Expand Down Expand Up @@ -75,10 +78,12 @@ public static JsonRowDataSerializationSchema createSerializationSchema(
}
}
} catch (Exception e) {
throw new RuntimeException("Failed to create JsonRowDataSerializationSchema", e);
throw new RuntimeException(
"Failed to create JsonRowDataSerializationSchema,please check your Flink version is 1.19 or 1.20.",
e);
}
throw new RuntimeException(
"Failed to find appropriate constructor for JsonRowDataSerializationSchema");
"Failed to find appropriate constructor for JsonRowDataSerializationSchema,please check your Flink version is 1.19 or 1.20.");
}

/** flink>=1.20 only has the ENCODE_IGNORE_NULL_FIELDS parameter. */
Expand Down

0 comments on commit aed3a7a

Please sign in to comment.