[GitHub] spark pull request #18544: [SPARK-21318][SQL]Improve exception message throw...

2018-09-21 Thread stanzhai
Github user stanzhai commented on a diff in the pull request: https://github.com/apache/spark/pull/18544#discussion_r219485843 --- Diff: sql/hive/src/test/scala/org/apache/spark/sql/hive/UDFSuite.scala --- @@ -193,4 +193,29 @@ class UDFSuite

[GitHub] spark pull request #18544: [SPARK-21318][SQL]Improve exception message throw...

2018-09-21 Thread stanzhai
Github user stanzhai commented on a diff in the pull request: https://github.com/apache/spark/pull/18544#discussion_r219468948 --- Diff: sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/catalog/SessionCatalogSuite.scala --- @@ -1440,6 +1441,8 @@ abstract class

[GitHub] spark issue #18544: [SPARK-21318][SQL]Improve exception message thrown by `l...

2018-09-21 Thread stanzhai
Github user stanzhai commented on the issue: https://github.com/apache/spark/pull/18544 @cloud-fan User's hive UDFs are registered in externalCatalog which not exists in functionRegistry. It will throws a NoSuchFunctionException when an exception is encountered

[GitHub] spark issue #18544: [SPARK-21318][SQL]Improve exception message thrown by `l...

2018-09-18 Thread stanzhai
Github user stanzhai commented on the issue: https://github.com/apache/spark/pull/18544 The issue has been addressed a long time ago @cloud-fan @maropu --- - To unsubscribe, e-mail: reviews-unsubscr

[GitHub] spark pull request #22051: [SPARK-25064][WEBUI] Add killed tasks count info ...

2018-08-09 Thread stanzhai
GitHub user stanzhai opened a pull request: https://github.com/apache/spark/pull/22051 [SPARK-25064][WEBUI] Add killed tasks count info to WebUI ## What changes were proposed in this pull request? Add missing killed tasks to WebUI. Total tasks = Active + Failed

[GitHub] spark issue #18544: [SPARK-21318][SQL]Improve exception message thrown by `l...

2018-07-18 Thread stanzhai
Github user stanzhai commented on the issue: https://github.com/apache/spark/pull/18544 It's not reasonable, `failFunctionLookup` throws `NoSuchFunctionException`. The function actually exists in current selected database, we should throw the exception which is due

[GitHub] spark issue #18544: [SPARK-21318][SQL]Improve exception message thrown by `l...

2018-07-17 Thread stanzhai
Github user stanzhai commented on the issue: https://github.com/apache/spark/pull/18544 cc @gatorsmile changes in `sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/Analyzer.scala` has been reverted

[GitHub] spark pull request #18544: [SPARK-21318][SQL]Improve exception message throw...

2018-07-16 Thread stanzhai
Github user stanzhai commented on a diff in the pull request: https://github.com/apache/spark/pull/18544#discussion_r202607295 --- Diff: sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveSessionCatalog.scala --- @@ -129,14 +129,14 @@ private[sql] class HiveSessionCatalog

[GitHub] spark issue #18544: [SPARK-21318][SQL]Improve exception message thrown by `l...

2018-07-11 Thread stanzhai
Github user stanzhai commented on the issue: https://github.com/apache/spark/pull/18544 cc @gatorsmile Addressed. Review this please. Thanks! --- - To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org

[GitHub] spark pull request #18544: [SPARK-21318][SQL]Improve exception message throw...

2018-07-11 Thread stanzhai
Github user stanzhai commented on a diff in the pull request: https://github.com/apache/spark/pull/18544#discussion_r201579348 --- Diff: sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveSessionCatalog.scala --- @@ -129,14 +129,14 @@ private[sql] class HiveSessionCatalog

[GitHub] spark issue #21663: [SPARK-24680][Deploy]Support spark.executorEnv.JAVA_HOME...

2018-07-04 Thread stanzhai
Github user stanzhai commented on the issue: https://github.com/apache/spark/pull/21663 @jerryshao My Spark Application is built on top of JDK10, but the standalone cluster manager is running with JDK8 which does not support JDK10. Java 7 support has been removed since Spark

[GitHub] spark pull request #21680: [SPARK-24704][WebUI] Fix the order of stages in t...

2018-06-30 Thread stanzhai
GitHub user stanzhai opened a pull request: https://github.com/apache/spark/pull/21680 [SPARK-24704][WebUI] Fix the order of stages in the DAG graph ## What changes were proposed in this pull request? Before: ![wx20180630-155537](https://user

[GitHub] spark pull request #21623: [SPARK-24638][SQL] StringStartsWith support push ...

2018-06-29 Thread stanzhai
Github user stanzhai commented on a diff in the pull request: https://github.com/apache/spark/pull/21623#discussion_r199062132 --- Diff: sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala --- @@ -378,6 +378,14 @@ object SQLConf { .booleanConf

[GitHub] spark pull request #21663: [SPARK-24680][Deploy]Support spark.executorEnv.JA...

2018-06-28 Thread stanzhai
GitHub user stanzhai opened a pull request: https://github.com/apache/spark/pull/21663 [SPARK-24680][Deploy]Support spark.executorEnv.JAVA_HOME in Standalone mode ## What changes were proposed in this pull request? spark.executorEnv.JAVA_HOME does not take effect when

[GitHub] spark pull request #19301: [SPARK-22084][SQL] Fix performance regression in ...

2018-01-19 Thread stanzhai
Github user stanzhai closed the pull request at: https://github.com/apache/spark/pull/19301 --- - To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org

[GitHub] spark issue #18544: [SPARK-21318][SQL]Improve exception message thrown by `l...

2017-10-28 Thread stanzhai
Github user stanzhai commented on the issue: https://github.com/apache/spark/pull/18544 fixed @gatorsmile . retest this please --- - To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional

[GitHub] spark issue #18544: [SPARK-21318][SQL]Improve exception message thrown by `l...

2017-10-25 Thread stanzhai
Github user stanzhai commented on the issue: https://github.com/apache/spark/pull/18544 Hi @gatorsmile , I've added some test cases, and passed on my machine. --- - To unsubscribe, e-mail: reviews-unsubscr

[GitHub] spark pull request #19301: [SPARK-22084][SQL] Fix performance regression in ...

2017-09-25 Thread stanzhai
Github user stanzhai commented on a diff in the pull request: https://github.com/apache/spark/pull/19301#discussion_r140699522 --- Diff: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/aggregate/interfaces.scala --- @@ -72,11 +74,19 @@ object

[GitHub] spark issue #19301: [SPARK-22084][SQL] Fix performance regression in aggrega...

2017-09-22 Thread stanzhai
Github user stanzhai commented on the issue: https://github.com/apache/spark/pull/19301 @viirya Benchmark code: ```scala val N = 500L << 22 val benchmark = new Benchmark("agg", N) val expressions = (0 until 50).map(i =&g

[GitHub] spark issue #19301: [SPARK-22084][SQL] Fix performance regression in aggrega...

2017-09-22 Thread stanzhai
Github user stanzhai commented on the issue: https://github.com/apache/spark/pull/19301 @viirya The problem is already obvious, and the same aggregate expression will be computed multi times. I will provide a benchmark result later

[GitHub] spark issue #19301: [SPARK-22084][SQL] Fix performance regression in aggrega...

2017-09-21 Thread stanzhai
Github user stanzhai commented on the issue: https://github.com/apache/spark/pull/19301 @cenyuhai This is an optimize for physical plan, and your case can be optimized. ```SQL select dt, geohash_of_latlng, sum(mt_cnt), sum(ele_cnt), round(sum(mt_cnt

[GitHub] spark issue #19301: [SPARK-22084][SQL] Fix performance regression in aggrega...

2017-09-21 Thread stanzhai
Github user stanzhai commented on the issue: https://github.com/apache/spark/pull/19301 https://github.com/apache/spark/blob/master/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/planning/patterns.scala#L211 ```scala val aggregateExpressions

[GitHub] spark pull request #19301: [SPARK-22084][SQL] Fix performance regression in ...

2017-09-21 Thread stanzhai
Github user stanzhai commented on a diff in the pull request: https://github.com/apache/spark/pull/19301#discussion_r140155475 --- Diff: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/view.scala --- @@ -38,7 +38,7 @@ import

[GitHub] spark pull request #19301: [SPARK-22084][SQL] Fix performance regression in ...

2017-09-21 Thread stanzhai
GitHub user stanzhai opened a pull request: https://github.com/apache/spark/pull/19301 [SPARK-22084][SQL] Fix performance regression in aggregation strategy ## What changes were proposed in this pull request? This PR fix a performance regression in aggregation strategy

[GitHub] spark issue #18986: [SPARK-21774][SQL] The rule PromoteStrings should cast a...

2017-08-21 Thread stanzhai
Github user stanzhai commented on the issue: https://github.com/apache/spark/pull/18986 @gatorsmile @DonnyZone When comparing a string to a int in Hive, it will cast string type to double. ``` hive> select * from tb; 0 0 0.1 0 true

[GitHub] spark issue #18986: [SPARK-21774][SQL] The rule PromoteStrings should cast a...

2017-08-21 Thread stanzhai
Github user stanzhai commented on the issue: https://github.com/apache/spark/pull/18986 @DonnyZone @gatorsmile @cloud-fan PostgreSQL will throw an error when comparing a string to a int. ``` postgres=# select * from tb; a | b --+--- 0.1 | 1

[GitHub] spark issue #18986: [SPARK-21774][SQL] The rule PromoteStrings should cast a...

2017-08-18 Thread stanzhai
Github user stanzhai commented on the issue: https://github.com/apache/spark/pull/18986 In MySQL conversion of values from one string type to numeric, will be compared as floating-point (real) numbers. [](https://dev.mysql.com/doc/refman/5.7/en/type-conversion.html

[GitHub] spark pull request #18986: [SPARK-21774][SQL] The rule PromoteStrings should...

2017-08-17 Thread stanzhai
GitHub user stanzhai opened a pull request: https://github.com/apache/spark/pull/18986 [SPARK-21774][SQL] The rule PromoteStrings should cast a string to double type when compare with a int ## What changes were proposed in this pull request? The rule PromoteStrings should

[GitHub] spark issue #18544: [SPARK-21318][SQL]Improve exception message thrown by `l...

2017-08-08 Thread stanzhai
Github user stanzhai commented on the issue: https://github.com/apache/spark/pull/18544 @gatorsmile Some test cases have been added. Thanks for reviewing. --- 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

[GitHub] spark issue #18544: [SPARK-21318][SQL]Improve exception message thrown by `l...

2017-07-05 Thread stanzhai
Github user stanzhai commented on the issue: https://github.com/apache/spark/pull/18544 cc @liancheng --- 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

[GitHub] spark pull request #18544: [SPARK-21318][SQL]Improve exception message throw...

2017-07-05 Thread stanzhai
GitHub user stanzhai opened a pull request: https://github.com/apache/spark/pull/18544 [SPARK-21318][SQL]Improve exception message thrown by `lookupFunction` ## What changes were proposed in this pull request? The function actually exists in current selected database

[GitHub] spark pull request #17529: [SPARK-20211][SQL]Fix a bug in FLOOR and CEIL whe...

2017-06-11 Thread stanzhai
Github user stanzhai closed the pull request at: https://github.com/apache/spark/pull/17529 --- 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

[GitHub] spark pull request #18244: [SPARK-20211][SQL] Fix the Precision and Scale of...

2017-06-09 Thread stanzhai
Github user stanzhai commented on a diff in the pull request: https://github.com/apache/spark/pull/18244#discussion_r121060627 --- Diff: sql/catalyst/src/main/scala/org/apache/spark/sql/types/Decimal.scala --- @@ -126,7 +126,15 @@ final class Decimal extends Ordered[Decimal

[GitHub] spark pull request #18244: [SPARK-20211][SQL] Fix the Precision and Scale of...

2017-06-09 Thread stanzhai
Github user stanzhai commented on a diff in the pull request: https://github.com/apache/spark/pull/18244#discussion_r121058323 --- Diff: sql/catalyst/src/main/scala/org/apache/spark/sql/types/Decimal.scala --- @@ -126,7 +126,15 @@ final class Decimal extends Ordered[Decimal

[GitHub] spark pull request #18244: [SPARK-20211][SQL] Fix the Precision and Scale of...

2017-06-08 Thread stanzhai
Github user stanzhai commented on a diff in the pull request: https://github.com/apache/spark/pull/18244#discussion_r121053165 --- Diff: sql/catalyst/src/main/scala/org/apache/spark/sql/types/Decimal.scala --- @@ -126,7 +126,15 @@ final class Decimal extends Ordered[Decimal

[GitHub] spark issue #10991: [SPARK-12299][CORE] Remove history serving functionality...

2017-05-15 Thread stanzhai
Github user stanzhai commented on the issue: https://github.com/apache/spark/pull/10991 We've just upgraded our Spark cluster from 1.6.x to 2.x, I found that the REST APIs from Spark MasterUI is unavailable. It's important for us to use the REST APIs to monitor our

[GitHub] spark issue #17529: [SPARK-20211][SQL]Fix a bug in FLOOR and CEIL when a dec...

2017-04-25 Thread stanzhai
Github user stanzhai commented on the issue: https://github.com/apache/spark/pull/17529 cc @gatorsmile --- 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

[GitHub] spark issue #17529: [SPARK-20211][SQL]floor or ceil with a decimal that its ...

2017-04-04 Thread stanzhai
Github user stanzhai commented on the issue: https://github.com/apache/spark/pull/17529 cc @chenghao-intel --- 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

[GitHub] spark pull request #17529: [SPARK-20211][SQL]floor or ceil with a decimal th...

2017-04-04 Thread stanzhai
GitHub user stanzhai opened a pull request: https://github.com/apache/spark/pull/17529 [SPARK-20211][SQL]floor or ceil with a decimal that its `precision < scale` should be supported ## What changes were proposed in this pull request? `precision` in a decimal indica

[GitHub] spark pull request #17131: [SPARK-19766][SQL][BRANCH-2.0] Constant alias col...

2017-03-02 Thread stanzhai
Github user stanzhai closed the pull request at: https://github.com/apache/spark/pull/17131 --- 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

[GitHub] spark pull request #17131: [SPARK-19766][SQL][BRANCH-2.0] Constant alias col...

2017-03-01 Thread stanzhai
GitHub user stanzhai opened a pull request: https://github.com/apache/spark/pull/17131 [SPARK-19766][SQL][BRANCH-2.0] Constant alias columns in INNER JOIN should not be folded by FoldablePropagation rule This PR fix for branch-2.0 Refer #17099 @gatorsmile You

[GitHub] spark pull request #17099: [SPARK-19766][SQL] Constant alias columns in INNE...

2017-03-01 Thread stanzhai
Github user stanzhai commented on a diff in the pull request: https://github.com/apache/spark/pull/17099#discussion_r103848391 --- Diff: sql/core/src/test/resources/sql-tests/results/inner-join.sql.out --- @@ -0,0 +1,68 @@ +-- Automatically generated by SQLQueryTestSuite

[GitHub] spark issue #17099: [SPARK-19766][SQL] Constant alias columns in INNER JOIN ...

2017-03-01 Thread stanzhai
Github user stanzhai commented on the issue: https://github.com/apache/spark/pull/17099 ok --- 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

[GitHub] spark issue #17099: [SPARK-19766][SQL] Constant alias columns in INNER JOIN ...

2017-02-28 Thread stanzhai
Github user stanzhai commented on the issue: https://github.com/apache/spark/pull/17099 Thanks for @gatorsmile 's help. `ConstantFolding` will affect other test cases in `FoldablePropagationSuite`. It's fine without adding `ConstantFolding`. Before fix

[GitHub] spark issue #17099: [SPARK-19766][SQL] Constant alias columns in INNER JOIN ...

2017-02-28 Thread stanzhai
Github user stanzhai commented on the issue: https://github.com/apache/spark/pull/17099 @hvanhovell --- 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

[GitHub] spark pull request #17099: Constant alias columns in INNER JOIN should not b...

2017-02-28 Thread stanzhai
GitHub user stanzhai opened a pull request: https://github.com/apache/spark/pull/17099 Constant alias columns in INNER JOIN should not be folded by FoldablePropagation rule ## What changes were proposed in this pull request? This PR fixes the code in Optimizer phase where

[GitHub] spark pull request #16953: [SPARK-19622][WebUI]Fix a http error in a paged t...

2017-02-15 Thread stanzhai
GitHub user stanzhai opened a pull request: https://github.com/apache/spark/pull/16953 [SPARK-19622][WebUI]Fix a http error in a paged table when using a `Go` button to search. ## What changes were proposed in this pull request? The search function of paged table

[GitHub] spark pull request #16874: [SPARK-19509][SQL]Fix a NPE problem in grouping s...

2017-02-09 Thread stanzhai
Github user stanzhai closed the pull request at: https://github.com/apache/spark/pull/16874 --- 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

[GitHub] spark pull request #16874: [SPARK-19509][SQL][branch-2.1]Fix a NPE problem i...

2017-02-09 Thread stanzhai
GitHub user stanzhai opened a pull request: https://github.com/apache/spark/pull/16874 [SPARK-19509][SQL][branch-2.1]Fix a NPE problem in grouping sets when using an empty column ## What changes were proposed in this pull request? If a column of a table is all null values

[GitHub] spark issue #16617: [SPARK-19261][SQL]Support `ALTER TABLE table_name ADD CO...

2017-01-17 Thread stanzhai
Github user stanzhai commented on the issue: https://github.com/apache/spark/pull/16617 Good job! I will review your PR. --- 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

[GitHub] spark pull request #16617: [SPARK-19261][SQL]Support `ALTER TABLE table_name...

2017-01-17 Thread stanzhai
Github user stanzhai closed the pull request at: https://github.com/apache/spark/pull/16617 --- 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

[GitHub] spark pull request #16617: [SPARK-19261][SQL]Support `ALTER TABLE table_name...

2017-01-17 Thread stanzhai
GitHub user stanzhai opened a pull request: https://github.com/apache/spark/pull/16617 [SPARK-19261][SQL]Support `ALTER TABLE table_name ADD COLUMNS(..)` statement ## What changes were proposed in this pull request? We should support `ALTER TABLE table_name ADD COLUMNS

[GitHub] spark pull request: [SPARK-9010][Documentation]Improve the Spark C...

2015-07-15 Thread stanzhai
Github user stanzhai closed the pull request at: https://github.com/apache/spark/pull/7393 --- 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

[GitHub] spark pull request: [SPARK-9010][Documentation]Improve the Spark C...

2015-07-14 Thread stanzhai
Github user stanzhai closed the pull request at: https://github.com/apache/spark/pull/7368 --- 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

[GitHub] spark pull request: [SPARK-9010][Documentation]Improve the Spark C...

2015-07-14 Thread stanzhai
GitHub user stanzhai opened a pull request: https://github.com/apache/spark/pull/7393 [SPARK-9010][Documentation]Improve the Spark Configuration document about `spark.kryoserializer.buffer` The meaning of spark.kryoserializer.buffer should be Initial size of Kryo's serialization

[GitHub] spark pull request: [SPARK-9010][Documentation]Improve the Spark C...

2015-07-13 Thread stanzhai
GitHub user stanzhai opened a pull request: https://github.com/apache/spark/pull/7368 [SPARK-9010][Documentation]Improve the Spark Configuration document about `spark.kryoserializer.buffer` The meaning of spark.kryoserializer.buffer should be Initial size of Kryo's serialization