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 AB1E71875D for ; Wed, 24 Feb 2016 18:30:18 +0000 (UTC) Received: (qmail 57836 invoked by uid 500); 24 Feb 2016 18:30:18 -0000 Delivered-To: apmail-spark-issues-archive@spark.apache.org Received: (qmail 57751 invoked by uid 500); 24 Feb 2016 18:30:18 -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 57719 invoked by uid 99); 24 Feb 2016 18:30:18 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Feb 2016 18:30:18 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 362812C1F62 for ; Wed, 24 Feb 2016 18:30:18 +0000 (UTC) Date: Wed, 24 Feb 2016 18:30:18 +0000 (UTC) From: "Apache Spark (JIRA)" To: issues@spark.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (SPARK-13473) Predicate can't be pushed through project with nondeterministic field 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-13473?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Apache Spark reassigned SPARK-13473: ------------------------------------ Assignee: Cheng Lian (was: Apache Spark) > Predicate can't be pushed through project with nondeterministic field > --------------------------------------------------------------------- > > Key: SPARK-13473 > URL: https://issues.apache.org/jira/browse/SPARK-13473 > Project: Spark > Issue Type: Bug > Components: SQL > Affects Versions: 1.5.2, 1.6.0, 2.0.0 > Reporter: Cheng Lian > Assignee: Cheng Lian > > The following Spark shell snippet reproduces this issue: > {code} > import org.apache.spark.sql.functions._ > val parallelism = 8 // Adjust this to default parallelism > val df = sqlContext. > range(2 * parallelism). // 8 partitions, 2 elements per partition > select( > col("id"), > monotonicallyIncreasingId().as("long_id") > ) > df.show() > // +---+-----------+ > // | id| long_id| > // +---+-----------+ > // | 0| 0| > // | 1| 1| > // | 2| 8589934592| > // | 3| 8589934593| > // | 4|17179869184| > // | 5|17179869185| > // | 6|25769803776| > // | 7|25769803777| > // | 8|34359738368| > // | 9|34359738369| > // | 10|42949672960| > // | 11|42949672961| > // | 12|51539607552| > // | 13|51539607553| > // | 14|60129542144| > // | 15|60129542145| > // +---+-----------+ > df. > filter(col("id") === 3). // 2nd element in the 2nd partition > show() > // +---+----------+ > // | id| long_id| > // +---+----------+ > // | 3|8589934592| > // +---+----------+ > {code} > {{monotonicallyIncreasingId}} is nondeterministic. -- 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