Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 4DBB7200C55 for ; Wed, 29 Mar 2017 11:37:47 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 4C609160B7C; Wed, 29 Mar 2017 09:37:47 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 95C0F160B95 for ; Wed, 29 Mar 2017 11:37:46 +0200 (CEST) Received: (qmail 13317 invoked by uid 500); 29 Mar 2017 09:37:45 -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 13308 invoked by uid 99); 29 Mar 2017 09:37:45 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Mar 2017 09:37:45 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 67E69C6B36 for ; Wed, 29 Mar 2017 09:37:45 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id nexDk5-0zqjg for ; Wed, 29 Mar 2017 09:37:44 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 9BF2C5F613 for ; Wed, 29 Mar 2017 09:37:44 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id EBC52E0BFB for ; Wed, 29 Mar 2017 09:37:43 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 57DA22418C for ; Wed, 29 Mar 2017 09:37:42 +0000 (UTC) Date: Wed, 29 Mar 2017 09:37:42 +0000 (UTC) From: "Sean Owen (JIRA)" To: issues@spark.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (SPARK-20138) Add imports to snippets in Spark SQL, DataFrames and Datasets Guide doc MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 29 Mar 2017 09:37:47 -0000 [ https://issues.apache.org/jira/browse/SPARK-20138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15946818#comment-15946818 ] Sean Owen commented on SPARK-20138: ----------------------------------- I think the Spark imports were purposely excluded for brevity. However there may be some cases where the imports aren't obvious because they aren't from Spark. I think that could be valuable to add in some cases. > Add imports to snippets in Spark SQL, DataFrames and Datasets Guide doc > ----------------------------------------------------------------------- > > Key: SPARK-20138 > URL: https://issues.apache.org/jira/browse/SPARK-20138 > Project: Spark > Issue Type: Improvement > Components: Documentation, SQL > Affects Versions: 2.2.0 > Reporter: Jacek Laskowski > Priority: Trivial > > Given [the question on StackOverflow|http://stackoverflow.com/q/43089100/1305344] it seems it'd be helpful to add imports to the snippets to make _some_ people's lives easier. > {quote} > When I try to load data using the second method in the link, I get the following error. > scala> val connectionProperties = new Properties() > :44: error: not found: type Properties > val connectionProperties = new Properties() > {quote} -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org For additional commands, e-mail: issues-help@spark.apache.org