Skip to content
Snippets Groups Projects
Commit ad4832a9 authored by Reynold Xin's avatar Reynold Xin
Browse files

[SPARK-18216][SQL] Make Column.expr public

## What changes were proposed in this pull request?
Column.expr is private[sql], but it's an actually really useful field to have for debugging. We should open it up, similar to how we use QueryExecution.

## How was this patch tested?
N/A - this is a simple visibility change.

Author: Reynold Xin <rxin@databricks.com>

Closes #15724 from rxin/SPARK-18216.
parent 77a98162
No related branches found
No related tags found
No related merge requests found
......@@ -118,6 +118,9 @@ class TypedColumn[-T, U](
* $"a" === $"b"
* }}}
*
* Note that the internal Catalyst expression can be accessed via "expr", but this method is for
* debugging purposes only and can change in any future Spark releases.
*
* @groupname java_expr_ops Java-specific expression operators
* @groupname expr_ops Expression operators
* @groupname df_ops DataFrame functions
......@@ -126,7 +129,7 @@ class TypedColumn[-T, U](
* @since 1.3.0
*/
@InterfaceStability.Stable
class Column(protected[sql] val expr: Expression) extends Logging {
class Column(val expr: Expression) extends Logging {
def this(name: String) = this(name match {
case "*" => UnresolvedStar(None)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment