You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by "j1cs (via GitHub)" <gi...@apache.org> on 2023/03/29 21:33:10 UTC

[GitHub] [beam] j1cs commented on issue #26003: [Bug]: Unable to infer a coder for JdbcIO.read() transform when using a custom class with @DefaultCoder annotation

j1cs commented on issue #26003:
URL: https://github.com/apache/beam/issues/26003#issuecomment-1489358013

   @Abacn 
   ```text
   java.lang.IllegalStateException: Unable to infer a coder for JdbcIO.readAll() transform. Provide a coder via withCoder, or ensure that one can be inferred from the provided RowMapper.
           at org.apache.beam.sdk.util.Preconditions.checkStateNotNull(Preconditions.java:471)
           at org.apache.beam.sdk.io.jdbc.JdbcIO$ReadAll.expand(JdbcIO.java:1094)
           at org.apache.beam.sdk.io.jdbc.JdbcIO$ReadAll.expand(JdbcIO.java:941)
           at org.apache.beam.sdk.Pipeline.applyInternal(Pipeline.java:548)
           at org.apache.beam.sdk.Pipeline.applyTransform(Pipeline.java:482)
           at org.apache.beam.sdk.values.PCollection.apply(PCollection.java:360)
           at org.apache.beam.sdk.io.jdbc.JdbcIO$Read.expand(JdbcIO.java:920)
           at org.apache.beam.sdk.io.jdbc.JdbcIO$Read.expand(JdbcIO.java:783)
           at org.apache.beam.sdk.Pipeline.applyInternal(Pipeline.java:548)
           at org.apache.beam.sdk.Pipeline.applyTransform(Pipeline.java:499)
           at org.apache.beam.sdk.values.PBegin.apply(PBegin.java:56)
           at org.apache.beam.sdk.Pipeline.apply(Pipeline.java:192)
           at me.jics.AppCommand.run(AppCommand.java:31)
           at picocli.CommandLine.executeUserObject(CommandLine.java:1939)
           at picocli.CommandLine.access$1300(CommandLine.java:145)
           at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2358)
           at picocli.CommandLine$RunLast.handle(CommandLine.java:2352)
           at picocli.CommandLine$RunLast.handle(CommandLine.java:2314)
           at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2179)
           at picocli.CommandLine$RunLast.execute(CommandLine.java:2316)
           at picocli.CommandLine.execute(CommandLine.java:2078)
           at io.micronaut.configuration.picocli.PicocliRunner.execute(PicocliRunner.java:202)
           at io.micronaut.configuration.picocli.PicocliRunner.execute(PicocliRunner.java:179)
           at me.jics.AppCommand.main(AppCommand.java:22)
   ```
   let me try readRows.


-- 
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