You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Cheng Lian (JIRA)" <ji...@apache.org> on 2015/06/08 11:52:00 UTC

[jira] [Resolved] (SPARK-7939) Make URL partition recognition return String by default for all partition column types and values

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

Cheng Lian resolved SPARK-7939.
-------------------------------
       Resolution: Fixed
    Fix Version/s: 1.5.0

Issue resolved by pull request 6503
[https://github.com/apache/spark/pull/6503]

> Make URL partition recognition return String by default for all partition column types and values
> -------------------------------------------------------------------------------------------------
>
>                 Key: SPARK-7939
>                 URL: https://issues.apache.org/jira/browse/SPARK-7939
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 1.4.0
>            Reporter: Jianshi Huang
>              Labels: 1.4.1
>             Fix For: 1.5.0
>
>
> Imagine the following HDFS paths:
> /data/split=00
> /data/split=01
> ...
> /data/split=FF
> If I have less than or equal to 10 partitions (00, 01, ... 09), currently partition recognition will treat column 'split' as integer column. 
> If I have more than 10 partitions, column 'split' will be recognized as String...
> This is very confusing. *So I'm suggesting to treat partition columns as String by default*, and allow user to specify types if needed.
> Another example is date:
> /data/date=2015-04-01 => 'date' is String
> /data/date=20150401 => 'date' is Int
> Jianshi



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

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