Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-1403

DruidAdapterIT broken

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.9.0
    • 1.10.0
    • druid-adapter
    • None

    Description

      DruidAdapterIT is currently broken for me. When I run it using

      cd druid
      mvn -Pit integration-test
      

      I get

      Running org.apache.calcite.test.DruidAdapterIT
      Tests run: 35, Failures: 26, Errors: 3, Skipped: 1, Time elapsed: -673,099.469 sec <<< FAILURE!
      
      Results :
      
      Failed tests: 
        testFilterTimestamp(org.apache.calcite.test.DruidAdapterIT): 
      Expected: a string containing "EnumerableInterpreter\n  BindableAggregate(group=[{}], C=[COUNT()])\n    BindableFilter(condition=[AND(>=(/INT(Reinterpret($91), 86400000), 1997-01-01), <(/INT(Reinterpret($91), 86400000), 1998-01-01), >=(/INT(Reinterpret($91), 86400000), 1997-04-01), <(/INT(Reinterpret($91), 86400000), 1997-05-01))])\n      DruidQuery(table=[[foodmart, foodmart]], intervals=[[1900-01-09T00:00:00.000Z/2992-01-10T00:00:00.000Z]])"
           but: was "PLAN=EnumerableInterpreter
        BindableAggregate(group=[{}], C=[COUNT()])
          BindableFilter(condition=[AND(>=(/INT(Reinterpret($91), 86400000), 1997-01-01), <(/INT(Reinterpret($91), 86400000), 1998-01-01), >=(/INT(Reinterpret($91), 86400000), 1997-04-01), <(/INT(Reinterpret($91), 86400000), 1997-05-01))])
            DruidQuery(table=[[foodmart, foodmart]], intervals=[[1900-01-08T16:00:00.000-08:00/2992-01-09T16:00:00.000-08:00]])
      
      "
      

      Note the differences in the "intervals" string. Other tests have very similar errors. I am in Pacific time zone, but it shouldn't matter. I get similar errors when I run DruidAdapterIT from Intellij (i.e. without maven-surefire, and without explicitly setting a timezone).

      Attachments

        Activity

          People

            julianhyde Julian Hyde
            julianhyde Julian Hyde
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: