[jira] [Commented] (CALCITE-2167) Travis JDK9 test always fails

2018-04-12 Thread Kevin Risden (JIRA)

[ 
https://issues.apache.org/jira/browse/CALCITE-2167?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16436731#comment-16436731
 ] 

Kevin Risden commented on CALCITE-2167:
---

I'm not sure this Jira is still valid anymore. The Travis builds do not always 
fail. There have been successes. Looking at adding JDK 10 in CALCITE-2063

> Travis JDK9 test always fails
> -
>
> Key: CALCITE-2167
> URL: https://issues.apache.org/jira/browse/CALCITE-2167
> Project: Calcite
>  Issue Type: Bug
>Reporter: Shuyi Chen
>Assignee: Julian Hyde
>Priority: Major
>
> The test fails with the following lines at the end.
>  
>  
> /home/travis/.travis/job_stages: line 57: 3675 Killed mvn 
> -Dsurefire.useFile=false -Dsurefire.parallel= test
>  
>  
> The command "mvn -Dsurefire.useFile=false -Dsurefire.parallel= test" exited 
> with 137.
> cache.2
> store build cache
> 0.06s
> 25.00schange detected (content changed, file is created, or file is deleted):
> /home/travis/.m2/repository/org/apache/calcite/calcite/1.16.0-SNAPSHOT/maven-metadata-local.xml
> /home/travis/.m2/repository/org/apache/calcite/calcite/1.16.0-SNAPSHOT/_remote.repositories
> /home/travis/.m2/repository/org/apache/calcite/calcite-cassandra/1.16.0-SNAPSHOT/calcite-cassandra-1.16.0-SNAPSHOT.jar
> /home/travis/.m2/repository/org/apache/calcite/calcite-cassandra/1.16.0-SNAPSHOT/calcite-cassandra-1.16.0-SNAPSHOT-sources.jar
> /home/travis/.m2/repository/org/apache/calcite/calcite-cassandra/1.16.0-SNAPSHOT/calcite-cassandra-1.16.0-SNAPSHOT-tests.jar
> /home/travis/.m2/repository/org/apache/calcite/calcite-cassandra/1.16.0-SNAPSHOT/calcite-cassandra-1.16.0-SNAPSHOT-test-sources.jar
> /home/travis/.m2/repository/org/apache/calcite/calcite-cassandra/1.16.0-SNAPSHOT/maven-metadata-local.xml
> /home/travis/.m2/repository/org/apache/calcite/calcite-cassandra/1.16.0-SNAPSHOT/_remote.repositories
> /home/travis/.m2/repository/org/apache/calcite/calcite-cassandra/maven-metadata-local.xml
> /home/travis
>  
> ...
>  
> changes detected, packing new archive
> .
> .
> uploading archive
>  
>  
> Done. Your build exited with 1.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (CALCITE-2239) JDK 10 - Spark module test failures

2018-04-12 Thread Kevin Risden (JIRA)

[ 
https://issues.apache.org/jira/browse/CALCITE-2239?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16436580#comment-16436580
 ] 

Kevin Risden commented on CALCITE-2239:
---

https://github.com/apache/calcite/pull/662

> JDK 10 - Spark module test failures
> ---
>
> Key: CALCITE-2239
> URL: https://issues.apache.org/jira/browse/CALCITE-2239
> Project: Calcite
>  Issue Type: Bug
>  Components: spark
>Reporter: Kevin Risden
>Assignee: Kevin Risden
>Priority: Major
> Fix For: 1.17.0
>
>
> Under JDK 10, the Spark modules seem to fail with the following:
> {noformat}
> Caused by: java.lang.NoClassDefFoundError: Could not initialize class 
> org.apache.hadoop.util.StringUtils
> at 
> org.apache.calcite.test.SparkAdapterTest.testJoinProjectAliasProject(SparkAdapterTest.java:412){noformat}
> The failures are:
> {noformat}
> [INFO]
> [INFO] Results:
> [INFO]
> [ERROR] Errors:
> [ERROR] SparkAdapterTest.testAggFuncNoGroupBy:142 » Runtime exception while 
> executing ...
> [ERROR] SparkAdapterTest.testArithmeticDiv:697 » Runtime exception while 
> executing [se...
> [ERROR] SparkAdapterTest.testArithmeticMinus:666 » Runtime exception while 
> executing [...
> [ERROR] SparkAdapterTest.testArithmeticMul:681 » Runtime exception while 
> executing [se...
> [ERROR] SparkAdapterTest.testArithmeticPlus:651 » Runtime exception while 
> executing [s...
> [ERROR] SparkAdapterTest.testFilterBetween:483 » Runtime exception while 
> executing [se...
> [ERROR] SparkAdapterTest.testFilterFalse:532 » Runtime exception while 
> executing [sele...
> [ERROR] SparkAdapterTest.testFilterIsIn:499 » Runtime exception while 
> executing [selec...
> [ERROR] SparkAdapterTest.testFilterIsNotNull:569 » Runtime exception while 
> executing [...
> [ERROR] SparkAdapterTest.testFilterIsNull:584 » Runtime exception while 
> executing [sel...
> [ERROR] SparkAdapterTest.testFilterOr:551 » Runtime exception while executing 
> [select ...
> [ERROR] SparkAdapterTest.testFilterTrue:517 » Runtime exception while 
> executing [selec...
> [ERROR] SparkAdapterTest.testGroupBy:124 » Runtime exception while executing 
> [select s...
> [ERROR] SparkAdapterTest.testGroupByHaving:218 » Runtime exception while 
> executing [se...
> [ERROR] SparkAdapterTest.testGroupByMiMaxCountCountDistinctOrderByDesc:201 » 
> Runtime e...
> [ERROR] SparkAdapterTest.testGroupByMinMaxCountCountDistinctOrderByAsc:179 » 
> Runtime e...
> [ERROR] SparkAdapterTest.testGroupByOrderByAsc:157 » Runtime exception while 
> executing...
> [ERROR] SparkAdapterTest.testIntersect:284 » Runtime exception while 
> executing [select...
> [ERROR] SparkAdapterTest.testJoinProject:389 » Runtime exception while 
> executing [sele...
> [ERROR] SparkAdapterTest.testJoinProjectAliasProject:412 » Runtime exception 
> while exe...
> [ERROR] SparkAdapterTest.testLimit:431 » Runtime exception while executing 
> [select *
> f...
> [ERROR] SparkAdapterTest.testOrderByLimit:447 » Runtime exception while 
> executing [sel...
> [ERROR] SparkAdapterTest.testOrderByOffset:465 » Runtime exception while 
> executing [se...
> [ERROR] SparkAdapterTest.testSelectDistinct:102 » Runtime exception while 
> executing [s...
> [ERROR] SparkAdapterTest.testSortXAscProjectY:306 » Runtime exception while 
> executing ...
> [ERROR] SparkAdapterTest.testSortXAscYDescProjectY:366 » Runtime exception 
> while execu...
> [ERROR] SparkAdapterTest.testSortXDescYAscProjectY:346 » Runtime exception 
> while execu...
> [ERROR] SparkAdapterTest.testSortXDescYDescProjectY:326 » Runtime exception 
> while exec...
> [ERROR] SparkAdapterTest.testUnion:265 » Runtime exception while executing 
> [select *
> f...
> [ERROR] SparkAdapterTest.testUnionAll:244 » Runtime exception while executing 
> [select ...
> [ERROR] SparkAdapterTest.testUnionWithFilters:611 » Runtime exception while 
> executing ...
> [ERROR] SparkAdapterTest.testUnionWithFiltersProject:633 » Runtime exception 
> while exe...
> [ERROR] SparkAdapterTest.testValues:69 » Runtime exception while executing 
> [select *
> f...
> [ERROR] SparkAdapterTest.testValuesFilter:85 » Runtime exception while 
> executing [sele...
> [INFO]
> [ERROR] Tests run: 38, Failures: 0, Errors: 34, Skipped: 4{noformat}
> *Environment Details*
> {noformat}
> mvn --version
> Apache Maven 3.5.3 (3383c37e1f9e9b3bc3df5050c29c8aff9f295297; 
> 2018-02-24T13:49:05-06:00)
> Maven home: /usr/local/Cellar/maven/3.5.3/libexec
> Java version: 10, vendor: Oracle Corporation
> Java home: /Library/Java/JavaVirtualMachines/jdk-10.jdk/Contents/Home
> Default locale: en_US, platform encoding: UTF-8
> OS name: "mac os x", version: "10.13.4", arch: "x86_64", family: "mac"
> java -version
> java version "10" 2018-03-20
> Java(TM) SE Runtime Environment 18.3 (build 10+46)
> Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10+46, 

[jira] [Commented] (CALCITE-2238) JDK 10 - Pig module test failures

2018-04-12 Thread Kevin Risden (JIRA)

[ 
https://issues.apache.org/jira/browse/CALCITE-2238?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16436577#comment-16436577
 ] 

Kevin Risden commented on CALCITE-2238:
---

Opened PR https://github.com/apache/calcite/pull/662

> JDK 10 - Pig module test failures
> -
>
> Key: CALCITE-2238
> URL: https://issues.apache.org/jira/browse/CALCITE-2238
> Project: Calcite
>  Issue Type: Bug
>  Components: pig-adapter
>Reporter: Kevin Risden
>Assignee: Kevin Risden
>Priority: Major
> Fix For: 1.17.0
>
>
> Found while fixing CALCITE-2237 that the Pig module fails when running under 
> JDK 10.
> {noformat}
> [ERROR] Errors:
> [ERROR] 
> org.apache.calcite.test.PigRelBuilderStyleTest.testImplWithCountWithoutGroupBy(org.apache.calcite.test.PigRelBuilderStyleTest)
> [ERROR]   Run 1: PigRelBuilderStyleTest.setupDataFilesForPigServer:287 » 
> NoClassDefFound Could ...
> [ERROR]   Run 2: PigRelBuilderStyleTest.shutdownPigServer:280 NullPointer
> [INFO]
> [ERROR] 
> org.apache.calcite.test.PigRelBuilderStyleTest.testImplWithGroupByCountDistinct(org.apache.calcite.test.PigRelBuilderStyleTest)
> [ERROR]   Run 1: PigRelBuilderStyleTest.setupDataFilesForPigServer:287 » 
> NoClassDefFound Could ...
> [ERROR]   Run 2: PigRelBuilderStyleTest.shutdownPigServer:280 NullPointer
> [INFO]
> [ERROR] 
> org.apache.calcite.test.PigRelBuilderStyleTest.testImplWithJoin(org.apache.calcite.test.PigRelBuilderStyleTest)
> [ERROR]   Run 1: PigRelBuilderStyleTest.setupDataFilesForPigServer:287 » 
> ExceptionInInitializer
> [ERROR]   Run 2: PigRelBuilderStyleTest.shutdownPigServer:280 NullPointer
> [INFO]
> [ERROR] 
> org.apache.calcite.test.PigRelBuilderStyleTest.testScanAndFilter(org.apache.calcite.test.PigRelBuilderStyleTest)
> [ERROR]   Run 1: PigRelBuilderStyleTest.setupDataFilesForPigServer:287 » 
> NoClassDefFound Could ...
> [ERROR]   Run 2: PigRelBuilderStyleTest.shutdownPigServer:280 
> NullPointer{noformat}
> There shouldn't be a NPE or NoClassDefFound. I haven't looked into the cause 
> but this doesn't seem to happen on JDK 9.
> *Environment details*
> {noformat}
> mvn --version
> Apache Maven 3.5.3 (3383c37e1f9e9b3bc3df5050c29c8aff9f295297; 
> 2018-02-24T13:49:05-06:00)
> Maven home: /usr/local/Cellar/maven/3.5.3/libexec
> Java version: 10, vendor: Oracle Corporation
> Java home: /Library/Java/JavaVirtualMachines/jdk-10.jdk/Contents/Home
> Default locale: en_US, platform encoding: UTF-8
> OS name: "mac os x", version: "10.13.4", arch: "x86_64", family: "mac"
> java -version
> java version "10" 2018-03-20
> Java(TM) SE Runtime Environment 18.3 (build 10+46)
> Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10+46, mixed mode){noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (CALCITE-2239) JDK 10 - Spark module test failures

2018-04-12 Thread Kevin Risden (JIRA)

[ 
https://issues.apache.org/jira/browse/CALCITE-2239?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16436534#comment-16436534
 ] 

Kevin Risden commented on CALCITE-2239:
---

Both Spark and Pig depend on Hadoop so linking since fix is most likely the 
same.

> JDK 10 - Spark module test failures
> ---
>
> Key: CALCITE-2239
> URL: https://issues.apache.org/jira/browse/CALCITE-2239
> Project: Calcite
>  Issue Type: Bug
>  Components: spark
>Reporter: Kevin Risden
>Assignee: Kevin Risden
>Priority: Major
> Fix For: 1.17.0
>
>
> Under JDK 10, the Spark modules seem to fail with the following:
> {noformat}
> Caused by: java.lang.NoClassDefFoundError: Could not initialize class 
> org.apache.hadoop.util.StringUtils
> at 
> org.apache.calcite.test.SparkAdapterTest.testJoinProjectAliasProject(SparkAdapterTest.java:412){noformat}
> The failures are:
> {noformat}
> [INFO]
> [INFO] Results:
> [INFO]
> [ERROR] Errors:
> [ERROR] SparkAdapterTest.testAggFuncNoGroupBy:142 » Runtime exception while 
> executing ...
> [ERROR] SparkAdapterTest.testArithmeticDiv:697 » Runtime exception while 
> executing [se...
> [ERROR] SparkAdapterTest.testArithmeticMinus:666 » Runtime exception while 
> executing [...
> [ERROR] SparkAdapterTest.testArithmeticMul:681 » Runtime exception while 
> executing [se...
> [ERROR] SparkAdapterTest.testArithmeticPlus:651 » Runtime exception while 
> executing [s...
> [ERROR] SparkAdapterTest.testFilterBetween:483 » Runtime exception while 
> executing [se...
> [ERROR] SparkAdapterTest.testFilterFalse:532 » Runtime exception while 
> executing [sele...
> [ERROR] SparkAdapterTest.testFilterIsIn:499 » Runtime exception while 
> executing [selec...
> [ERROR] SparkAdapterTest.testFilterIsNotNull:569 » Runtime exception while 
> executing [...
> [ERROR] SparkAdapterTest.testFilterIsNull:584 » Runtime exception while 
> executing [sel...
> [ERROR] SparkAdapterTest.testFilterOr:551 » Runtime exception while executing 
> [select ...
> [ERROR] SparkAdapterTest.testFilterTrue:517 » Runtime exception while 
> executing [selec...
> [ERROR] SparkAdapterTest.testGroupBy:124 » Runtime exception while executing 
> [select s...
> [ERROR] SparkAdapterTest.testGroupByHaving:218 » Runtime exception while 
> executing [se...
> [ERROR] SparkAdapterTest.testGroupByMiMaxCountCountDistinctOrderByDesc:201 » 
> Runtime e...
> [ERROR] SparkAdapterTest.testGroupByMinMaxCountCountDistinctOrderByAsc:179 » 
> Runtime e...
> [ERROR] SparkAdapterTest.testGroupByOrderByAsc:157 » Runtime exception while 
> executing...
> [ERROR] SparkAdapterTest.testIntersect:284 » Runtime exception while 
> executing [select...
> [ERROR] SparkAdapterTest.testJoinProject:389 » Runtime exception while 
> executing [sele...
> [ERROR] SparkAdapterTest.testJoinProjectAliasProject:412 » Runtime exception 
> while exe...
> [ERROR] SparkAdapterTest.testLimit:431 » Runtime exception while executing 
> [select *
> f...
> [ERROR] SparkAdapterTest.testOrderByLimit:447 » Runtime exception while 
> executing [sel...
> [ERROR] SparkAdapterTest.testOrderByOffset:465 » Runtime exception while 
> executing [se...
> [ERROR] SparkAdapterTest.testSelectDistinct:102 » Runtime exception while 
> executing [s...
> [ERROR] SparkAdapterTest.testSortXAscProjectY:306 » Runtime exception while 
> executing ...
> [ERROR] SparkAdapterTest.testSortXAscYDescProjectY:366 » Runtime exception 
> while execu...
> [ERROR] SparkAdapterTest.testSortXDescYAscProjectY:346 » Runtime exception 
> while execu...
> [ERROR] SparkAdapterTest.testSortXDescYDescProjectY:326 » Runtime exception 
> while exec...
> [ERROR] SparkAdapterTest.testUnion:265 » Runtime exception while executing 
> [select *
> f...
> [ERROR] SparkAdapterTest.testUnionAll:244 » Runtime exception while executing 
> [select ...
> [ERROR] SparkAdapterTest.testUnionWithFilters:611 » Runtime exception while 
> executing ...
> [ERROR] SparkAdapterTest.testUnionWithFiltersProject:633 » Runtime exception 
> while exe...
> [ERROR] SparkAdapterTest.testValues:69 » Runtime exception while executing 
> [select *
> f...
> [ERROR] SparkAdapterTest.testValuesFilter:85 » Runtime exception while 
> executing [sele...
> [INFO]
> [ERROR] Tests run: 38, Failures: 0, Errors: 34, Skipped: 4{noformat}
> *Environment Details*
> {noformat}
> mvn --version
> Apache Maven 3.5.3 (3383c37e1f9e9b3bc3df5050c29c8aff9f295297; 
> 2018-02-24T13:49:05-06:00)
> Maven home: /usr/local/Cellar/maven/3.5.3/libexec
> Java version: 10, vendor: Oracle Corporation
> Java home: /Library/Java/JavaVirtualMachines/jdk-10.jdk/Contents/Home
> Default locale: en_US, platform encoding: UTF-8
> OS name: "mac os x", version: "10.13.4", arch: "x86_64", family: "mac"
> java -version
> java version "10" 2018-03-20
> Java(TM) SE Runtime Environment 18.3 (build 10+46)
> Java 

[jira] [Commented] (CALCITE-2239) JDK 10 - Spark module test failures

2018-04-12 Thread Kevin Risden (JIRA)

[ 
https://issues.apache.org/jira/browse/CALCITE-2239?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16436533#comment-16436533
 ] 

Kevin Risden commented on CALCITE-2239:
---

Think I may have found an easy fix for this. Looks like this is a problem with 
Apache Hadoop <2.7.4. HADOOP-14586 introduces a fix for JDK 9+ to handle 
version strings like -ea. Will put up a PR if the locally running tests pass.

> JDK 10 - Spark module test failures
> ---
>
> Key: CALCITE-2239
> URL: https://issues.apache.org/jira/browse/CALCITE-2239
> Project: Calcite
>  Issue Type: Bug
>  Components: spark
>Reporter: Kevin Risden
>Assignee: Kevin Risden
>Priority: Major
> Fix For: 1.17.0
>
>
> Under JDK 10, the Spark modules seem to fail with the following:
> {noformat}
> Caused by: java.lang.NoClassDefFoundError: Could not initialize class 
> org.apache.hadoop.util.StringUtils
> at 
> org.apache.calcite.test.SparkAdapterTest.testJoinProjectAliasProject(SparkAdapterTest.java:412){noformat}
> The failures are:
> {noformat}
> [INFO]
> [INFO] Results:
> [INFO]
> [ERROR] Errors:
> [ERROR] SparkAdapterTest.testAggFuncNoGroupBy:142 » Runtime exception while 
> executing ...
> [ERROR] SparkAdapterTest.testArithmeticDiv:697 » Runtime exception while 
> executing [se...
> [ERROR] SparkAdapterTest.testArithmeticMinus:666 » Runtime exception while 
> executing [...
> [ERROR] SparkAdapterTest.testArithmeticMul:681 » Runtime exception while 
> executing [se...
> [ERROR] SparkAdapterTest.testArithmeticPlus:651 » Runtime exception while 
> executing [s...
> [ERROR] SparkAdapterTest.testFilterBetween:483 » Runtime exception while 
> executing [se...
> [ERROR] SparkAdapterTest.testFilterFalse:532 » Runtime exception while 
> executing [sele...
> [ERROR] SparkAdapterTest.testFilterIsIn:499 » Runtime exception while 
> executing [selec...
> [ERROR] SparkAdapterTest.testFilterIsNotNull:569 » Runtime exception while 
> executing [...
> [ERROR] SparkAdapterTest.testFilterIsNull:584 » Runtime exception while 
> executing [sel...
> [ERROR] SparkAdapterTest.testFilterOr:551 » Runtime exception while executing 
> [select ...
> [ERROR] SparkAdapterTest.testFilterTrue:517 » Runtime exception while 
> executing [selec...
> [ERROR] SparkAdapterTest.testGroupBy:124 » Runtime exception while executing 
> [select s...
> [ERROR] SparkAdapterTest.testGroupByHaving:218 » Runtime exception while 
> executing [se...
> [ERROR] SparkAdapterTest.testGroupByMiMaxCountCountDistinctOrderByDesc:201 » 
> Runtime e...
> [ERROR] SparkAdapterTest.testGroupByMinMaxCountCountDistinctOrderByAsc:179 » 
> Runtime e...
> [ERROR] SparkAdapterTest.testGroupByOrderByAsc:157 » Runtime exception while 
> executing...
> [ERROR] SparkAdapterTest.testIntersect:284 » Runtime exception while 
> executing [select...
> [ERROR] SparkAdapterTest.testJoinProject:389 » Runtime exception while 
> executing [sele...
> [ERROR] SparkAdapterTest.testJoinProjectAliasProject:412 » Runtime exception 
> while exe...
> [ERROR] SparkAdapterTest.testLimit:431 » Runtime exception while executing 
> [select *
> f...
> [ERROR] SparkAdapterTest.testOrderByLimit:447 » Runtime exception while 
> executing [sel...
> [ERROR] SparkAdapterTest.testOrderByOffset:465 » Runtime exception while 
> executing [se...
> [ERROR] SparkAdapterTest.testSelectDistinct:102 » Runtime exception while 
> executing [s...
> [ERROR] SparkAdapterTest.testSortXAscProjectY:306 » Runtime exception while 
> executing ...
> [ERROR] SparkAdapterTest.testSortXAscYDescProjectY:366 » Runtime exception 
> while execu...
> [ERROR] SparkAdapterTest.testSortXDescYAscProjectY:346 » Runtime exception 
> while execu...
> [ERROR] SparkAdapterTest.testSortXDescYDescProjectY:326 » Runtime exception 
> while exec...
> [ERROR] SparkAdapterTest.testUnion:265 » Runtime exception while executing 
> [select *
> f...
> [ERROR] SparkAdapterTest.testUnionAll:244 » Runtime exception while executing 
> [select ...
> [ERROR] SparkAdapterTest.testUnionWithFilters:611 » Runtime exception while 
> executing ...
> [ERROR] SparkAdapterTest.testUnionWithFiltersProject:633 » Runtime exception 
> while exe...
> [ERROR] SparkAdapterTest.testValues:69 » Runtime exception while executing 
> [select *
> f...
> [ERROR] SparkAdapterTest.testValuesFilter:85 » Runtime exception while 
> executing [sele...
> [INFO]
> [ERROR] Tests run: 38, Failures: 0, Errors: 34, Skipped: 4{noformat}
> *Environment Details*
> {noformat}
> mvn --version
> Apache Maven 3.5.3 (3383c37e1f9e9b3bc3df5050c29c8aff9f295297; 
> 2018-02-24T13:49:05-06:00)
> Maven home: /usr/local/Cellar/maven/3.5.3/libexec
> Java version: 10, vendor: Oracle Corporation
> Java home: /Library/Java/JavaVirtualMachines/jdk-10.jdk/Contents/Home
> Default locale: en_US, platform encoding: UTF-8
> OS name: "mac os x", version: 

[jira] [Commented] (CALCITE-2238) JDK 10 - Pig module test failures

2018-04-12 Thread Kevin Risden (JIRA)

[ 
https://issues.apache.org/jira/browse/CALCITE-2238?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16436531#comment-16436531
 ] 

Kevin Risden commented on CALCITE-2238:
---

Think I may have found an easy fix for this. Looks like this is a problem with 
Apache Hadoop <2.7.4. HADOOP-14586 introduces a fix for JDK 9+ to handle 
version strings like -ea. Will put up a PR if the locally running tests pass.

> JDK 10 - Pig module test failures
> -
>
> Key: CALCITE-2238
> URL: https://issues.apache.org/jira/browse/CALCITE-2238
> Project: Calcite
>  Issue Type: Bug
>  Components: pig-adapter
>Reporter: Kevin Risden
>Assignee: Kevin Risden
>Priority: Major
> Fix For: 1.17.0
>
>
> Found while fixing CALCITE-2237 that the Pig module fails when running under 
> JDK 10.
> {noformat}
> [ERROR] Errors:
> [ERROR] 
> org.apache.calcite.test.PigRelBuilderStyleTest.testImplWithCountWithoutGroupBy(org.apache.calcite.test.PigRelBuilderStyleTest)
> [ERROR]   Run 1: PigRelBuilderStyleTest.setupDataFilesForPigServer:287 » 
> NoClassDefFound Could ...
> [ERROR]   Run 2: PigRelBuilderStyleTest.shutdownPigServer:280 NullPointer
> [INFO]
> [ERROR] 
> org.apache.calcite.test.PigRelBuilderStyleTest.testImplWithGroupByCountDistinct(org.apache.calcite.test.PigRelBuilderStyleTest)
> [ERROR]   Run 1: PigRelBuilderStyleTest.setupDataFilesForPigServer:287 » 
> NoClassDefFound Could ...
> [ERROR]   Run 2: PigRelBuilderStyleTest.shutdownPigServer:280 NullPointer
> [INFO]
> [ERROR] 
> org.apache.calcite.test.PigRelBuilderStyleTest.testImplWithJoin(org.apache.calcite.test.PigRelBuilderStyleTest)
> [ERROR]   Run 1: PigRelBuilderStyleTest.setupDataFilesForPigServer:287 » 
> ExceptionInInitializer
> [ERROR]   Run 2: PigRelBuilderStyleTest.shutdownPigServer:280 NullPointer
> [INFO]
> [ERROR] 
> org.apache.calcite.test.PigRelBuilderStyleTest.testScanAndFilter(org.apache.calcite.test.PigRelBuilderStyleTest)
> [ERROR]   Run 1: PigRelBuilderStyleTest.setupDataFilesForPigServer:287 » 
> NoClassDefFound Could ...
> [ERROR]   Run 2: PigRelBuilderStyleTest.shutdownPigServer:280 
> NullPointer{noformat}
> There shouldn't be a NPE or NoClassDefFound. I haven't looked into the cause 
> but this doesn't seem to happen on JDK 9.
> *Environment details*
> {noformat}
> mvn --version
> Apache Maven 3.5.3 (3383c37e1f9e9b3bc3df5050c29c8aff9f295297; 
> 2018-02-24T13:49:05-06:00)
> Maven home: /usr/local/Cellar/maven/3.5.3/libexec
> Java version: 10, vendor: Oracle Corporation
> Java home: /Library/Java/JavaVirtualMachines/jdk-10.jdk/Contents/Home
> Default locale: en_US, platform encoding: UTF-8
> OS name: "mac os x", version: "10.13.4", arch: "x86_64", family: "mac"
> java -version
> java version "10" 2018-03-20
> Java(TM) SE Runtime Environment 18.3 (build 10+46)
> Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10+46, mixed mode){noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (CALCITE-1948) Publish avatica-hypersql, avatica-mysql and avatica-postgres to docker hub

2018-04-12 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CALCITE-1948?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16436479#comment-16436479
 ] 

ASF GitHub Bot commented on CALCITE-1948:
-

GitHub user F21 opened a pull request:

https://github.com/apache/calcite-avatica/pull/35

[CALCITE-1948] Add docker hub image for HSQLDB



You can merge this pull request into a Git repository by running:

$ git pull https://github.com/F21/calcite-avatica add-hsqldb-to-dockerhub

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/calcite-avatica/pull/35.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #35


commit 9070b31fdd42d3c472bb052afd5296a723e0f202
Author: Francis Chuang 
Date:   2018-04-12T23:22:47Z

Add docker hub image for HSQLDB




> Publish avatica-hypersql, avatica-mysql and avatica-postgres to docker hub
> --
>
> Key: CALCITE-1948
> URL: https://issues.apache.org/jira/browse/CALCITE-1948
> Project: Calcite
>  Issue Type: Improvement
>  Components: avatica
>Reporter: Francis Chuang
>Assignee: Josh Elser
>Priority: Major
>
> I am currently making a port of the tests in calcite-avatica-go to test 
> against the calcite-avatica image in docker hub.
> Unfortunately, the calcite-avatica image only includes the avatica-server, 
> which makes it difficult to stand up a test environment.
> It would be nice if the docker images for HyperSQL, MySQL and Postgres can be 
> published as well.
> This can be achieved by configuring docker hub's automatic build to look in 
> the appropriate subfolders for the dockerfile and push tags with the 
> appropriate backing db, for example 1.10.0-hypersql, 1.10.0-mysql etc.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Comment Edited] (CALCITE-1948) Publish avatica-hypersql, avatica-mysql and avatica-postgres to docker hub

2018-04-12 Thread Francis Chuang (JIRA)

[ 
https://issues.apache.org/jira/browse/CALCITE-1948?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16436384#comment-16436384
 ] 

Francis Chuang edited comment on CALCITE-1948 at 4/12/18 10:15 PM:
---

[~elserj] Thanks! That makes sense, I will open a PR for that.


was (Author: francischuang):
[~elserj]

 Thanks! That makes sense, I will open a PR for that.

> Publish avatica-hypersql, avatica-mysql and avatica-postgres to docker hub
> --
>
> Key: CALCITE-1948
> URL: https://issues.apache.org/jira/browse/CALCITE-1948
> Project: Calcite
>  Issue Type: Improvement
>  Components: avatica
>Reporter: Francis Chuang
>Assignee: Josh Elser
>Priority: Major
>
> I am currently making a port of the tests in calcite-avatica-go to test 
> against the calcite-avatica image in docker hub.
> Unfortunately, the calcite-avatica image only includes the avatica-server, 
> which makes it difficult to stand up a test environment.
> It would be nice if the docker images for HyperSQL, MySQL and Postgres can be 
> published as well.
> This can be achieved by configuring docker hub's automatic build to look in 
> the appropriate subfolders for the dockerfile and push tags with the 
> appropriate backing db, for example 1.10.0-hypersql, 1.10.0-mysql etc.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (CALCITE-1948) Publish avatica-hypersql, avatica-mysql and avatica-postgres to docker hub

2018-04-12 Thread Francis Chuang (JIRA)

[ 
https://issues.apache.org/jira/browse/CALCITE-1948?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16436384#comment-16436384
 ] 

Francis Chuang commented on CALCITE-1948:
-

[~elserj]

 Thanks! That makes sense, I will open a PR for that.

> Publish avatica-hypersql, avatica-mysql and avatica-postgres to docker hub
> --
>
> Key: CALCITE-1948
> URL: https://issues.apache.org/jira/browse/CALCITE-1948
> Project: Calcite
>  Issue Type: Improvement
>  Components: avatica
>Reporter: Francis Chuang
>Assignee: Josh Elser
>Priority: Major
>
> I am currently making a port of the tests in calcite-avatica-go to test 
> against the calcite-avatica image in docker hub.
> Unfortunately, the calcite-avatica image only includes the avatica-server, 
> which makes it difficult to stand up a test environment.
> It would be nice if the docker images for HyperSQL, MySQL and Postgres can be 
> published as well.
> This can be achieved by configuring docker hub's automatic build to look in 
> the appropriate subfolders for the dockerfile and push tags with the 
> appropriate backing db, for example 1.10.0-hypersql, 1.10.0-mysql etc.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (CALCITE-1948) Publish avatica-hypersql, avatica-mysql and avatica-postgres to docker hub

2018-04-12 Thread Josh Elser (JIRA)

[ 
https://issues.apache.org/jira/browse/CALCITE-1948?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16435699#comment-16435699
 ] 

Josh Elser commented on CALCITE-1948:
-

[~francischuang] you can see the request I put up for the currently published 
Docker image at https://issues.apache.org/jira/browse/INFRA-13838

You would need to copy {{docker/src/main/docker/hypersql/Dockerfile}} over to a 
new directory (e.g. {{docker/src/main/dockerhub-hypersql}}) and update its 
{{FROM}} line to use [https://hub.docker.com/r/apache/calcite-avatica/] for the 
appropriate release (see the AVATICA_VERSION argument in the existing dockerhub 
Dockerfile and the validation done in 
{{docker/src/test/scripts/verify-dockerhub-dockerfile-version.groovy}})

> Publish avatica-hypersql, avatica-mysql and avatica-postgres to docker hub
> --
>
> Key: CALCITE-1948
> URL: https://issues.apache.org/jira/browse/CALCITE-1948
> Project: Calcite
>  Issue Type: Improvement
>  Components: avatica
>Reporter: Francis Chuang
>Assignee: Josh Elser
>Priority: Major
>
> I am currently making a port of the tests in calcite-avatica-go to test 
> against the calcite-avatica image in docker hub.
> Unfortunately, the calcite-avatica image only includes the avatica-server, 
> which makes it difficult to stand up a test environment.
> It would be nice if the docker images for HyperSQL, MySQL and Postgres can be 
> published as well.
> This can be achieved by configuring docker hub's automatic build to look in 
> the appropriate subfolders for the dockerfile and push tags with the 
> appropriate backing db, for example 1.10.0-hypersql, 1.10.0-mysql etc.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Comment Edited] (CALCITE-2249) AggregateJoinTransposeRule generates inequivalent nodes if Aggregate relNode contains distinct aggregate function.

2018-04-12 Thread jingzhang (JIRA)

[ 
https://issues.apache.org/jira/browse/CALCITE-2249?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16433566#comment-16433566
 ] 

jingzhang edited comment on CALCITE-2249 at 4/12/18 9:42 AM:
-

Cool. I submit a pr [https://github.com/apache/calcite/pull/661] Please have a 
look at it.


was (Author: jinyu.zj):
Cool. I submit a pr 
[https://github.com/apache/calcite/pull/661|https://github.com/apache/calcite/pull/661.]
 Please have a look at it.

> AggregateJoinTransposeRule generates inequivalent nodes if Aggregate relNode 
> contains distinct aggregate function.
> --
>
> Key: CALCITE-2249
> URL: https://issues.apache.org/jira/browse/CALCITE-2249
> Project: Calcite
>  Issue Type: Bug
>  Components: core
>Reporter: jingzhang
>Assignee: Julian Hyde
>Priority: Major
>
> AggregateJoinTransposeRule generates inequivalent nodes if Aggregate relNode 
> contains distinct aggregate function.
> T1
> ||a (String)||b (int)||
> |A|1|
> |A|2|
> |B|2|
> |C|3|
>  
> T2
> ||c(int)||
> |1|
> |1|
> |2|
> For the following sql, 
> {code:java}
> select count (distinct a) from t1, t2 where t1.b = t2.c  
> {code}
> Aggregate would generate following node tree, which is inequivalent with 
> original node tree.
> {code:java}
> LogicalAggregate(group=[{}], EXPR$0=[$SUM0($4)])
> +- LogicalProject(b=[$0], EXPR$0=[$1], c=[$2], $f1=[$3], $f4=[*($1, $3)])
> +- LogicalJoin(condition=[=($0, $2)], joinType=[inner])
> :- LogicalAggregate(group=[\{1}], EXPR$0=[COUNT(DISTINCT $0)])
> : +- LogicalTableScan(table=[[t1]])
> +- LogicalAggregate(group=[\{0}], agg#0=[COUNT()])
> +- LogicalTableScan(table=[[t2]])
> {code}
> Based on the converted plan, result is 4; while the correct answer is 2.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Comment Edited] (CALCITE-2249) AggregateJoinTransposeRule generates inequivalent nodes if Aggregate relNode contains distinct aggregate function.

2018-04-12 Thread jingzhang (JIRA)

[ 
https://issues.apache.org/jira/browse/CALCITE-2249?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16433566#comment-16433566
 ] 

jingzhang edited comment on CALCITE-2249 at 4/12/18 9:40 AM:
-

Cool. I submit a pr 
[https://github.com/apache/calcite/pull/661|https://github.com/apache/calcite/pull/661.]
 Please have a look at it.


was (Author: jinyu.zj):
Cool. I submit a pr [https://github.com/apache/calcite/pull/661.] Please have a 
look at it.

> AggregateJoinTransposeRule generates inequivalent nodes if Aggregate relNode 
> contains distinct aggregate function.
> --
>
> Key: CALCITE-2249
> URL: https://issues.apache.org/jira/browse/CALCITE-2249
> Project: Calcite
>  Issue Type: Bug
>  Components: core
>Reporter: jingzhang
>Assignee: Julian Hyde
>Priority: Major
>
> AggregateJoinTransposeRule generates inequivalent nodes if Aggregate relNode 
> contains distinct aggregate function.
> T1
> ||a (String)||b (int)||
> |A|1|
> |A|2|
> |B|2|
> |C|3|
>  
> T2
> ||c(int)||
> |1|
> |1|
> |2|
> For the following sql, 
> {code:java}
> select count (distinct a) from t1, t2 where t1.b = t2.c  
> {code}
> Aggregate would generate following node tree, which is inequivalent with 
> original node tree.
> {code:java}
> LogicalAggregate(group=[{}], EXPR$0=[$SUM0($4)])
> +- LogicalProject(b=[$0], EXPR$0=[$1], c=[$2], $f1=[$3], $f4=[*($1, $3)])
> +- LogicalJoin(condition=[=($0, $2)], joinType=[inner])
> :- LogicalAggregate(group=[\{1}], EXPR$0=[COUNT(DISTINCT $0)])
> : +- LogicalTableScan(table=[[t1]])
> +- LogicalAggregate(group=[\{0}], agg#0=[COUNT()])
> +- LogicalTableScan(table=[[t2]])
> {code}
> Based on the converted plan, result is 4; while the correct answer is 2.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Created] (CALCITE-2251) Support AS STRUCT syntax to create named STRUCT in SQL similar to Google BigQuery

2018-04-12 Thread Shuyi Chen (JIRA)
Shuyi Chen created CALCITE-2251:
---

 Summary: Support AS STRUCT syntax to create named STRUCT in SQL 
similar to Google BigQuery
 Key: CALCITE-2251
 URL: https://issues.apache.org/jira/browse/CALCITE-2251
 Project: Calcite
  Issue Type: New Feature
  Components: core
Reporter: Shuyi Chen
Assignee: Shuyi Chen


See [Google BigQuery 
grammar|https://cloud.google.com/bigquery/docs/reference/standard-sql/query-syntax].

We want to support something like the following:
{code:java}
SELECT STRUCT(a as first_name, b as last_name, STRUCT(c as zip code, d as
street, e as state) as address) as record FROM example_table
{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (CALCITE-1948) Publish avatica-hypersql, avatica-mysql and avatica-postgres to docker hub

2018-04-12 Thread Francis Chuang (JIRA)

[ 
https://issues.apache.org/jira/browse/CALCITE-1948?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16435011#comment-16435011
 ] 

Francis Chuang commented on CALCITE-1948:
-

[~elserj] [~julianhyde] Any chance you guys can make this happen? I am spinning 
up avatica-hsqldb docker images to run tests for avatica-go. I am currently 
using a self published one 
([https://hub.docker.com/r/f21global/calcite-avatica/tags/),] but I would 
prefer to use something "official".

I also have a PR updating HSQLDB in the HSQLDB avatica image: 
https://github.com/apache/calcite-avatica/pull/34

> Publish avatica-hypersql, avatica-mysql and avatica-postgres to docker hub
> --
>
> Key: CALCITE-1948
> URL: https://issues.apache.org/jira/browse/CALCITE-1948
> Project: Calcite
>  Issue Type: Improvement
>  Components: avatica
>Reporter: Francis Chuang
>Assignee: Josh Elser
>Priority: Major
>
> I am currently making a port of the tests in calcite-avatica-go to test 
> against the calcite-avatica image in docker hub.
> Unfortunately, the calcite-avatica image only includes the avatica-server, 
> which makes it difficult to stand up a test environment.
> It would be nice if the docker images for HyperSQL, MySQL and Postgres can be 
> published as well.
> This can be achieved by configuring docker hub's automatic build to look in 
> the appropriate subfolders for the dockerfile and push tags with the 
> appropriate backing db, for example 1.10.0-hypersql, 1.10.0-mysql etc.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (CALCITE-1950) Avatica HSQLDB docker image hangs

2018-04-12 Thread Francis Chuang (JIRA)

[ 
https://issues.apache.org/jira/browse/CALCITE-1950?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16435010#comment-16435010
 ] 

Francis Chuang commented on CALCITE-1950:
-

This is still a problem with HSQLDB 2.4.0. I have opened CALCITE-2250 and 
included a bash script as well as all the protobuf messages to reproduce. I 
think we should continue the discussion over there.

> Avatica HSQLDB docker image hangs
> -
>
> Key: CALCITE-1950
> URL: https://issues.apache.org/jira/browse/CALCITE-1950
> Project: Calcite
>  Issue Type: Bug
>  Components: avatica
>Reporter: Francis Chuang
>Assignee: Josh Elser
>Priority: Major
>
> I am using the calcite-avatica hsqldb image here: 
> https://hub.docker.com/r/f21global/calcite-avatica/
> The image is built using this docker file: 
> https://github.com/apache/calcite-avatica/tree/master/docker/src/main/docker/hypersql
> I am currently running integration tests for the Go client against that 
> image. It seems that after a certain amount of operations, the server will 
> lock up. From the Go http client, it seems that avatica no longer responds. 
> There wasn't any interesting information when I ran `docker logs` on the 
> container avatica/hsqldb is running in.
> When it starts hanging, tests that were passing previously would fail 
> randomly, because the test is not able to get a response form avatica. 
> Usually, deleting and recreating the container would resolve the problem, but 
> after using the same container through a few more test cycles, it starts to 
> hang again.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (CALCITE-1938) First Apache release for Avatica Go

2018-04-12 Thread Francis Chuang (JIRA)

[ 
https://issues.apache.org/jira/browse/CALCITE-1938?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16435007#comment-16435007
 ] 

Francis Chuang commented on CALCITE-1938:
-

[~julianhyde], would it be possible to set up travis for the calcite-avatica-go 
repo?

> First Apache release for Avatica Go
> ---
>
> Key: CALCITE-1938
> URL: https://issues.apache.org/jira/browse/CALCITE-1938
> Project: Calcite
>  Issue Type: Bug
>  Components: avatica-go
>Reporter: Julian Hyde
>Assignee: Francis Chuang
>Priority: Major
>
> Make a release for Avatica Go.
> Release number is TBD.
> This will be the first Apache release for Avatica Go, so expect more 
> diligence / issues than usual.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)