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/05/24 03:05:01 UTC

[GitHub] spark pull request #18082: [SPARK-20665][SQL][FOLLOW-UP]Move test case to SQ...

Github user gatorsmile commented on a diff in the pull request:

    https://github.com/apache/spark/pull/18082#discussion_r118153601
  
    --- Diff: sql/core/src/test/resources/sql-tests/inputs/mathFunctions.sql ---
    @@ -0,0 +1,37 @@
    +
    +-- round and bround
    +select round(3.1415925, 7);
    +select round(3.1415925, 8);
    +select round(3.1415925, 9);
    +select round(3.1415925, 10);
    +select round(3.1415925, 100);
    +select round(3.1415925, 6);
    +select round(null, 8);
    +
    +select bround(3.1415925, 7);
    +select bround(3.1415925, 8);
    +select bround(3.1415925, 9);
    +select bround(3.1415925, 10);
    +select bround(3.1415925, 100);
    +select bround(3.1415925, 6);
    +select bround(null, 8);
    +
    +-- math functions
    +select cot(1);
    +select cot(null);
    +select cot(0);
    +select cot(-1);
    +
    +-- ceil and ceiling
    +select ceiling(0);
    +select ceiling(1);
    +select ceil(1234567890123456);
    +select ceil(12345678901234567);
    +select ceiling(1234567890123456);
    +select ceiling(12345678901234567);
    +
    +-- floor
    +select floor(0);
    +select floor(1);
    +select floor(1234567890123456);
    +select floor(12345678901234567);
    --- End diff --
    
    add a new line here


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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