Uploaded image for project: 'Kylin'
  1. Kylin
  2. KYLIN-1615

UT 'HiveCmdBuilderTest' fail on 'testBeeline'

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: v1.5.2
    • Fix Version/s: v1.3.1, v1.5.2
    • Component/s: Tools, Build and Test
    • Labels:
      None
    • Environment:
      windows 7

      Description

      this is caused by line separator match fail.
      In 'testBeeline' the expected hqlStatement is hard code and the line separator is '\n', however, the line separator of actual hqlStatement is generated by 'StringBuffer.newLine()' which uses the platform's own notion of line separator as defined by the system property <tt>line.separator</tt>. Not all platforms use the newline character ('\n') to terminate lines.

      error detail as follow:
      org.junit.ComparisonFailure: <Click to see difference>
      at org.junit.Assert.assertEquals(Assert.java:115)
      at org.junit.Assert.assertEquals(Assert.java:144)
      at org.apache.kylin.source.hive.HiveCmdBuilderTest.testBeeline(HiveCmdBuilderTest.java:72)

        Attachments

          Activity

            People

            • Assignee:
              lidong_sjtu Dong Li
              Reporter:
              whenwin wangxianbin
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: