[GitHub] spark issue #18080: [Spark-20771][SQL] Make weekofyear more intuitive

2018-11-08 Thread srowen
Github user srowen commented on the issue:

https://github.com/apache/spark/pull/18080
  
I think that if Spark's behavior matches Hive's, that's what we want here. 
Other variations can be implemented in UDFs, which provide all the flexibility 
you'd want. These functions exist in all kinds of variations in SQL databases 
because UDFs are hard or unavailable.


---

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



[GitHub] spark issue #18080: [Spark-20771][SQL] Make weekofyear more intuitive

2018-09-05 Thread AmplabJenkins
Github user AmplabJenkins commented on the issue:

https://github.com/apache/spark/pull/18080
  
Can one of the admins verify this patch?


---

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



[GitHub] spark issue #18080: [Spark-20771][SQL] Make weekofyear more intuitive

2018-06-08 Thread AmplabJenkins
Github user AmplabJenkins commented on the issue:

https://github.com/apache/spark/pull/18080
  
Can one of the admins verify this patch?


---

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



[GitHub] spark issue #18080: [Spark-20771][SQL] Make weekofyear more intuitive

2018-01-18 Thread AmplabJenkins
Github user AmplabJenkins commented on the issue:

https://github.com/apache/spark/pull/18080
  
Can one of the admins verify this patch?


---

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



[GitHub] spark issue #18080: [Spark-20771][SQL] Make weekofyear more intuitive

2017-12-14 Thread AmplabJenkins
Github user AmplabJenkins commented on the issue:

https://github.com/apache/spark/pull/18080
  
Can one of the admins verify this patch?


---

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



[GitHub] spark issue #18080: [Spark-20771][SQL] Make weekofyear more intuitive

2017-05-29 Thread setjet
Github user setjet commented on the issue:

https://github.com/apache/spark/pull/18080
  
This variant is available in other DB's, albeit with slightly different 
function and parameter naming. For example, MySQL allows it via the `week()` 
function: 
http://www.w3resource.com/mysql/date-and-time-functions/mysql-week-function.php

In this case, you pass in an integer that specifies which permutation you 
want. Please note that if you look at the table, the 'Week 1 is the first week 
…' column is the difference between gregorian and iso.


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

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



[GitHub] spark issue #18080: [Spark-20771][SQL] Make weekofyear more intuitive

2017-05-29 Thread srowen
Github user srowen commented on the issue:

https://github.com/apache/spark/pull/18080
  
Is this variant available in any other DB? A lot of the goal of providing 
built-in functions is compatibility. Beyond that a lot of things are better 
handled with UDFs for special cases, not new built-ins


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

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



[GitHub] spark issue #18080: [Spark-20771][SQL] Make weekofyear more intuitive

2017-05-24 Thread setjet
Github user setjet commented on the issue:

https://github.com/apache/spark/pull/18080
  
I agree that we shouldn't change the behavior, hence I suggested we could 
do it the other way around: make a new function for gregorian  instead and 
leave weekofyear as is.

I suppose we could define the function as follows: _FUNC_(date[, gregorian])


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

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



[GitHub] spark issue #18080: [Spark-20771][SQL] Make weekofyear more intuitive

2017-05-23 Thread srowen
Github user srowen commented on the issue:

https://github.com/apache/spark/pull/18080
  
I don't think you can just change the behavior. It would possibly break 
apps and I presume no longer matches Hive. If it already implements a standard 
too,  it sounds like it is correct. A second method seems like API clutter


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

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



[GitHub] spark issue #18080: [Spark-20771][SQL] Make weekofyear more intuitive

2017-05-23 Thread setjet
Github user setjet commented on the issue:

https://github.com/apache/spark/pull/18080
  
Coming to think of it, it might actually be better to switch it around: 
have ISO8601 as function weekofyear, and make a separate function for gregorian 
because ISO is more of a commonly used term.



---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

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



[GitHub] spark issue #18080: [Spark-20771][SQL] Make weekofyear more intuitive

2017-05-23 Thread AmplabJenkins
Github user AmplabJenkins commented on the issue:

https://github.com/apache/spark/pull/18080
  
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 project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

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