in presto-pulsar/src/main/java/org/apache/pulsar/sql/presto/PulsarSqlSchemaInfoProvider.java [69:80]
public CompletableFuture<SchemaInfo> getSchemaByVersion(byte[] schemaVersion) {
try {
if (null == schemaVersion) {
return completedFuture(null);
}
return completedFuture(cache.get(BytesSchemaVersion.of(schemaVersion)));
} catch (ExecutionException e) {
LOG.error("Can't get generic schema for topic {} schema version {}",
topicName.toString(), new String(schemaVersion, StandardCharsets.UTF_8), e);
return FutureUtil.failedFuture(e.getCause());
}
}