You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by gatorsmile <gi...@git.apache.org> on 2017/12/07 08:01:05 UTC

[GitHub] spark pull request #19918: [SPARK-22726] [TEST] Basic tests for Binary Compa...

GitHub user gatorsmile opened a pull request:

    https://github.com/apache/spark/pull/19918

    [SPARK-22726] [TEST] Basic tests for Binary Comparison and ImplicitTypeCasts

    ## What changes were proposed in this pull request?
    Before we deliver the Hive compatibility mode, we plan to write a set of test cases that can be easily run in both Spark and Hive sides. We can easily compare whether they are the same or not. When new typeCoercion rules are added, we also can easily track the changes. These test cases can also be backported to the previous Spark versions for determining the changes we made.
    
    This PR is the first attempt for improving the test coverage for type coercion compatibility. We generate these test cases for our binary comparison and ImplicitTypeCasts based on the Apache Derby test cases in https://github.com/apache/derby/blob/10.14/java/testing/org/apache/derbyTesting/functionTests/tests/lang/implicitConversions.sql
    
    ## How was this patch tested?
    N/A

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

    $ git pull https://github.com/gatorsmile/spark typeCoercionTests

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

    https://github.com/apache/spark/pull/19918.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 #19918
    
----
commit 5451cf511723e7e41c95299fe1103dbc572e49a5
Author: gatorsmile <ga...@gmail.com>
Date:   2017-12-07T07:44:04Z

    fix

----


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #19918: [SPARK-22726] [TEST] Basic tests for Binary Comparison a...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/19918
  
    **[Test build #84597 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/84597/testReport)** for PR 19918 at commit [`5451cf5`](https://github.com/apache/spark/commit/5451cf511723e7e41c95299fe1103dbc572e49a5).


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #19918: [SPARK-22726] [TEST] Basic tests for Binary Comparison a...

Posted by gatorsmile <gi...@git.apache.org>.
Github user gatorsmile commented on the issue:

    https://github.com/apache/spark/pull/19918
  
    retest this please


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #19918: [SPARK-22726] [TEST] Basic tests for Binary Comparison a...

Posted by gatorsmile <gi...@git.apache.org>.
Github user gatorsmile commented on the issue:

    https://github.com/apache/spark/pull/19918
  
    retest this please


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #19918: [SPARK-22726] [TEST] Basic tests for Binary Compa...

Posted by gatorsmile <gi...@git.apache.org>.
Github user gatorsmile commented on a diff in the pull request:

    https://github.com/apache/spark/pull/19918#discussion_r155452007
  
    --- Diff: sql/core/src/test/scala/org/apache/spark/sql/SQLQueryTestSuite.scala ---
    @@ -300,7 +300,7 @@ class SQLQueryTestSuite extends QueryTest with SharedSQLContext {
           Locale.setDefault(originalLocale)
     
           // For debugging dump some statistics about how much time was spent in various optimizer rules
    -      logInfo(RuleExecutor.dumpTimeSpent())
    +      logWarning(RuleExecutor.dumpTimeSpent())
    --- End diff --
    
    I have to change it to logWarning; otherwise, the time for each rule is not shown in the test result log. cc @cloud-fan 


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #19918: [SPARK-22726] [TEST] Basic tests for Binary Compa...

Posted by wangyum <gi...@git.apache.org>.
Github user wangyum commented on a diff in the pull request:

    https://github.com/apache/spark/pull/19918#discussion_r155939348
  
    --- Diff: sql/core/src/test/resources/sql-tests/inputs/typeCoercion/native/binaryComparison.sql ---
    @@ -0,0 +1,287 @@
    +--
    +--   Licensed to the Apache Software Foundation (ASF) under one or more
    +--   contributor license agreements.  See the NOTICE file distributed with
    +--   this work for additional information regarding copyright ownership.
    +--   The ASF licenses this file to You under the Apache License, Version 2.0
    +--   (the "License"); you may not use this file except in compliance with
    +--   the License.  You may obtain a copy of the License at
    +--
    +--      http://www.apache.org/licenses/LICENSE-2.0
    +--
    +--   Unless required by applicable law or agreed to in writing, software
    +--   distributed under the License is distributed on an "AS IS" BASIS,
    +--   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    +--   See the License for the specific language governing permissions and
    +--   limitations under the License.
    +--
    +
    +-- Binary Comparison
    +
    +CREATE TEMPORARY VIEW t AS SELECT 1;
    +
    +SELECT cast(1 as binary) = '1' FROM t;
    --- End diff --
    
    Seems binary comparison without [<=>](https://github.com/apache/spark/blob/ced6ccf0d6f362e299f270ed2a474f2e14f845da/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/predicates.scala#L594).


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #19918: [SPARK-22726] [TEST] Basic tests for Binary Compa...

Posted by gatorsmile <gi...@git.apache.org>.
Github user gatorsmile commented on a diff in the pull request:

    https://github.com/apache/spark/pull/19918#discussion_r155451745
  
    --- Diff: sql/core/src/test/resources/sql-tests/results/predicate-functions.sql.out ---
    @@ -1,5 +1,5 @@
     -- Automatically generated by SQLQueryTestSuite
    --- Number of queries: 31
    +-- Number of queries: 32
    --- End diff --
    
    It sounds like the last run does not use our SPARK_GENERATE_GOLDEN_FILES to generate the result file. 


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #19918: [SPARK-22726] [TEST] Basic tests for Binary Comparison a...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/19918
  
    **[Test build #84729 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/84729/testReport)** for PR 19918 at commit [`5451cf5`](https://github.com/apache/spark/commit/5451cf511723e7e41c95299fe1103dbc572e49a5).


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #19918: [SPARK-22726] [TEST] Basic tests for Binary Comparison a...

Posted by gatorsmile <gi...@git.apache.org>.
Github user gatorsmile commented on the issue:

    https://github.com/apache/spark/pull/19918
  
    retest this please


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #19918: [SPARK-22726] [TEST] Basic tests for Binary Comparison a...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/19918
  
    Merged build finished. Test FAILed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #19918: [SPARK-22726] [TEST] Basic tests for Binary Compa...

Posted by gatorsmile <gi...@git.apache.org>.
Github user gatorsmile commented on a diff in the pull request:

    https://github.com/apache/spark/pull/19918#discussion_r156236383
  
    --- Diff: sql/core/src/test/resources/sql-tests/inputs/typeCoercion/native/binaryComparison.sql ---
    @@ -0,0 +1,287 @@
    +--
    +--   Licensed to the Apache Software Foundation (ASF) under one or more
    +--   contributor license agreements.  See the NOTICE file distributed with
    +--   this work for additional information regarding copyright ownership.
    +--   The ASF licenses this file to You under the Apache License, Version 2.0
    +--   (the "License"); you may not use this file except in compliance with
    +--   the License.  You may obtain a copy of the License at
    +--
    +--      http://www.apache.org/licenses/LICENSE-2.0
    +--
    +--   Unless required by applicable law or agreed to in writing, software
    +--   distributed under the License is distributed on an "AS IS" BASIS,
    +--   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    +--   See the License for the specific language governing permissions and
    +--   limitations under the License.
    +--
    +
    +-- Binary Comparison
    +
    +CREATE TEMPORARY VIEW t AS SELECT 1;
    +
    +SELECT cast(1 as binary) = '1' FROM t;
    --- End diff --
    
    `===` is consistent with `<=>`
    
    I think we can skip it. Then, we can run the whole suite to Hive with minor changes.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #19918: [SPARK-22726] [TEST] Basic tests for Binary Comparison a...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/19918
  
    Test FAILed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/84729/
    Test FAILed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #19918: [SPARK-22726] [TEST] Basic tests for Binary Comparison a...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/19918
  
    **[Test build #84597 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/84597/testReport)** for PR 19918 at commit [`5451cf5`](https://github.com/apache/spark/commit/5451cf511723e7e41c95299fe1103dbc572e49a5).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds no public classes.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #19918: [SPARK-22726] [TEST] Basic tests for Binary Comparison a...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/19918
  
    **[Test build #84727 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/84727/testReport)** for PR 19918 at commit [`5451cf5`](https://github.com/apache/spark/commit/5451cf511723e7e41c95299fe1103dbc572e49a5).
     * This patch **fails SparkR unit tests**.
     * This patch merges cleanly.
     * This patch adds no public classes.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #19918: [SPARK-22726] [TEST] Basic tests for Binary Comparison a...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/19918
  
    **[Test build #84719 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/84719/testReport)** for PR 19918 at commit [`5451cf5`](https://github.com/apache/spark/commit/5451cf511723e7e41c95299fe1103dbc572e49a5).
     * This patch **fails SparkR unit tests**.
     * This patch merges cleanly.
     * This patch adds no public classes.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #19918: [SPARK-22726] [TEST] Basic tests for Binary Comparison a...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/19918
  
    Test FAILed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/84719/
    Test FAILed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #19918: [SPARK-22726] [TEST] Basic tests for Binary Comparison a...

Posted by cloud-fan <gi...@git.apache.org>.
Github user cloud-fan commented on the issue:

    https://github.com/apache/spark/pull/19918
  
    LGTM


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #19918: [SPARK-22726] [TEST] Basic tests for Binary Comparison a...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/19918
  
    **[Test build #84727 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/84727/testReport)** for PR 19918 at commit [`5451cf5`](https://github.com/apache/spark/commit/5451cf511723e7e41c95299fe1103dbc572e49a5).


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #19918: [SPARK-22726] [TEST] Basic tests for Binary Comparison a...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/19918
  
    Merged build finished. Test FAILed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #19918: [SPARK-22726] [TEST] Basic tests for Binary Comparison a...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/19918
  
    Test FAILed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/84727/
    Test FAILed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #19918: [SPARK-22726] [TEST] Basic tests for Binary Comparison a...

Posted by gatorsmile <gi...@git.apache.org>.
Github user gatorsmile commented on the issue:

    https://github.com/apache/spark/pull/19918
  
    Since the failure in SparkR is not related to this PR, I will merge this. 
    
    Thanks! Merged to master.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #19918: [SPARK-22726] [TEST] Basic tests for Binary Comparison a...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/19918
  
    Merged build finished. Test PASSed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #19918: [SPARK-22726] [TEST] Basic tests for Binary Compa...

Posted by gatorsmile <gi...@git.apache.org>.
Github user gatorsmile commented on a diff in the pull request:

    https://github.com/apache/spark/pull/19918#discussion_r155451509
  
    --- Diff: sql/core/src/test/resources/sql-tests/inputs/typeCoercion/native/binaryComparison.sql ---
    @@ -0,0 +1,287 @@
    +--
    +--   Licensed to the Apache Software Foundation (ASF) under one or more
    +--   contributor license agreements.  See the NOTICE file distributed with
    +--   this work for additional information regarding copyright ownership.
    +--   The ASF licenses this file to You under the Apache License, Version 2.0
    +--   (the "License"); you may not use this file except in compliance with
    +--   the License.  You may obtain a copy of the License at
    +--
    +--      http://www.apache.org/licenses/LICENSE-2.0
    +--
    +--   Unless required by applicable law or agreed to in writing, software
    +--   distributed under the License is distributed on an "AS IS" BASIS,
    +--   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    +--   See the License for the specific language governing permissions and
    +--   limitations under the License.
    --- End diff --
    
    Since the test cases are based on Apache Derby, I keep Apache license here.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #19918: [SPARK-22726] [TEST] Basic tests for Binary Comparison a...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/19918
  
    **[Test build #84719 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/84719/testReport)** for PR 19918 at commit [`5451cf5`](https://github.com/apache/spark/commit/5451cf511723e7e41c95299fe1103dbc572e49a5).


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #19918: [SPARK-22726] [TEST] Basic tests for Binary Comparison a...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/19918
  
    Merged build finished. Test FAILed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #19918: [SPARK-22726] [TEST] Basic tests for Binary Comparison a...

Posted by gatorsmile <gi...@git.apache.org>.
Github user gatorsmile commented on the issue:

    https://github.com/apache/spark/pull/19918
  
    cc @cloud-fan 
    
    @wangyum This is just an example. You can follow it to add more test cases for each type coercion rule. Later, we need to run the same SQLs in the Hive side too.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #19918: [SPARK-22726] [TEST] Basic tests for Binary Compa...

Posted by cloud-fan <gi...@git.apache.org>.
Github user cloud-fan commented on a diff in the pull request:

    https://github.com/apache/spark/pull/19918#discussion_r156087307
  
    --- Diff: sql/core/src/test/resources/sql-tests/inputs/typeCoercion/native/binaryComparison.sql ---
    @@ -0,0 +1,287 @@
    +--
    +--   Licensed to the Apache Software Foundation (ASF) under one or more
    +--   contributor license agreements.  See the NOTICE file distributed with
    +--   this work for additional information regarding copyright ownership.
    +--   The ASF licenses this file to You under the Apache License, Version 2.0
    +--   (the "License"); you may not use this file except in compliance with
    +--   the License.  You may obtain a copy of the License at
    +--
    +--      http://www.apache.org/licenses/LICENSE-2.0
    +--
    +--   Unless required by applicable law or agreed to in writing, software
    +--   distributed under the License is distributed on an "AS IS" BASIS,
    +--   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    +--   See the License for the specific language governing permissions and
    +--   limitations under the License.
    +--
    +
    +-- Binary Comparison
    +
    +CREATE TEMPORARY VIEW t AS SELECT 1;
    +
    +SELECT cast(1 as binary) = '1' FROM t;
    --- End diff --
    
    might be OK as `<=>` should have same type coercion rule as `=`


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #19918: [SPARK-22726] [TEST] Basic tests for Binary Compa...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/spark/pull/19918


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #19918: [SPARK-22726] [TEST] Basic tests for Binary Comparison a...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/19918
  
    **[Test build #84729 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/84729/testReport)** for PR 19918 at commit [`5451cf5`](https://github.com/apache/spark/commit/5451cf511723e7e41c95299fe1103dbc572e49a5).
     * This patch **fails SparkR unit tests**.
     * This patch merges cleanly.
     * This patch adds no public classes.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #19918: [SPARK-22726] [TEST] Basic tests for Binary Comparison a...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/19918
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/84597/
    Test PASSed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #19918: [SPARK-22726] [TEST] Basic tests for Binary Compa...

Posted by cloud-fan <gi...@git.apache.org>.
Github user cloud-fan commented on a diff in the pull request:

    https://github.com/apache/spark/pull/19918#discussion_r156087093
  
    --- Diff: sql/core/src/test/resources/sql-tests/inputs/typeCoercion/native/binaryComparison.sql ---
    @@ -0,0 +1,287 @@
    +--
    +--   Licensed to the Apache Software Foundation (ASF) under one or more
    +--   contributor license agreements.  See the NOTICE file distributed with
    +--   this work for additional information regarding copyright ownership.
    +--   The ASF licenses this file to You under the Apache License, Version 2.0
    +--   (the "License"); you may not use this file except in compliance with
    +--   the License.  You may obtain a copy of the License at
    +--
    +--      http://www.apache.org/licenses/LICENSE-2.0
    +--
    +--   Unless required by applicable law or agreed to in writing, software
    +--   distributed under the License is distributed on an "AS IS" BASIS,
    +--   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    +--   See the License for the specific language governing permissions and
    +--   limitations under the License.
    +--
    +
    +-- Binary Comparison
    +
    +CREATE TEMPORARY VIEW t AS SELECT 1;
    +
    +SELECT cast(1 as binary) = '1' FROM t;
    --- End diff --
    
    yea `<=>` is missed. Do Derby tests also miss it?


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org