You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by "Abacn (via GitHub)" <gi...@apache.org> on 2023/05/31 13:04:57 UTC

[GitHub] [beam] Abacn commented on a diff in pull request #25843: fixes:#25841 Improve-error-messages-for-the-validateStateApplicableForInput-method…

Abacn commented on code in PR #25843:
URL: https://github.com/apache/beam/pull/25843#discussion_r1211686767


##########
sdks/java/core/src/main/java/org/apache/beam/sdk/transforms/ParDo.java:
##########
@@ -446,8 +446,8 @@ private static void validateStateApplicableForInput(PCollection<?> input) {
     } catch (Coder.NonDeterministicException exc) {
       throw new IllegalArgumentException(
           String.format(
-              "%s requires a deterministic key coder in order to use state and timers",
-              ParDo.class.getSimpleName()));
+              "%s requires a deterministic key coder in order to use state and timers, the reason is:\n\t %s",

Review Comment:
   ```suggestion
                 "%s requires a deterministic key coder in order to use state and timers, the reason is:%n %s",
   ```



-- 
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: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org