[jira] [Updated] (SPARK-7437) Fold literal in (item1, item2, ..., literal, ...) into true or false directly

2015-05-16 Thread Sean Owen (JIRA)

 [ 
https://issues.apache.org/jira/browse/SPARK-7437?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sean Owen updated SPARK-7437:
-
Assignee: Zhongshuai Pei

 Fold literal in (item1, item2, ..., literal, ...) into true or false 
 directly
 ---

 Key: SPARK-7437
 URL: https://issues.apache.org/jira/browse/SPARK-7437
 Project: Spark
  Issue Type: Improvement
  Components: SQL
Affects Versions: 1.3.1
Reporter: Zhongshuai Pei
Assignee: Zhongshuai Pei
 Fix For: 1.4.0






--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Updated] (SPARK-7437) Fold literal in (item1, item2, ..., literal, ...) into true or false directly if all element of list is Literal

2015-05-07 Thread Zhongshuai Pei (JIRA)

 [ 
https://issues.apache.org/jira/browse/SPARK-7437?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Zhongshuai Pei updated SPARK-7437:
--
Summary: Fold literal in (item1, item2, ..., literal, ...) into true or 
false directly if all element of list is Literal  (was: Fold literal in 
(item1, item2, ..., literal, ...) into true or false directly if element of 
list is Literal)

 Fold literal in (item1, item2, ..., literal, ...) into true or false 
 directly if all element of list is Literal
 -

 Key: SPARK-7437
 URL: https://issues.apache.org/jira/browse/SPARK-7437
 Project: Spark
  Issue Type: Improvement
  Components: SQL
Affects Versions: 1.3.1
Reporter: Zhongshuai Pei

 Just Fold literal in (item1, item2, ..., literal, ...) into true directly 
 if in
 {noformat}
 case In(Literal(v, _), list) if list.exists {
   case Literal(candidate, _) if candidate == v = true
   case _ = false
 } = Literal.create(true, BooleanType)
 {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Updated] (SPARK-7437) Fold literal in (item1, item2, ..., literal, ...) into true or false directly if element of list is Literal

2015-05-07 Thread Zhongshuai Pei (JIRA)

 [ 
https://issues.apache.org/jira/browse/SPARK-7437?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Zhongshuai Pei updated SPARK-7437:
--
Summary: Fold literal in (item1, item2, ..., literal, ...) into true or 
false directly if element of list is Literal  (was: Fold literal in (item1, 
item2, ..., literal, ...) into false directly if not in.)

 Fold literal in (item1, item2, ..., literal, ...) into true or false 
 directly if element of list is Literal
 -

 Key: SPARK-7437
 URL: https://issues.apache.org/jira/browse/SPARK-7437
 Project: Spark
  Issue Type: Improvement
  Components: SQL
Affects Versions: 1.3.1
Reporter: Zhongshuai Pei

 Just Fold literal in (item1, item2, ..., literal, ...) into true directly 
 if in
 {noformat}
 case In(Literal(v, _), list) if list.exists {
   case Literal(candidate, _) if candidate == v = true
   case _ = false
 } = Literal.create(true, BooleanType)
 {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Updated] (SPARK-7437) Fold literal in (item1, item2, ..., literal, ...) into true or false directly if all element of list is Literal

2015-05-07 Thread Zhongshuai Pei (JIRA)

 [ 
https://issues.apache.org/jira/browse/SPARK-7437?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Zhongshuai Pei updated SPARK-7437:
--
Description: (was: Just Fold literal in (item1, item2, ..., literal, 
...) into true directly if in
{noformat}
case In(Literal(v, _), list) if list.exists {
  case Literal(candidate, _) if candidate == v = true
  case _ = false
} = Literal.create(true, BooleanType)
{noformat}

)

 Fold literal in (item1, item2, ..., literal, ...) into true or false 
 directly if all element of list is Literal
 -

 Key: SPARK-7437
 URL: https://issues.apache.org/jira/browse/SPARK-7437
 Project: Spark
  Issue Type: Improvement
  Components: SQL
Affects Versions: 1.3.1
Reporter: Zhongshuai Pei





--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Updated] (SPARK-7437) Fold literal in (item1, item2, ..., literal, ...) into true or false directly if all elements of list is Literal

2015-05-07 Thread Zhongshuai Pei (JIRA)

 [ 
https://issues.apache.org/jira/browse/SPARK-7437?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Zhongshuai Pei updated SPARK-7437:
--
Summary: Fold literal in (item1, item2, ..., literal, ...) into true or 
false directly if all elements of list is Literal  (was: Fold literal in 
(item1, item2, ..., literal, ...) into true or false directly if all element 
of list is Literal)

 Fold literal in (item1, item2, ..., literal, ...) into true or false 
 directly if all elements of list is Literal
 --

 Key: SPARK-7437
 URL: https://issues.apache.org/jira/browse/SPARK-7437
 Project: Spark
  Issue Type: Improvement
  Components: SQL
Affects Versions: 1.3.1
Reporter: Zhongshuai Pei





--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Updated] (SPARK-7437) Fold literal in (item1, item2, ..., literal, ...) into true or false directly

2015-05-07 Thread Zhongshuai Pei (JIRA)

 [ 
https://issues.apache.org/jira/browse/SPARK-7437?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Zhongshuai Pei updated SPARK-7437:
--
Summary: Fold literal in (item1, item2, ..., literal, ...) into true or 
false directly  (was: Fold literal in (item1, item2, ..., literal, ...) into 
true or false directly if all elements of list is Literal)

 Fold literal in (item1, item2, ..., literal, ...) into true or false 
 directly
 ---

 Key: SPARK-7437
 URL: https://issues.apache.org/jira/browse/SPARK-7437
 Project: Spark
  Issue Type: Improvement
  Components: SQL
Affects Versions: 1.3.1
Reporter: Zhongshuai Pei





--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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