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

Test cases fail on Windows

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.1.0-m1
    • None
    • None

    Description

      Using File.separator or File.separatorChar to replace "." with file separator char breaks the transformation code.

      testJDKCompilation(org.apache.drill.exec.compile.TestClassTransformation)  Time elapsed: 0.725 sec  <<< ERROR!
      java.lang.StringIndexOutOfBoundsException: String index out of range: 1
              at java.lang.String.charAt(String.java:658)
              at java.util.regex.Matcher.appendReplacement(Matcher.java:762)
              at java.util.regex.Matcher.replaceAll(Matcher.java:906)
              at java.lang.String.replaceAll(String.java:2162)
              at org.apache.drill.exec.compile.ClassTransformer.getImplementationClass(ClassTransformer.java:117)
              at org.apache.drill.exec.compile.ClassTransformer.getImplementationClassByBody(ClassTransformer.java:98)
              at org.apache.drill.exec.compile.TestClassTransformation.testBasicClassCompilation(TestClassTransformation.java:45)
              at org.apache.drill.exec.compile.TestClassTransformation.testJDKCompilation(TestClassTransformation.java:35)
      

      OR

      sortOneKeyAscending(org.apache.drill.exec.physical.impl.sort.TestSimpleSort)  Time elapsed: 0.227 sec  <<< ERROR!
      java.lang.StringIndexOutOfBoundsException: String index out of range: 1
              at java.lang.String.charAt(String.java:658)
              at java.util.regex.Matcher.appendReplacement(Matcher.java:762)
              at java.util.regex.Matcher.replaceAll(Matcher.java:906)
              at java.lang.String.replaceAll(String.java:2162)
              at org.apache.drill.exec.compile.ClassTransformer.getImplementationClass(ClassTransformer.java:117)
              at org.apache.drill.exec.ops.FragmentContext.getImplementationClass(FragmentContext.java:105)
              at org.apache.drill.exec.physical.impl.sort.SortBatch.createNewSorter(SortBatch.java:172)
              at org.apache.drill.exec.physical.impl.sort.SortBatch.next(SortBatch.java:124)
              at org.apache.drill.exec.record.AbstractSingleRecordBatch.next(AbstractSingleRecordBatch.java:25)
              at org.apache.drill.exec.physical.impl.SimpleRootExec.next(SimpleRootExec.java:48)
              at org.apache.drill.exec.physical.impl.sort.TestSimpleSort.sortOneKeyAscending(TestSimpleSort.java:58)
      

      Attachments

        Activity

          People

            adityakishore Aditya Kishore
            adityakishore Aditya Kishore
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: