[GitHub] spark pull request: SPARK-14321. [SQL] Reduce date format cost and...

2016-04-19 Thread HyukjinKwon
Github user HyukjinKwon commented on the pull request: https://github.com/apache/spark/pull/12105#issuecomment-212182055 This is trivial but would be great if the title follows `[SPARK-X][SQL]` format as described in https://cwiki.apache.org/confluence/display/SPARK/Contributing+t

[GitHub] spark pull request: [SPARK-14321][SQL] Reduce date format cost and...

2016-05-20 Thread cloud-fan
Github user cloud-fan commented on a diff in the pull request: https://github.com/apache/spark/pull/12105#discussion_r63999680 --- Diff: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/datetimeExpressions.scala --- @@ -391,21 +393,24 @@ abstract class UnixTim

[GitHub] spark pull request: [SPARK-14321][SQL] Reduce date format cost and...

2016-05-20 Thread cloud-fan
Github user cloud-fan commented on the pull request: https://github.com/apache/spark/pull/12105#issuecomment-220533781 hi @rajeshbalamohan , sorry for the delay, do you wanna try this again? --- If your project is set up for it, you can reply to this email and have your reply appear

[GitHub] spark pull request: [SPARK-14321][SQL] Reduce date format cost and...

2016-05-24 Thread sameeragarwal
Github user sameeragarwal commented on the pull request: https://github.com/apache/spark/pull/12105#issuecomment-221437247 @rajeshbalamohan thanks again for working on this; it'd be great to have this in 2.0. Do you have cycles to bring to this up to date and address reviewer comments

[GitHub] spark pull request: [SPARK-14321][SQL] Reduce date format cost and...

2016-05-29 Thread rajeshbalamohan
Github user rajeshbalamohan commented on the pull request: https://github.com/apache/spark/pull/12105#issuecomment-222408035 Sorry about the delay in responding to this. Will try to rebase and post the patch asap. --- If your project is set up for it, you can reply to this email and

[GitHub] spark pull request: SPARK-14321. [SQL] Reduce date format cost and...

2016-03-31 Thread rajeshbalamohan
GitHub user rajeshbalamohan opened a pull request: https://github.com/apache/spark/pull/12105 SPARK-14321. [SQL] Reduce date format cost and string-to-date cost i… ## What changes were proposed in this pull request? Here is the generated code snippet when executing date f

[GitHub] spark pull request: SPARK-14321. [SQL] Reduce date format cost and...

2016-03-31 Thread AmplabJenkins
Github user AmplabJenkins commented on the pull request: https://github.com/apache/spark/pull/12105#issuecomment-204227649 Can one of the admins verify this patch? --- 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 p

[GitHub] spark pull request: SPARK-14321. [SQL] Reduce date format cost and...

2016-03-31 Thread davies
Github user davies commented on the pull request: https://github.com/apache/spark/pull/12105#issuecomment-204228144 Jenkins, OK to test --- 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 fe

[GitHub] spark pull request: SPARK-14321. [SQL] Reduce date format cost and...

2016-03-31 Thread SparkQA
Github user SparkQA commented on the pull request: https://github.com/apache/spark/pull/12105#issuecomment-204267311 **[Test build #2721 has started](https://amplab.cs.berkeley.edu/jenkins/job/NewSparkPullRequestBuilder/2721/consoleFull)** for PR 12105 at commit [`6fd07db`](https://g

[GitHub] spark pull request: SPARK-14321. [SQL] Reduce date format cost and...

2016-04-01 Thread SparkQA
Github user SparkQA commented on the pull request: https://github.com/apache/spark/pull/12105#issuecomment-204296880 **[Test build #2721 has finished](https://amplab.cs.berkeley.edu/jenkins/job/NewSparkPullRequestBuilder/2721/consoleFull)** for PR 12105 at commit [`6fd07db`](https://

[GitHub] spark pull request: SPARK-14321. [SQL] Reduce date format cost and...

2016-04-01 Thread srowen
Github user srowen commented on the pull request: https://github.com/apache/spark/pull/12105#issuecomment-204441304 The problem is that this object is not thread-safe. Unless you know this instance is only accessed by one thread, this potentially fails when accessed concurrently. -

[GitHub] spark pull request: SPARK-14321. [SQL] Reduce date format cost and...

2016-04-03 Thread rajeshbalamohan
Github user rajeshbalamohan commented on the pull request: https://github.com/apache/spark/pull/12105#issuecomment-205082821 SDF declared in the generated code is not shared in multiple threads. --- If your project is set up for it, you can reply to this email and have your reply appe

[GitHub] spark pull request: SPARK-14321. [SQL] Reduce date format cost and...

2016-04-03 Thread srowen
Github user srowen commented on a diff in the pull request: https://github.com/apache/spark/pull/12105#discussion_r58320790 --- Diff: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/util/DateTimeUtils.scala --- @@ -59,6 +59,8 @@ object DateTimeUtils { final val to

[GitHub] spark pull request: SPARK-14321. [SQL] Reduce date format cost and...

2016-04-03 Thread rajeshbalamohan
Github user rajeshbalamohan commented on the pull request: https://github.com/apache/spark/pull/12105#issuecomment-205122837 Agreed. Thanks @srowen . Reverted calendar changes in DateTimeUtils in recent commit. --- If your project is set up for it, you can reply to this email and hav

[GitHub] spark pull request: SPARK-14321. [SQL] Reduce date format cost and...

2016-04-06 Thread srowen
Github user srowen commented on a diff in the pull request: https://github.com/apache/spark/pull/12105#discussion_r58715478 --- Diff: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/datetimeExpressions.scala --- @@ -391,13 +391,14 @@ abstract class UnixTime e

[GitHub] spark pull request: SPARK-14321. [SQL] Reduce date format cost and...

2016-04-06 Thread srowen
Github user srowen commented on a diff in the pull request: https://github.com/apache/spark/pull/12105#discussion_r58715959 --- Diff: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/datetimeExpressions.scala --- @@ -416,11 +419,17 @@ abstract class UnixTime e

[GitHub] spark pull request: SPARK-14321. [SQL] Reduce date format cost and...

2016-04-06 Thread srowen
Github user srowen commented on a diff in the pull request: https://github.com/apache/spark/pull/12105#discussion_r58716090 --- Diff: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/datetimeExpressions.scala --- @@ -519,7 +530,10 @@ case class FromUnixTime(se

[GitHub] spark pull request: SPARK-14321. [SQL] Reduce date format cost and...

2016-04-06 Thread davies
Github user davies commented on a diff in the pull request: https://github.com/apache/spark/pull/12105#discussion_r58745694 --- Diff: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/datetimeExpressions.scala --- @@ -416,11 +419,17 @@ abstract class UnixTime e

[GitHub] spark pull request: SPARK-14321. [SQL] Reduce date format cost and...

2016-04-06 Thread davies
Github user davies commented on a diff in the pull request: https://github.com/apache/spark/pull/12105#discussion_r58746649 --- Diff: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/datetimeExpressions.scala --- @@ -519,7 +530,10 @@ case class FromUnixTime(se

[GitHub] spark pull request: SPARK-14321. [SQL] Reduce date format cost and...

2016-04-06 Thread davies
Github user davies commented on the pull request: https://github.com/apache/spark/pull/12105#issuecomment-206476854 @rajeshbalamohan Could you also update the eval() of UnixTime, FromUnixTime and DateFormatClass? --- If your project is set up for it, you can reply to this email and h

[GitHub] spark pull request: SPARK-14321. [SQL] Reduce date format cost and...

2016-04-10 Thread srowen
Github user srowen commented on the pull request: https://github.com/apache/spark/pull/12105#issuecomment-208000318 Ping @rajeshbalamohan --- 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

[GitHub] spark pull request: SPARK-14321. [SQL] Reduce date format cost and...

2016-04-14 Thread srowen
Github user srowen commented on the pull request: https://github.com/apache/spark/pull/12105#issuecomment-20986 @rajeshbalamohan are you still working on this? --- 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 pull request: SPARK-14321. [SQL] Reduce date format cost and...

2016-04-14 Thread rajeshbalamohan
Github user rajeshbalamohan commented on the pull request: https://github.com/apache/spark/pull/12105#issuecomment-210202377 Sorry about the delay. I will share the update patch today --- If your project is set up for it, you can reply to this email and have your reply appear on GitHu

[GitHub] spark pull request: SPARK-14321. [SQL] Reduce date format cost and...

2016-04-15 Thread rajeshbalamohan
Github user rajeshbalamohan commented on the pull request: https://github.com/apache/spark/pull/12105#issuecomment-210384204 Revised the patch addressing comments. Fixed eval() of UnixTime, FromUnixTime. Haven't changed eval in DateFormatClass as i am not sure if format can change in

[GitHub] spark pull request: SPARK-14321. [SQL] Reduce date format cost and...

2016-04-15 Thread srowen
Github user srowen commented on a diff in the pull request: https://github.com/apache/spark/pull/12105#discussion_r59864421 --- Diff: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/datetimeExpressions.scala --- @@ -368,7 +369,10 @@ abstract class UnixTime ex

[GitHub] spark pull request: SPARK-14321. [SQL] Reduce date format cost and...

2016-04-15 Thread srowen
Github user srowen commented on a diff in the pull request: https://github.com/apache/spark/pull/12105#discussion_r59864380 --- Diff: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/datetimeExpressions.scala --- @@ -355,6 +355,7 @@ abstract class UnixTime ext

[GitHub] spark pull request: SPARK-14321. [SQL] Reduce date format cost and...

2016-04-17 Thread rajeshbalamohan
Github user rajeshbalamohan commented on a diff in the pull request: https://github.com/apache/spark/pull/12105#discussion_r60001514 --- Diff: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/datetimeExpressions.scala --- @@ -368,7 +369,10 @@ abstract class Un

[GitHub] spark pull request: SPARK-14321. [SQL] Reduce date format cost and...

2016-04-18 Thread srowen
Github user srowen commented on a diff in the pull request: https://github.com/apache/spark/pull/12105#discussion_r60020044 --- Diff: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/datetimeExpressions.scala --- @@ -391,21 +395,24 @@ abstract class UnixTime e

[GitHub] spark pull request: SPARK-14321. [SQL] Reduce date format cost and...

2016-04-18 Thread rajeshbalamohan
Github user rajeshbalamohan commented on the pull request: https://github.com/apache/spark/pull/12105#issuecomment-211286426 In the generated code, it returns null if constFormat == null. So it is not required to change the generated code. --- If your project is set up for it, you c