Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-5161

Several TestConvertFunctions tests produce scalar replacement errors

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • 1.8.0
    • 1.16.0
    • None
    • None

    Description

      Run the unit test TestConvertFunctions. The testBinaryString test emits an ASM error (see below), though the test succeeds. In addition, the test testConvertFromConvertToInt also emits the error if the line to turn off scalar replacement is commented out (see test.)

      Another bug complains about the stack trace displayed when scalar replacement fails.

      This bug says that we should either not use scalar replacement if we can predict it will fail, or disable scalar replacement altogether so that we get clean tests. (Work elsewhere suggested that the Java compiler and runtime already to scalar replacement for us in the latest Java versions.)

      Stack trace:

      unning org.apache.drill.exec.physical.impl.TestConvertFunctions#testBinaryString
      org.objectweb.asm.tree.analysis.AnalyzerException: Error at instruction 175: Expected an object reference, but found .
      	at org.objectweb.asm.tree.analysis.Analyzer.analyze(Analyzer.java:294)
      	at org.objectweb.asm.util.CheckMethodAdapter$1.visitEnd(CheckMethodAdapter.java:450)
      	at org.objectweb.asm.MethodVisitor.visitEnd(MethodVisitor.java:877)
      ...
      	at org.objectweb.asm.tree.ClassNode.accept(ClassNode.java:412)
      	at org.apache.drill.exec.compile.MergeAdapter.getMergedClass(MergeAdapter.java:227)
      	at org.apache.drill.exec.compile.ClassTransformer.getImplementationClass(ClassTransformer.java:280)
      	at org.apache.drill.exec.compile.ClassTransformer.getImplementationClass(ClassTransformer.java:226)
      	at org.apache.drill.exec.compile.CodeCompiler$Loader.load(CodeCompiler.java:128)
      	at org.apache.drill.exec.compile.CodeCompiler$Loader.load(CodeCompiler.java:1)
      ...
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              paul-rogers Paul Rogers
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: