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

Avatica TCK build fails on Guava versions earlier than 14

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      Avatica TCK build fails on Guava version 13 (succeeds on 14 and higher). I don't know what Guava versions Avatica claims to be able to use; release 1.7.1 said "Guava versions 12.0.1 to 19.0" but 1.8 did not say.

      The error is caused by the missing ClassPath and ClassInfo classes (added in Guava 14):

      $ mvn -Dguava.version=13.0.1 clean package
      ...
      [INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ avatica-tck ---
      [INFO] Changes detected - recompiling the module!
      [INFO] Compiling 8 source files to /home/jhyde/open1/calcite.4/avatica/tck/target/classes
      [INFO] -------------------------------------------------------------
      [ERROR] COMPILATION ERROR : 
      [INFO] -------------------------------------------------------------
      [ERROR] /home/jhyde/open1/calcite.4/avatica/tck/src/main/java/org/apache/calcite/avatica/tck/TestRunner.java:[22,33] cannot find symbol
        symbol:   class ClassPath
        location: package com.google.common.reflect
      [ERROR] /home/jhyde/open1/calcite.4/avatica/tck/src/main/java/org/apache/calcite/avatica/tck/TestRunner.java:[23,43] package com.google.common.reflect.ClassPath does not exist
      [ERROR] /home/jhyde/open1/calcite.4/avatica/tck/src/main/java/org/apache/calcite/avatica/tck/TestRunner.java:[115,7] cannot find symbol
        symbol:   class ClassPath
        location: class org.apache.calcite.avatica.tck.TestRunner
      [ERROR] /home/jhyde/open1/calcite.4/avatica/tck/src/main/java/org/apache/calcite/avatica/tck/TestRunner.java:[115,22] cannot find symbol
        symbol:   variable ClassPath
        location: class org.apache.calcite.avatica.tck.TestRunner
      [ERROR] /home/jhyde/open1/calcite.4/avatica/tck/src/main/java/org/apache/calcite/avatica/tck/TestRunner.java:[116,20] cannot find symbol
        symbol:   class ClassInfo
        location: class org.apache.calcite.avatica.tck.TestRunner
      [ERROR] /home/jhyde/open1/calcite.4/avatica/tck/src/main/java/org/apache/calcite/avatica/tck/TestRunner.java:[120,12] cannot find symbol
        symbol:   class ClassInfo
        location: class org.apache.calcite.avatica.tck.TestRunner
      

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated: