diff options
author | jiangxingbo <jiangxb1987@gmail.com> | 2016-08-24 23:36:04 -0700 |
---|---|---|
committer | Reynold Xin <rxin@databricks.com> | 2016-08-24 23:36:04 -0700 |
commit | 5f02d2e5b4d37f554629cbd0e488e856fffd7b6b (patch) | |
tree | 00d1c3d44c017f3960888b37c15b08ec2c6d603e /sql/core | |
parent | 4d0706d616176dc29ff3562e40cb00dd4eb9c302 (diff) | |
download | spark-5f02d2e5b4d37f554629cbd0e488e856fffd7b6b.tar.gz spark-5f02d2e5b4d37f554629cbd0e488e856fffd7b6b.tar.bz2 spark-5f02d2e5b4d37f554629cbd0e488e856fffd7b6b.zip |
[SPARK-17215][SQL] Method `SQLContext.parseDataType(dataTypeString: String)` could be removed.
## What changes were proposed in this pull request?
Method `SQLContext.parseDataType(dataTypeString: String)` could be removed, we should use `SparkSession.parseDataType(dataTypeString: String)` instead.
This require updating PySpark.
## How was this patch tested?
Existing test cases.
Author: jiangxingbo <jiangxb1987@gmail.com>
Closes #14790 from jiangxb1987/parseDataType.
Diffstat (limited to 'sql/core')
-rw-r--r-- | sql/core/src/main/scala/org/apache/spark/sql/SQLContext.scala | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/sql/core/src/main/scala/org/apache/spark/sql/SQLContext.scala b/sql/core/src/main/scala/org/apache/spark/sql/SQLContext.scala index e7627ac2c9..fbf22197a1 100644 --- a/sql/core/src/main/scala/org/apache/spark/sql/SQLContext.scala +++ b/sql/core/src/main/scala/org/apache/spark/sql/SQLContext.scala @@ -743,16 +743,6 @@ class SQLContext private[sql](val sparkSession: SparkSession) sparkSession.catalog.listTables(databaseName).collect().map(_.name) } - /** - * Parses the data type in our internal string representation. The data type string should - * have the same format as the one generated by `toString` in scala. - * It is only used by PySpark. - */ - // TODO: Remove this function (would require updating PySpark). - private[sql] def parseDataType(dataTypeString: String): DataType = { - DataType.fromJson(dataTypeString) - } - //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// // Deprecated methods |