Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-13604

NPE while getting null from BigDecimal column

Details

    • Bug
    • Status: Resolved
    • P1
    • Resolution: Fixed
    • 2.35.0
    • 2.36.0
    • io-java-jdbc
    • None

    Description

      Exception in thread "main" org.apache.beam.sdk.Pipeline$PipelineExecutionException: java.lang.NullPointerException
          at org.apache.beam.runners.direct.DirectRunner$DirectPipelineResult.waitUntilFinish(DirectRunner.java:373)
          at org.apache.beam.runners.direct.DirectRunner$DirectPipelineResult.waitUntilFinish(DirectRunner.java:341)
          at org.apache.beam.runners.direct.DirectRunner.run(DirectRunner.java:218)
          at org.apache.beam.runners.direct.DirectRunner.run(DirectRunner.java:67)
          at org.apache.beam.sdk.Pipeline.run(Pipeline.java:323)
          at org.apache.beam.sdk.Pipeline.run(Pipeline.java:309)
          at io.synthesized.testingsuite.SubsetterRunner.run(SubsetterRunner.kt:75)
          at io.synthesized.testingsuite.SubsetterRunnerKt.main(SubsetterRunner.kt:39)
          at io.synthesized.testingsuite.SubsetterRunnerKt.main(SubsetterRunner.kt)
      Caused by: java.lang.NullPointerException
          at org.apache.beam.sdk.io.jdbc.LogicalTypes$FixedPrecisionNumeric.toInputType(LogicalTypes.java:283)
          at org.apache.beam.sdk.io.jdbc.LogicalTypes$FixedPrecisionNumeric.toInputType(LogicalTypes.java:254)
          at org.apache.beam.sdk.io.jdbc.SchemaUtil.lambda$createLogicalTypeExtractor$ca0ab2ec$2(SchemaUtil.java:323)
          at org.apache.beam.sdk.io.jdbc.SchemaUtil$BeamRowMapper.mapRow(SchemaUtil.java:393)
          at org.apache.beam.sdk.io.jdbc.SchemaUtil$BeamRowMapper.mapRow(SchemaUtil.java:371)
          at org.apache.beam.sdk.io.jdbc.JdbcIO$ReadFn.processElement(JdbcIO.java:1212)
      Disconnected from the target VM, address: '127.0.0.1:55187', transport: 'socket'

      Attachments

        Issue Links

          Activity

            People

              Vitaly Ivanov Vitaly Ivanov
              Vitaly Ivanov Vitaly Ivanov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m