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

Not all variable length types works properly for Oracle DB

Details

    • Bug
    • Status: Open
    • P3
    • Resolution: Unresolved
    • 2.35.0
    • None
    • io-java-jdbc
    • None

    Description

      For example RAW(16) fails while comparing field length because the Oracle JDBC driver returns precision = 0 but columnDisplaySize = 16.

       

       

      Exception in thread "main" org.apache.beam.sdk.Pipeline$PipelineExecutionException: java.lang.IllegalArgumentException
          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.IllegalArgumentException
          at org.apache.beam.vendor.guava.v26_0_jre.com.google.common.base.Preconditions.checkArgument(Preconditions.java:127)
          at org.apache.beam.sdk.io.jdbc.LogicalTypes$VariableLengthBytes.toInputType(LogicalTypes.java:250)
          at org.apache.beam.sdk.io.jdbc.LogicalTypes$VariableLengthBytes.toInputType(LogicalTypes.java:236)
          at org.apache.beam.sdk.io.jdbc.SchemaUtil.lambda$createLogicalTypeExtractor$ca0ab2ec$1(SchemaUtil.java:308)
          at org.apache.beam.sdk.io.jdbc.SchemaUtil$BeamRowMapper.mapRow(SchemaUtil.java:378)
          at org.apache.beam.sdk.io.jdbc.SchemaUtil$BeamRowMapper.mapRow(SchemaUtil.java:356)
          at org.apache.beam.sdk.io.jdbc.JdbcIO$ReadFn.processElement(JdbcIO.java:1212)
      Process finished with exit code 137 (interrupted by signal 9: SIGKILL)

       

       

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:

                Time Tracking

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