Return-Path: X-Original-To: apmail-spark-issues-archive@minotaur.apache.org Delivered-To: apmail-spark-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8C7B1183FE for ; Thu, 1 Oct 2015 19:17:39 +0000 (UTC) Received: (qmail 99175 invoked by uid 500); 1 Oct 2015 19:17:26 -0000 Delivered-To: apmail-spark-issues-archive@spark.apache.org Received: (qmail 99037 invoked by uid 500); 1 Oct 2015 19:17:26 -0000 Mailing-List: contact issues-help@spark.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@spark.apache.org Received: (qmail 98873 invoked by uid 99); 1 Oct 2015 19:17:26 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Oct 2015 19:17:26 +0000 Date: Thu, 1 Oct 2015 19:17:26 +0000 (UTC) From: "Weiqiang Zhuang (JIRA)" To: issues@spark.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (SPARK-10904) select(df, c("col1", "col2")) fails MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SPARK-10904?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14940263#comment-14940263 ] Weiqiang Zhuang commented on SPARK-10904: ----------------------------------------- Here you go: sc <- sparkR.init() sqlContext <- sparkRSQL.init(sc) df <- createDataFrame(sqlContext, iris) select(df, c("Sepal_Width","Sepal_Length")) > select(df, c("col1", "col2")) fails > ------------------------------------- > > Key: SPARK-10904 > URL: https://issues.apache.org/jira/browse/SPARK-10904 > Project: Spark > Issue Type: Bug > Components: SparkR > Affects Versions: 1.5.0 > Reporter: Weiqiang Zhuang > > The help page for 'select' gives an example of > select(df, c("col1", "col2")) > However, this fails with assertion: > java.lang.AssertionError: assertion failed > at scala.Predef$.assert(Predef.scala:165) > at org.apache.spark.api.r.SerDe$.readStringBytes(SerDe.scala:92) > at org.apache.spark.api.r.SerDe$.readString(SerDe.scala:99) > at org.apache.spark.api.r.SerDe$.readTypedObject(SerDe.scala:63) > at org.apache.spark.api.r.SerDe$.readObject(SerDe.scala:52) > at org.apache.spark.api.r.RBackendHandler$$anonfun$readArgs$1.apply(RBackendHandler.scala:182) > at org.apache.spark.api.r.RBackendHandler$$anonfun$readArgs$1.apply(RBackendHandler.scala:181) > And then none of the functions will work with following error: > > head(df) > Error in if (returnStatus != 0) { : argument is of length zero -- 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