[jira] [Updated] (SPARK-28153) Use AtomicReference at InputFileBlockHolder (to support input_file_name with Python UDF)

2019-08-18 Thread Dongjoon Hyun (JIRA)


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

Dongjoon Hyun updated SPARK-28153:
--
Fix Version/s: 2.4.4

> Use AtomicReference at InputFileBlockHolder (to support input_file_name with 
> Python UDF)
> 
>
> Key: SPARK-28153
> URL: https://issues.apache.org/jira/browse/SPARK-28153
> Project: Spark
>  Issue Type: Bug
>  Components: PySpark
>Affects Versions: 2.3.3, 3.0.0, 2.4.3
>Reporter: Hyukjin Kwon
>Assignee: Hyukjin Kwon
>Priority: Major
> Fix For: 2.4.4, 3.0.0
>
>
> {code}
> from pyspark.sql.functions import udf, input_file_name
> spark.range(10).write.mode("overwrite").parquet("/tmp/foo")
> spark.read.parquet("/tmp/foo").select(udf(lambda x: x, "long")("id"), 
> input_file_name()).show()
> {code}
> {code}
> ++-+
> |(id)|input_file_name()|
> ++-+
> |   8| |
> |   5| |
> |   0| |
> |   9| |
> |   6| |
> |   2| |
> |   3| |
> |   4| |
> |   7| |
> |   1| |
> ++-+
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

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



[jira] [Updated] (SPARK-28153) Use AtomicReference at InputFileBlockHolder (to support input_file_name with Python UDF)

2019-07-31 Thread Hyukjin Kwon (JIRA)


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

Hyukjin Kwon updated SPARK-28153:
-
Fix Version/s: (was: 3.0.0)

> Use AtomicReference at InputFileBlockHolder (to support input_file_name with 
> Python UDF)
> 
>
> Key: SPARK-28153
> URL: https://issues.apache.org/jira/browse/SPARK-28153
> Project: Spark
>  Issue Type: Bug
>  Components: PySpark
>Affects Versions: 2.3.3, 3.0.0, 2.4.3
>Reporter: Hyukjin Kwon
>Priority: Major
>
> {code}
> from pyspark.sql.functions import udf, input_file_name
> spark.range(10).write.mode("overwrite").parquet("/tmp/foo")
> spark.read.parquet("/tmp/foo").select(udf(lambda x: x, "long")("id"), 
> input_file_name()).show()
> {code}
> {code}
> ++-+
> |(id)|input_file_name()|
> ++-+
> |   8| |
> |   5| |
> |   0| |
> |   9| |
> |   6| |
> |   2| |
> |   3| |
> |   4| |
> |   7| |
> |   1| |
> ++-+
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

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



[jira] [Updated] (SPARK-28153) Use AtomicReference at InputFileBlockHolder (to support input_file_name with Python UDF)

2019-07-31 Thread Hyukjin Kwon (JIRA)


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

Hyukjin Kwon updated SPARK-28153:
-
Fix Version/s: (was: 3.0.0)

> Use AtomicReference at InputFileBlockHolder (to support input_file_name with 
> Python UDF)
> 
>
> Key: SPARK-28153
> URL: https://issues.apache.org/jira/browse/SPARK-28153
> Project: Spark
>  Issue Type: Bug
>  Components: PySpark
>Affects Versions: 2.3.3, 3.0.0, 2.4.3
>Reporter: Hyukjin Kwon
>Priority: Major
>
> {code}
> from pyspark.sql.functions import udf, input_file_name
> spark.range(10).write.mode("overwrite").parquet("/tmp/foo")
> spark.read.parquet("/tmp/foo").select(udf(lambda x: x, "long")("id"), 
> input_file_name()).show()
> {code}
> {code}
> ++-+
> |(id)|input_file_name()|
> ++-+
> |   8| |
> |   5| |
> |   0| |
> |   9| |
> |   6| |
> |   2| |
> |   3| |
> |   4| |
> |   7| |
> |   1| |
> ++-+
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

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



[jira] [Updated] (SPARK-28153) Use AtomicReference at InputFileBlockHolder (to support input_file_name with Python UDF)

2019-07-31 Thread Hyukjin Kwon (JIRA)


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

Hyukjin Kwon updated SPARK-28153:
-
Fix Version/s: (was: 3.0.0)

> Use AtomicReference at InputFileBlockHolder (to support input_file_name with 
> Python UDF)
> 
>
> Key: SPARK-28153
> URL: https://issues.apache.org/jira/browse/SPARK-28153
> Project: Spark
>  Issue Type: Bug
>  Components: PySpark
>Affects Versions: 2.3.3, 3.0.0, 2.4.3
>Reporter: Hyukjin Kwon
>Priority: Major
>
> {code}
> from pyspark.sql.functions import udf, input_file_name
> spark.range(10).write.mode("overwrite").parquet("/tmp/foo")
> spark.read.parquet("/tmp/foo").select(udf(lambda x: x, "long")("id"), 
> input_file_name()).show()
> {code}
> {code}
> ++-+
> |(id)|input_file_name()|
> ++-+
> |   8| |
> |   5| |
> |   0| |
> |   9| |
> |   6| |
> |   2| |
> |   3| |
> |   4| |
> |   7| |
> |   1| |
> ++-+
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

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



[jira] [Updated] (SPARK-28153) Use AtomicReference at InputFileBlockHolder (to support input_file_name with Python UDF)

2019-07-31 Thread Dongjoon Hyun (JIRA)


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

Dongjoon Hyun updated SPARK-28153:
--
Summary: Use AtomicReference at InputFileBlockHolder (to support 
input_file_name with Python UDF)  (was: input_file_name doesn't work with 
Python UDF in the same project)

> Use AtomicReference at InputFileBlockHolder (to support input_file_name with 
> Python UDF)
> 
>
> Key: SPARK-28153
> URL: https://issues.apache.org/jira/browse/SPARK-28153
> Project: Spark
>  Issue Type: Bug
>  Components: PySpark
>Affects Versions: 2.3.3, 3.0.0, 2.4.3
>Reporter: Hyukjin Kwon
>Assignee: Hyukjin Kwon
>Priority: Major
> Fix For: 3.0.0
>
>
> {code}
> from pyspark.sql.functions import udf, input_file_name
> spark.range(10).write.mode("overwrite").parquet("/tmp/foo")
> spark.read.parquet("/tmp/foo").select(udf(lambda x: x, "long")("id"), 
> input_file_name()).show()
> {code}
> {code}
> ++-+
> |(id)|input_file_name()|
> ++-+
> |   8| |
> |   5| |
> |   0| |
> |   9| |
> |   6| |
> |   2| |
> |   3| |
> |   4| |
> |   7| |
> |   1| |
> ++-+
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

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