[jira] [Assigned] (SPARK-21224) Support a DDL-formatted string as schema in reading for R
[ https://issues.apache.org/jira/browse/SPARK-21224?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Apache Spark reassigned SPARK-21224: Assignee: Apache Spark > Support a DDL-formatted string as schema in reading for R > - > > Key: SPARK-21224 > URL: https://issues.apache.org/jira/browse/SPARK-21224 > Project: Spark > Issue Type: Improvement > Components: SparkR >Affects Versions: 2.2.0 >Reporter: Hyukjin Kwon >Assignee: Apache Spark >Priority: Minor > > This might have to be a followup for SPARK-20431 but I just decided to make > this separate for R specifically as many PRs might be confusing. > Please refer the discussion in the PR and SPARK-20431. > In a simple view, this JIRA describes the support for a DDL-formetted string > as schema as below: > {code} > mockLines <- c("{\"name\":\"Michael\"}", >"{\"name\":\"Andy\", \"age\":30}", >"{\"name\":\"Justin\", \"age\":19}") > jsonPath <- tempfile(pattern = "sparkr-test", fileext = ".tmp") > writeLines(mockLines, jsonPath) > df <- read.df(jsonPath, "json", "name STRING, age DOUBLE") > collect(df) > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org
[jira] [Assigned] (SPARK-21224) Support a DDL-formatted string as schema in reading for R
[ https://issues.apache.org/jira/browse/SPARK-21224?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Apache Spark reassigned SPARK-21224: Assignee: (was: Apache Spark) > Support a DDL-formatted string as schema in reading for R > - > > Key: SPARK-21224 > URL: https://issues.apache.org/jira/browse/SPARK-21224 > Project: Spark > Issue Type: Improvement > Components: SparkR >Affects Versions: 2.2.0 >Reporter: Hyukjin Kwon >Priority: Minor > > This might have to be a followup for SPARK-20431 but I just decided to make > this separate for R specifically as many PRs might be confusing. > Please refer the discussion in the PR and SPARK-20431. > In a simple view, this JIRA describes the support for a DDL-formetted string > as schema as below: > {code} > mockLines <- c("{\"name\":\"Michael\"}", >"{\"name\":\"Andy\", \"age\":30}", >"{\"name\":\"Justin\", \"age\":19}") > jsonPath <- tempfile(pattern = "sparkr-test", fileext = ".tmp") > writeLines(mockLines, jsonPath) > df <- read.df(jsonPath, "json", "name STRING, age DOUBLE") > collect(df) > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org
[jira] [Assigned] (SPARK-21224) Support a DDL-formatted string as schema in reading for R
[ https://issues.apache.org/jira/browse/SPARK-21224?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Felix Cheung reassigned SPARK-21224: Assignee: Hyukjin Kwon > Support a DDL-formatted string as schema in reading for R > - > > Key: SPARK-21224 > URL: https://issues.apache.org/jira/browse/SPARK-21224 > Project: Spark > Issue Type: Improvement > Components: SparkR >Affects Versions: 2.2.0 >Reporter: Hyukjin Kwon >Assignee: Hyukjin Kwon >Priority: Minor > > This might have to be a followup for SPARK-20431 but I just decided to make > this separate for R specifically as many PRs might be confusing. > Please refer the discussion in the PR and SPARK-20431. > In a simple view, this JIRA describes the support for a DDL-formetted string > as schema as below: > {code} > mockLines <- c("{\"name\":\"Michael\"}", >"{\"name\":\"Andy\", \"age\":30}", >"{\"name\":\"Justin\", \"age\":19}") > jsonPath <- tempfile(pattern = "sparkr-test", fileext = ".tmp") > writeLines(mockLines, jsonPath) > df <- read.df(jsonPath, "json", "name STRING, age DOUBLE") > collect(df) > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org