Skip to content

Commit 5213e22

Browse files
chenjian2664wendigo
authored andcommitted
Fix error message format
Fix error message format in `ConfluentAvroReaderSupplier` and `ConfluentSchemaRegistryDynamicMessageProvider `
1 parent 8323eba commit 5213e22

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

plugin/trino-kafka/src/main/java/io/trino/plugin/kafka/schema/confluent/ConfluentAvroReaderSupplier.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ private GenericDatumReader<T> lookupReader(int id)
5858
return new GenericDatumReader<>(sourceSchema, targetSchema);
5959
}
6060
catch (IOException | RestClientException e) {
61-
throw new TrinoException(GENERIC_INTERNAL_ERROR, format("Looking up schemaId '%s'from confluent schema registry failed", id), e);
61+
throw new TrinoException(GENERIC_INTERNAL_ERROR, format("Looking up schemaId '%s' from confluent schema registry failed", id), e);
6262
}
6363
}
6464

plugin/trino-kafka/src/main/java/io/trino/plugin/kafka/schema/confluent/ConfluentSchemaRegistryDynamicMessageProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ private Descriptor lookupDescriptor(int schemaId)
8181
return ((ProtobufSchema) schema).toDescriptor();
8282
}
8383
catch (IOException | RestClientException e) {
84-
throw new TrinoException(GENERIC_INTERNAL_ERROR, format("Looking up schemaId '%s'from confluent schema registry failed", schemaId), e);
84+
throw new TrinoException(GENERIC_INTERNAL_ERROR, format("Looking up schemaId '%s' from confluent schema registry failed", schemaId), e);
8585
}
8686
}
8787

0 commit comments

Comments
 (0)