You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by cloud-fan <gi...@git.apache.org> on 2016/03/30 11:45:33 UTC

[GitHub] spark pull request: [SPARK-14270][SQL] whole stage codegen for typ...

GitHub user cloud-fan opened a pull request:

    https://github.com/apache/spark/pull/12061

    [SPARK-14270][SQL] whole stage codegen for typed filter

    ## What changes were proposed in this pull request?
    
    We implement typed filter by `MapPartitions`, which doesn't work well with whole stage codegen. This PR use `Filter` to implement typed filter and we can get the whole stage codegen support for free.
    
    
    ## How was this patch tested?
    
    existing tests.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/cloud-fan/spark whole-stage-codegen

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/12061.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #12061
    
----
commit be182a9e6fae64750e051843e1e87de7194df690
Author: Wenchen Fan <we...@databricks.com>
Date:   2016-03-30T09:40:42Z

    whole stage codegen for typed filter

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-14270][SQL] whole stage codegen support...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/12061#issuecomment-206138075
  
    **[Test build #55087 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/55087/consoleFull)** for PR 12061 at commit [`98744f0`](https://github.com/apache/spark/commit/98744f056ea4ca5450137b78a6212dd7536a2615).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds no public classes.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-14270][SQL] whole stage codegen support...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/12061#issuecomment-203797122
  
    **[Test build #54600 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/54600/consoleFull)** for PR 12061 at commit [`bf9f5b5`](https://github.com/apache/spark/commit/bf9f5b53c28566674e47f8146ed9f53248dfcea6).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds the following public classes _(experimental)_:
      * `            s\"Unable to generate an encoder for inner class `$`


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-14270][SQL] whole stage codegen support...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/12061#issuecomment-206688937
  
    Merged build finished. Test FAILed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-14270][SQL] whole stage codegen support...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/12061#issuecomment-206644747
  
    **[Test build #55172 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/55172/consoleFull)** for PR 12061 at commit [`cabe067`](https://github.com/apache/spark/commit/cabe067d427b98d29660585b00f3eb01bad6c637).


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-14270][SQL] whole stage codegen support...

Posted by viirya <gi...@git.apache.org>.
Github user viirya commented on a diff in the pull request:

    https://github.com/apache/spark/pull/12061#discussion_r57865242
  
    --- Diff: sql/core/src/main/scala/org/apache/spark/sql/Dataset.scala ---
    @@ -1860,7 +1860,12 @@ class Dataset[T] private[sql](
        * @since 1.6.0
        */
       @Experimental
    -  def filter(func: T => Boolean): Dataset[T] = mapPartitions(_.filter(func))
    +  def filter(func: T => Boolean): Dataset[T] = {
    +    val deserializer = unresolvedTEncoder.deserializer
    +    val function = Literal.create(func, ObjectType(classOf[Function1[T, Boolean]]))
    +    val condition = Invoke(function, "apply", BooleanType, deserializer :: Nil)
    +    withTypedPlan(Filter(condition, logicalPlan))
    --- End diff --
    
    Because it involves extra deserialization step, will it get performance benefit?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-14270][SQL] whole stage codegen support...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/12061#issuecomment-206671091
  
    Merged build finished. Test PASSed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-14270][SQL] whole stage codegen support...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/12061#issuecomment-206405918
  
    **[Test build #55110 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/55110/consoleFull)** for PR 12061 at commit [`0fcaa06`](https://github.com/apache/spark/commit/0fcaa06359e383a31e3d256e0fa9b18e4ff682e4).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds no public classes.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-14270][SQL] whole stage codegen support...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/12061#issuecomment-203437009
  
    **[Test build #54520 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/54520/consoleFull)** for PR 12061 at commit [`c5b1fc3`](https://github.com/apache/spark/commit/c5b1fc3f8f046b99c0c2a3134c0fd0c135941a1f).


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-14270][SQL] whole stage codegen support...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/12061#issuecomment-206670862
  
    **[Test build #55172 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/55172/consoleFull)** for PR 12061 at commit [`cabe067`](https://github.com/apache/spark/commit/cabe067d427b98d29660585b00f3eb01bad6c637).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds no public classes.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-14270][SQL] whole stage codegen support...

Posted by cloud-fan <gi...@git.apache.org>.
Github user cloud-fan commented on the pull request:

    https://github.com/apache/spark/pull/12061#issuecomment-206705299
  
    retest this please


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-14270][SQL] whole stage codegen support...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/12061#issuecomment-203353866
  
    **[Test build #54510 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/54510/consoleFull)** for PR 12061 at commit [`be182a9`](https://github.com/apache/spark/commit/be182a9e6fae64750e051843e1e87de7194df690).
     * This patch **fails to build**.
     * This patch merges cleanly.
     * This patch adds the following public classes _(experimental)_:
      * `                s\"Unable to generate an encoder for inner class `$`


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-14270][SQL] whole stage codegen support...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/12061#issuecomment-206363012
  
    **[Test build #55110 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/55110/consoleFull)** for PR 12061 at commit [`0fcaa06`](https://github.com/apache/spark/commit/0fcaa06359e383a31e3d256e0fa9b18e4ff682e4).


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-14270][SQL] whole stage codegen support...

Posted by cloud-fan <gi...@git.apache.org>.
Github user cloud-fan commented on the pull request:

    https://github.com/apache/spark/pull/12061#issuecomment-206320506
  
    generated code for a single filter
    ```
    case class Data(l: Long, s: String)
    Seq(Data(1, "a")).toDS().filter(d => d.l % 2 == 0)
    ```
    is:
    ```
    /* 032 */   protected void processNext() throws java.io.IOException {
    /* 033 */     /*** PRODUCE: Filter <function1>.apply */
    /* 034 */
    /* 035 */     /*** PRODUCE: INPUT */
    /* 036 */
    /* 037 */     while (inputadapter_input.hasNext()) {
    /* 038 */       InternalRow inputadapter_row = (InternalRow) inputadapter_input.next();
    /* 039 */       /*** CONSUME: Filter <function1>.apply */
    /* 040 */
    /* 041 */       /* input[0, bigint] */
    /* 042 */       long inputadapter_value = inputadapter_row.getLong(0);
    /* 043 */       /* input[1, string] */
    /* 044 */       boolean inputadapter_isNull1 = inputadapter_row.isNullAt(1);
    /* 045 */       UTF8String inputadapter_value1 = inputadapter_isNull1 ? null : (inputadapter_row.getUTF8String(1));
    /* 046 */
    /* 047 */       /* <function1>.apply */
    /* 048 */       /* <function1> */
    /* 049 */       /* expression: <function1> */
    /* 050 */       Object filter_obj = ((Expression) references[1]).eval(null);
    /* 051 */       scala.Function1 filter_value1 = (scala.Function1) filter_obj;
    /* 052 */       /* newInstance(class org.apache.spark.sql.execution.Data) */
    /* 053 */       /* assertnotnull(input[0, bigint], - field (class: "scala.Long", name: "l"), - root class: "org.apache.spark.sql.execution.Data") */
    /* 054 */       if (false) {
    /* 055 */         throw new RuntimeException((String) references[2]);
    /* 056 */       }
    /* 057 */       /* input[1, string].toString */
    /* 058 */       java.lang.String filter_value5 = inputadapter_isNull1 ? null : (java.lang.String) inputadapter_value1.toString();
    /* 059 */       boolean filter_isNull5 = filter_value5 == null;
    /* 060 */
    /* 061 */       final org.apache.spark.sql.execution.Data filter_value2 = new org.apache.spark.sql.execution.Data(inputadapter_value, filter_value5);
    /* 062 */       final boolean filter_isNull2 = false;
    /* 063 */       boolean filter_value = false ? false : (boolean) ((java.lang.Boolean)filter_value1.apply(filter_value2)).booleanValue();
    /* 064 */       if (false || !filter_value) continue;
    /* 065 */
    /* 066 */       filter_metricValue.add(1);
    /* 067 */
    /* 068 */       /*** CONSUME: WholeStageCodegen */
    /* 069 */
    /* 070 */       filter_holder.reset();
    /* 071 */
    /* 072 */       filter_rowWriter.zeroOutNullBytes();
    /* 073 */
    /* 074 */       filter_rowWriter.write(0, inputadapter_value);
    /* 075 */
    /* 076 */       if (inputadapter_isNull1) {
    /* 077 */         filter_rowWriter.setNullAt(1);
    /* 078 */       } else {
    /* 079 */         filter_rowWriter.write(1, inputadapter_value1);
    /* 080 */       }
    /* 081 */       filter_result.setTotalSize(filter_holder.totalSize());
    /* 082 */       append(filter_result);
    /* 083 */       if (shouldStop()) return;
    /* 084 */     }
    /* 085 */   }
    ```
    
    
    for back-to-back filters
    ```
    case class Data(l: Long, s: String)
    Seq(Data(1, "a")).toDS().filter(d => d.l % 2 == 0).filter(d => d.l % 2 == 0)
    ```
    is:
    ```
    /* 049 */   protected void processNext() throws java.io.IOException {
    /* 050 */     /*** PRODUCE: SerializeFromObject [input[0, object].l AS l#20L,staticinvoke(class org.apache.spark.unsafe.types.UTF8String, StringType, fromSt... */
    /* 051 */
    /* 052 */     /*** PRODUCE: Project [obj#15 AS obj#19] */
    /* 053 */
    /* 054 */     /*** PRODUCE: Filter (<function1>.apply && <function1>.apply) */
    /* 055 */
    /* 056 */     /*** PRODUCE: DeserializeToObject newInstance(class org.apache.spark.sql.execution.Data) AS obj#15 */
    /* 057 */
    /* 058 */     /*** PRODUCE: INPUT */
    /* 059 */
    /* 060 */     while (inputadapter_input.hasNext()) {
    /* 061 */       InternalRow inputadapter_row = (InternalRow) inputadapter_input.next();
    /* 062 */       /*** CONSUME: DeserializeToObject newInstance(class org.apache.spark.sql.execution.Data) AS obj#15 */
    /* 063 */       /* input[0, bigint] */
    /* 064 */       long inputadapter_value = inputadapter_row.getLong(0);
    /* 065 */       /* input[1, string] */
    /* 066 */       boolean inputadapter_isNull1 = inputadapter_row.isNullAt(1);
    /* 067 */       UTF8String inputadapter_value1 = inputadapter_isNull1 ? null : (inputadapter_row.getUTF8String(1));
    /* 068 */
    /* 069 */       /*** CONSUME: Filter (<function1>.apply && <function1>.apply) */
    /* 070 */
    /* 071 */       /* newInstance(class org.apache.spark.sql.execution.Data) */
    /* 072 */       /* assertnotnull(input[0, bigint], - field (class: "scala.Long", name: "l"), - root class: "org.apache.spark.sql.execution.Data") */
    /* 073 */       if (false) {
    /* 074 */         throw new RuntimeException((String) references[0]);
    /* 075 */       }
    /* 076 */       /* input[1, string].toString */
    /* 077 */       java.lang.String deserializetoobject_value3 = inputadapter_isNull1 ? null : (java.lang.String) inputadapter_value1.toString();
    /* 078 */       boolean deserializetoobject_isNull3 = deserializetoobject_value3 == null;
    /* 079 */
    /* 080 */       final org.apache.spark.sql.execution.Data deserializetoobject_value = new org.apache.spark.sql.execution.Data(inputadapter_value, deserializetoobject_value3);
    /* 081 */       final boolean deserializetoobject_isNull = false;
    /* 082 */
    /* 083 */       /* <function1>.apply */
    /* 084 */       /* <function1> */
    /* 085 */       /* expression: <function1> */
    /* 086 */       Object filter_obj = ((Expression) references[2]).eval(null);
    /* 087 */       scala.Function1 filter_value1 = (scala.Function1) filter_obj;
    /* 088 */
    /* 089 */       boolean filter_value = false ? false : (boolean) ((java.lang.Boolean)filter_value1.apply(deserializetoobject_value)).booleanValue();
    /* 090 */       if (false || !filter_value) continue;
    /* 091 */       /* <function1>.apply */
    /* 092 */       /* <function1> */
    /* 093 */       /* expression: <function1> */
    /* 094 */       Object filter_obj1 = ((Expression) references[3]).eval(null);
    /* 095 */       scala.Function1 filter_value4 = (scala.Function1) filter_obj1;
    /* 096 */
    /* 097 */       boolean filter_value3 = false ? false : (boolean) ((java.lang.Boolean)filter_value4.apply(deserializetoobject_value)).booleanValue();
    /* 098 */       if (false || !filter_value3) continue;
    /* 099 */
    /* 100 */       filter_metricValue.add(1);
    /* 101 */
    /* 102 */       /*** CONSUME: Project [obj#15 AS obj#19] */
    /* 103 */
    /* 104 */       /*** CONSUME: SerializeFromObject [input[0, object].l AS l#20L,staticinvoke(class org.apache.spark.unsafe.types.UTF8String, StringType, fromSt... */
    /* 105 */
    /* 106 */       /*** CONSUME: WholeStageCodegen */
    /* 107 */
    /* 108 */       /* input[0, object].l */
    /* 109 */       long serializefromobject_value = deserializetoobject_isNull ? -1L : (long) deserializetoobject_value.l();
    /* 110 */       /* staticinvoke(class org.apache.spark.unsafe.types.UTF8String, StringType, fromString, input[0, object].s, true) */
    /* 111 */       /* input[0, object].s */
    /* 112 */       java.lang.String serializefromobject_value3 = deserializetoobject_isNull ? null : (java.lang.String) deserializetoobject_value.s();
    /* 113 */       boolean serializefromobject_isNull3 = serializefromobject_value3 == null;
    /* 114 */
    /* 115 */       boolean serializefromobject_isNull2 = !!(serializefromobject_isNull3);
    /* 116 */       UTF8String serializefromobject_value2 = null;
    /* 117 */
    /* 118 */       if (!(serializefromobject_isNull3)) {
    /* 119 */         serializefromobject_value2 = org.apache.spark.unsafe.types.UTF8String.fromString(serializefromobject_value3);
    /* 120 */         serializefromobject_isNull2 = serializefromobject_value2 == null;
    /* 121 */       }
    /* 122 */       serializefromobject_holder.reset();
    /* 123 */
    /* 124 */       serializefromobject_rowWriter.zeroOutNullBytes();
    /* 125 */
    /* 126 */       if (deserializetoobject_isNull) {
    /* 127 */         serializefromobject_rowWriter.setNullAt(0);
    /* 128 */       } else {
    /* 129 */         serializefromobject_rowWriter.write(0, serializefromobject_value);
    /* 130 */       }
    /* 131 */
    /* 132 */       if (serializefromobject_isNull2) {
    /* 133 */         serializefromobject_rowWriter.setNullAt(1);
    /* 134 */       } else {
    /* 135 */         serializefromobject_rowWriter.write(1, serializefromobject_value2);
    /* 136 */       }
    /* 137 */       serializefromobject_result.setTotalSize(serializefromobject_holder.totalSize());
    /* 138 */       append(serializefromobject_result);
    /* 139 */       if (shouldStop()) return;
    /* 140 */     }
    /* 141 */   }
    ```


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-14270][SQL] whole stage codegen support...

Posted by cloud-fan <gi...@git.apache.org>.
Github user cloud-fan commented on the pull request:

    https://github.com/apache/spark/pull/12061#issuecomment-206391652
  
    cc @davies 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-14270][SQL] whole stage codegen support...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/12061#issuecomment-206382592
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/55109/
    Test PASSed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-14270][SQL] whole stage codegen support...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/12061#issuecomment-203482226
  
    Merged build finished. Test PASSed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-14270][SQL] whole stage codegen support...

Posted by cloud-fan <gi...@git.apache.org>.
Github user cloud-fan commented on the pull request:

    https://github.com/apache/spark/pull/12061#issuecomment-203350994
  
    cc @marmbrus @rxin @davies @yhuai @liancheng 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-14270][SQL] whole stage codegen support...

Posted by rxin <gi...@git.apache.org>.
Github user rxin commented on a diff in the pull request:

    https://github.com/apache/spark/pull/12061#discussion_r57973333
  
    --- Diff: sql/core/src/test/scala/org/apache/spark/sql/execution/WholeStageCodegenSuite.scala ---
    @@ -70,4 +70,13 @@ class WholeStageCodegenSuite extends SparkPlanTest with SharedSQLContext {
             p.asInstanceOf[WholeStageCodegen].child.isInstanceOf[Sort]).isDefined)
         assert(df.collect() === Array(Row(1), Row(2), Row(3)))
       }
    +
    +  test("typed filter should be included in WholeStageCodegen") {
    +    val ds = sqlContext.range(10).filter(_ % 2 == 0)
    --- End diff --
    
    this is a risky thing because as soon as we introduce https://issues.apache.org/jira/browse/SPARK-14083 this test will be useless.
    
    maybe we should introduce a config option now and then explicitly turn off that future optimization
    
    cc @JoshRosen  - any good names for the config option?



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-14270][SQL] whole stage codegen support...

Posted by cloud-fan <gi...@git.apache.org>.
Github user cloud-fan commented on the pull request:

    https://github.com/apache/spark/pull/12061#issuecomment-206686319
  
    cc @marmbrus , do you have time to take a look? thx!


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-14270][SQL] whole stage codegen support...

Posted by yhuai <gi...@git.apache.org>.
Github user yhuai commented on the pull request:

    https://github.com/apache/spark/pull/12061#issuecomment-207147518
  
    Thanks! Merging to master.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-14270][SQL] whole stage codegen support...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/12061#issuecomment-203481825
  
    **[Test build #54520 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/54520/consoleFull)** for PR 12061 at commit [`c5b1fc3`](https://github.com/apache/spark/commit/c5b1fc3f8f046b99c0c2a3134c0fd0c135941a1f).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds the following public classes _(experimental)_:
      * `                s\"Unable to generate an encoder for inner class `$`


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-14270][SQL] whole stage codegen support...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/12061#issuecomment-205687976
  
    Merged build finished. Test PASSed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-14270][SQL] whole stage codegen support...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/12061#issuecomment-205687506
  
    **[Test build #54957 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/54957/consoleFull)** for PR 12061 at commit [`892bdd3`](https://github.com/apache/spark/commit/892bdd3e603b35d3c119b1bcf300458581c5a656).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds no public classes.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-14270][SQL] whole stage codegen support...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/12061#issuecomment-206706012
  
    **[Test build #55187 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/55187/consoleFull)** for PR 12061 at commit [`7f1e770`](https://github.com/apache/spark/commit/7f1e7704bc4c7ab1dae8d5b12d1ebcbfa3ff2750).


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-14270][SQL] whole stage codegen support...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/12061#issuecomment-206688923
  
    **[Test build #55177 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/55177/consoleFull)** for PR 12061 at commit [`7f1e770`](https://github.com/apache/spark/commit/7f1e7704bc4c7ab1dae8d5b12d1ebcbfa3ff2750).
     * This patch **fails MiMa tests**.
     * This patch merges cleanly.
     * This patch adds no public classes.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-14270][SQL] whole stage codegen support...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/12061#issuecomment-203774865
  
    **[Test build #54593 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/54593/consoleFull)** for PR 12061 at commit [`aa95fd6`](https://github.com/apache/spark/commit/aa95fd6fd0a6146cd9f41cd59dbfb7f58b6c17da).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds the following public classes _(experimental)_:
      * `          s\"Unable to generate an encoder for inner class `$`


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-14270][SQL] whole stage codegen support...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/12061#issuecomment-206138275
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/55087/
    Test PASSed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-14270][SQL] whole stage codegen support...

Posted by cloud-fan <gi...@git.apache.org>.
Github user cloud-fan commented on a diff in the pull request:

    https://github.com/apache/spark/pull/12061#discussion_r57889469
  
    --- Diff: sql/core/src/main/scala/org/apache/spark/sql/Dataset.scala ---
    @@ -1860,7 +1860,12 @@ class Dataset[T] private[sql](
        * @since 1.6.0
        */
       @Experimental
    -  def filter(func: T => Boolean): Dataset[T] = mapPartitions(_.filter(func))
    +  def filter(func: T => Boolean): Dataset[T] = {
    +    val deserializer = unresolvedTEncoder.deserializer
    +    val function = Literal.create(func, ObjectType(classOf[Function1[T, Boolean]]))
    +    val condition = Invoke(function, "apply", BooleanType, deserializer :: Nil)
    +    withTypedPlan(Filter(condition, logicalPlan))
    --- End diff --
    
    Previously we need to deserialize input row, call function and serialize to row, but now we don't need to do the final serialization, it should be faster.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-14270][SQL] whole stage codegen support...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/12061#issuecomment-203797655
  
    Merged build finished. Test PASSed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-14270][SQL] whole stage codegen support...

Posted by DeepSparkBot <gi...@git.apache.org>.
Github user DeepSparkBot commented on a diff in the pull request:

    https://github.com/apache/spark/pull/12061#discussion_r58147400
  
    --- Diff: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/objects.scala ---
    @@ -214,6 +216,14 @@ case class NewInstance(
     
       override def children: Seq[Expression] = arguments
     
    +  override lazy val resolved: Boolean = childrenResolved && !{
    +    // If the class to construct is an inner class, we need to get its outer pointer, or this
    +    // expression should be regarded as unresolved.
    +    // Note that static inner classes (e.g., inner classes within Scala objects) don't need
    +    // outer pointer registration.
    +    outerPointer.isEmpty && cls.isMemberClass && !Modifier.isStatic(cls.getModifiers)
    +  }
    --- End diff --
    
    Detected style violation.
    
    Suggested improvement:
    ```
    override lazy val resolved: Boolean = {
      // If the class to construct is an inner class, we need to get its outer pointer, or this
      // expression should be regarded as unresolved.
      // Note that static inner classes (e.g., inner classes within Scala objects) don't need
      // outer pointer registration.
      val innerStaticClass = outerPointer.isEmpty && cls.isMemberClass && !Modifier.isStatic(cls.getModifiers)
      childrenResolved && !innerStaticClass
    }
    ```


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-14270][SQL] whole stage codegen support...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/12061#issuecomment-203751600
  
    **[Test build #54593 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/54593/consoleFull)** for PR 12061 at commit [`aa95fd6`](https://github.com/apache/spark/commit/aa95fd6fd0a6146cd9f41cd59dbfb7f58b6c17da).


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-14270][SQL] whole stage codegen support...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/12061#issuecomment-206686578
  
    **[Test build #55177 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/55177/consoleFull)** for PR 12061 at commit [`7f1e770`](https://github.com/apache/spark/commit/7f1e7704bc4c7ab1dae8d5b12d1ebcbfa3ff2750).


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-14270][SQL] whole stage codegen support...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/12061#issuecomment-203351171
  
    **[Test build #54510 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/54510/consoleFull)** for PR 12061 at commit [`be182a9`](https://github.com/apache/spark/commit/be182a9e6fae64750e051843e1e87de7194df690).


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-14270][SQL] whole stage codegen support...

Posted by JoshRosen <gi...@git.apache.org>.
Github user JoshRosen commented on a diff in the pull request:

    https://github.com/apache/spark/pull/12061#discussion_r58147515
  
    --- Diff: sql/core/src/test/scala/org/apache/spark/sql/execution/WholeStageCodegenSuite.scala ---
    @@ -70,4 +70,13 @@ class WholeStageCodegenSuite extends SparkPlanTest with SharedSQLContext {
             p.asInstanceOf[WholeStageCodegen].child.isInstanceOf[Sort]).isDefined)
         assert(df.collect() === Array(Row(1), Row(2), Row(3)))
       }
    +
    +  test("typed filter should be included in WholeStageCodegen") {
    +    val ds = sqlContext.range(10).filter(_ % 2 == 0)
    --- End diff --
    
    Alternatively, we could have a special function wrapper which makes the code un-expression-convertable.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-14270][SQL] whole stage codegen support...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/12061#issuecomment-203770531
  
    **[Test build #54600 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/54600/consoleFull)** for PR 12061 at commit [`bf9f5b5`](https://github.com/apache/spark/commit/bf9f5b53c28566674e47f8146ed9f53248dfcea6).


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-14270][SQL] whole stage codegen support...

Posted by cloud-fan <gi...@git.apache.org>.
Github user cloud-fan commented on the pull request:

    https://github.com/apache/spark/pull/12061#issuecomment-206350054
  
    The benchmark result for master is:
    ```
    back-to-back filter:                Best/Avg Time(ms)    Rate(M/s)   Per Row(ns)   Relative
    -------------------------------------------------------------------------------------------
    Dataset                                   706 /  791         14.2          70.6       1.0X
    DataFrame                                  58 /   68        173.2           5.8      12.2X
    RDD                                       204 /  217         48.9          20.4       3.5X
    ```
    The original version is actually a little faster, (much faster than the back-to-back map case, which takes about 2500ms as Average time), still investigating why.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-14270][SQL] whole stage codegen support...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/12061#issuecomment-206726333
  
    **[Test build #55187 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/55187/consoleFull)** for PR 12061 at commit [`7f1e770`](https://github.com/apache/spark/commit/7f1e7704bc4c7ab1dae8d5b12d1ebcbfa3ff2750).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds no public classes.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-14270][SQL] whole stage codegen support...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/12061#issuecomment-206118365
  
    **[Test build #55087 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/55087/consoleFull)** for PR 12061 at commit [`98744f0`](https://github.com/apache/spark/commit/98744f056ea4ca5450137b78a6212dd7536a2615).


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-14270][SQL] whole stage codegen support...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/12061#issuecomment-206726786
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/55187/
    Test PASSed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-14270][SQL] whole stage codegen support...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/12061#issuecomment-206671092
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/55172/
    Test PASSed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-14270][SQL] whole stage codegen support...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/12061#issuecomment-203482229
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/54520/
    Test PASSed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-14270][SQL] whole stage codegen support...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/12061#issuecomment-203353876
  
    Merged build finished. Test FAILed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-14270][SQL] whole stage codegen support...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/spark/pull/12061


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-14270][SQL] whole stage codegen support...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/12061#issuecomment-206406436
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/55110/
    Test PASSed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-14270][SQL] whole stage codegen support...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/12061#issuecomment-206406430
  
    Merged build finished. Test PASSed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-14270][SQL] whole stage codegen support...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/12061#issuecomment-205687981
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/54957/
    Test PASSed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-14270][SQL] whole stage codegen support...

Posted by marmbrus <gi...@git.apache.org>.
Github user marmbrus commented on a diff in the pull request:

    https://github.com/apache/spark/pull/12061#discussion_r57974476
  
    --- Diff: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/Analyzer.scala ---
    @@ -526,6 +539,18 @@ class Analyzer(
           }
         }
     
    +    private def containsUnresolvedNewInstance(expr: Expression): Boolean = expr.find {
    +      case n: NewInstance if needOuterScope(n) => true
    +      case _ => false
    +    }.isDefined
    +
    +    private def needOuterScope(n: NewInstance): Boolean = {
    +      // If this is an inner class of another class, register the outer object in `OuterScopes`.
    +      // Note that static inner classes (e.g., inner classes within Scala objects) don't need
    +      // outer pointer registration.
    +      n.outerPointer.isEmpty && n.cls.isMemberClass && !Modifier.isStatic(n.cls.getModifiers)
    --- End diff --
    
    Could this go into `NewInstance`?  it seems like `resolved` should be `false` until this is satisfied.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-14270][SQL] whole stage codegen support...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/12061#issuecomment-203797660
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/54600/
    Test PASSed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-14270][SQL] whole stage codegen support...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/12061#issuecomment-206347912
  
    **[Test build #55109 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/55109/consoleFull)** for PR 12061 at commit [`92af545`](https://github.com/apache/spark/commit/92af545423fa6c854f3d3e073dddd8c2fcacd7bf).


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-14270][SQL] whole stage codegen support...

Posted by davies <gi...@git.apache.org>.
Github user davies commented on the pull request:

    https://github.com/apache/spark/pull/12061#issuecomment-206483814
  
    LGTM.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-14270][SQL] whole stage codegen support...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/12061#issuecomment-206138272
  
    Merged build finished. Test PASSed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-14270][SQL] whole stage codegen support...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/12061#issuecomment-206688939
  
    Test FAILed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/55177/
    Test FAILed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-14270][SQL] whole stage codegen support...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/12061#issuecomment-205655240
  
    **[Test build #54957 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/54957/consoleFull)** for PR 12061 at commit [`892bdd3`](https://github.com/apache/spark/commit/892bdd3e603b35d3c119b1bcf300458581c5a656).


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-14270][SQL] whole stage codegen support...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/12061#issuecomment-206382589
  
    Merged build finished. Test PASSed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-14270][SQL] whole stage codegen support...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/12061#issuecomment-206726781
  
    Merged build finished. Test PASSed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-14270][SQL] whole stage codegen support...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/12061#issuecomment-206382168
  
    **[Test build #55109 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/55109/consoleFull)** for PR 12061 at commit [`92af545`](https://github.com/apache/spark/commit/92af545423fa6c854f3d3e073dddd8c2fcacd7bf).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds no public classes.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-14270][SQL] whole stage codegen support...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/12061#issuecomment-203353881
  
    Test FAILed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/54510/
    Test FAILed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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