GitHub user gatorsmile opened a pull request:

    [SPARK-17751] [SQL] [Backport-2.0] Remove spark.sql.eagerAnalysis and 
Output the Plan if Existed in AnalysisException

    ### What changes were proposed in this pull request?
    This PR is to backport the fix 
to 2.0.
    Dataset always does eager analysis now. Thus, `spark.sql.eagerAnalysis` is 
not used any more. Thus, we need to remove it.
    This PR also outputs the plan. Without the fix, the analysis error is like
    cannot resolve '`k1`' given input columns: [k, v]; line 1 pos 12
    After the fix, the analysis error becomes:
    org.apache.spark.sql.AnalysisException: cannot resolve '`k1`' given input 
columns: [k, v]; line 1 pos 12;
    'Project [unresolvedalias(CASE WHEN ('k1 = 2) THEN 22 WHEN ('k1 = 4) THEN 
44 ELSE 0 END, None), v#6]
    +- SubqueryAlias t
       +- Project [_1#2 AS k#5, _2#3 AS v#6]
          +- LocalRelation [_1#2, _2#3]
    ### How was this patch tested?

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

    $ git pull eagerAnalysis20

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

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

    This closes #15529
commit ebc6f73f225dd008503b0df3b0e575f7f4696d08
Author: gatorsmile <>
Date:   2016-10-18T06:53:34Z



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 or file a JIRA ticket
with INFRA.

To unsubscribe, e-mail:
For additional commands, e-mail:

Reply via email to