diff --git a/core/trino-main/src/main/java/io/trino/server/protocol/spooling/PreferredQueryDataEncoderSelector.java b/core/trino-main/src/main/java/io/trino/server/protocol/spooling/PreferredQueryDataEncoderSelector.java index 4bd921039712b..0e15538810007 100644 --- a/core/trino-main/src/main/java/io/trino/server/protocol/spooling/PreferredQueryDataEncoderSelector.java +++ b/core/trino-main/src/main/java/io/trino/server/protocol/spooling/PreferredQueryDataEncoderSelector.java @@ -48,7 +48,7 @@ public Optional select(List encodingIds) return Optional.of(encoders.get(encodingId)); } } - log.warn("None of the requested spooled encodings '%s' are known to the server", encodingIds); + log.warn("Requested one of the spooled encodings: %s, but these are only available: %s", encodingIds, encoders.getAvailableEncodings()); return Optional.empty(); } } diff --git a/core/trino-main/src/main/java/io/trino/server/protocol/spooling/QueryDataEncoders.java b/core/trino-main/src/main/java/io/trino/server/protocol/spooling/QueryDataEncoders.java index 41aa19e7da426..3259d51823e15 100644 --- a/core/trino-main/src/main/java/io/trino/server/protocol/spooling/QueryDataEncoders.java +++ b/core/trino-main/src/main/java/io/trino/server/protocol/spooling/QueryDataEncoders.java @@ -47,4 +47,9 @@ public QueryDataEncoder.Factory get(String encodingId) return factories.get(encodingId); } + + public Set getAvailableEncodings() + { + return factories.keySet(); + } }