ahmedabu98 commented on code in PR #24290:
URL: https://github.com/apache/beam/pull/24290#discussion_r1052442497
##########
sdks/java/io/singlestore/src/main/java/org/apache/beam/sdk/io/singlestore/SingleStoreDefaultUserDataMapper.java:
##########
@@ -37,7 +39,7 @@ final class SingleStoreDefaultUserDataMapper implements
SingleStoreIO.UserDataMa
DateTimeFormat.forPattern("yyyy-MM-DD' 'HH:mm:ss.SSS");
private String convertLogicalTypeFieldToString(Schema.FieldType type, Object
value) {
- assert type.getTypeName().isLogicalType();
+ checkArgument(type.getTypeName().isLogicalType(), "<appropriate error
message>");
Review Comment:
Could you replace it with an appropriate error message?
--
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]