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

ASF GitHub Bot updated SPARK-62397:
-----------------------------------
    Labels: pull-request-available  (was: )

> Add field access and casts from STRUCT and VARIANT to the FILE type
> -------------------------------------------------------------------
>
>                 Key: SPARK-62397
>                 URL: https://issues.apache.org/jira/browse/SPARK-62397
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 5.0.0
>            Reporter: Dejan Krakovic
>            Priority: Major
>              Labels: pull-request-available
>
> Slice 2 of the FILE type (SPARK-59132): field access and casts from STRUCT 
> and VARIANT to FILE.
> * Field access: file.uri, file.offset, file.size, file.content_type and 
> file.checksum, through the existing ExtractValue / GetStructField logic. 
> inline stays internal and is not a field. A field that is not set is NULL 
> (file.offset too; readers treat an absent offset as 0).
> * CAST(struct AS FILE) when the struct has exactly the five FILE fields, and 
> CAST(variant AS FILE) from a variant object with those keys (missing keys are 
> NULL, other keys are ignored, duplicate keys are an error). The result is a 
> FILE of unknown mode; a FILE EXTERNAL is reached by writing to a FILE 
> EXTERNAL column. A NULL uri is an error (NULL under TRY_CAST).
> * Nested column pruning and aliasing handle FILE field access.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to