[3/3] spark git commit: [SPARK-15171][SQL] Remove the references to deprecated method dataset.registerTempTable
[SPARK-15171][SQL] Remove the references to deprecated method dataset.registerTempTable ## What changes were proposed in this pull request? Update the unit test code, examples, and documents to remove calls to deprecated method `dataset.registerTempTable`. ## How was this patch tested? This PR only changes the unit test code, examples, and comments. It should be safe. This is a follow up of PR https://github.com/apache/spark/pull/12945 which was merged. Author: Sean ZhongCloses #13098 from clockfly/spark-15171-remove-deprecation. (cherry picked from commit 25b315e6cad7c27b62dcaa2c194293c1115fdfb3) Signed-off-by: Cheng Lian Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/5f5270ea Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/5f5270ea Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/5f5270ea Branch: refs/heads/branch-2.0 Commit: 5f5270ead86d5294af6c871e36112e2a833e9d64 Parents: 1db3741 Author: Sean Zhong Authored: Wed May 18 09:01:59 2016 +0800 Committer: Cheng Lian Committed: Wed May 18 09:05:34 2016 +0800 -- docs/sql-programming-guide.md | 48 - docs/streaming-programming-guide.md | 12 +-- .../apache/spark/examples/sql/JavaSparkSQL.java | 8 +- .../streaming/JavaSqlNetworkWordCount.java | 2 +- examples/src/main/python/sql.py | 2 +- .../python/streaming/sql_network_wordcount.py | 2 +- .../apache/spark/examples/sql/RDDRelation.scala | 6 +- .../spark/examples/sql/hive/HiveFromSpark.scala | 4 +- .../streaming/SqlNetworkWordCount.scala | 2 +- .../org/apache/spark/ml/JavaPipelineSuite.java | 2 +- .../JavaLogisticRegressionSuite.java| 10 +- .../regression/JavaLinearRegressionSuite.java | 4 +- python/pyspark/sql/context.py | 4 +- python/pyspark/sql/readwriter.py| 2 +- python/pyspark/sql/session.py | 2 +- python/pyspark/sql/tests.py | 25 ++--- .../scala/org/apache/spark/sql/SQLContext.scala | 2 +- .../apache/spark/sql/JavaApplySchemaSuite.java | 8 +- .../spark/sql/sources/JavaSaveLoadSuite.java| 2 +- .../org/apache/spark/sql/CachedTableSuite.scala | 60 +-- .../spark/sql/ColumnExpressionSuite.scala | 2 +- .../spark/sql/DataFrameTimeWindowingSuite.scala | 2 +- .../apache/spark/sql/DataFrameWindowSuite.scala | 22 ++-- .../scala/org/apache/spark/sql/JoinSuite.scala | 4 +- .../org/apache/spark/sql/ListTablesSuite.scala | 4 +- .../org/apache/spark/sql/SQLContextSuite.scala | 2 +- .../org/apache/spark/sql/SQLQuerySuite.scala| 103 ++- .../sql/ScalaReflectionRelationSuite.scala | 10 +- .../org/apache/spark/sql/SubquerySuite.scala| 8 +- .../scala/org/apache/spark/sql/UDFSuite.scala | 12 +-- .../apache/spark/sql/UserDefinedTypeSuite.scala | 2 +- .../spark/sql/execution/PlannerSuite.scala | 10 +- .../benchmark/AggregateBenchmark.scala | 3 +- .../columnar/InMemoryColumnarQuerySuite.scala | 8 +- .../columnar/PartitionBatchPruningSuite.scala | 2 +- .../execution/datasources/json/JsonSuite.scala | 58 +-- .../ParquetPartitionDiscoverySuite.scala| 10 +- .../datasources/parquet/ParquetQuerySuite.scala | 4 +- .../parquet/ParquetReadBenchmark.scala | 20 ++-- .../datasources/parquet/TPCDSBenchmark.scala| 2 +- .../sql/execution/metric/SQLMetricsSuite.scala | 8 +- .../org/apache/spark/sql/jdbc/JDBCSuite.scala | 2 +- .../sql/sources/CreateTableAsSelectSuite.scala | 2 +- .../apache/spark/sql/sources/InsertSuite.scala | 6 +- .../spark/sql/sources/SaveLoadSuite.scala | 4 +- .../spark/sql/streaming/StreamSuite.scala | 2 +- .../org/apache/spark/sql/test/SQLTestData.scala | 46 - .../spark/sql/hive/JavaDataFrameSuite.java | 2 +- .../sql/hive/JavaMetastoreDataSourcesSuite.java | 2 +- .../spark/sql/hive/ErrorPositionSuite.scala | 4 +- .../spark/sql/hive/HiveParquetSuite.scala | 4 +- .../spark/sql/hive/HiveSparkSubmitSuite.scala | 8 +- .../sql/hive/InsertIntoHiveTableSuite.scala | 12 +-- .../sql/hive/MetastoreDataSourcesSuite.scala| 8 +- .../hive/ParquetHiveCompatibilitySuite.scala| 2 +- .../spark/sql/hive/QueryPartitionSuite.scala| 2 +- .../apache/spark/sql/hive/StatisticsSuite.scala | 2 +- .../org/apache/spark/sql/hive/UDFSuite.scala| 2 +- .../hive/execution/AggregationQuerySuite.scala | 8 +- .../sql/hive/execution/HiveExplainSuite.scala | 2 +- .../execution/HiveOperatorQueryableSuite.scala | 4 +- .../spark/sql/hive/execution/HivePlanTest.scala | 2 +- .../sql/hive/execution/HiveQuerySuite.scala
[3/3] spark git commit: [SPARK-15171][SQL] Remove the references to deprecated method dataset.registerTempTable
[SPARK-15171][SQL] Remove the references to deprecated method dataset.registerTempTable ## What changes were proposed in this pull request? Update the unit test code, examples, and documents to remove calls to deprecated method `dataset.registerTempTable`. ## How was this patch tested? This PR only changes the unit test code, examples, and comments. It should be safe. This is a follow up of PR https://github.com/apache/spark/pull/12945 which was merged. Author: Sean ZhongCloses #13098 from clockfly/spark-15171-remove-deprecation. Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/25b315e6 Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/25b315e6 Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/25b315e6 Branch: refs/heads/master Commit: 25b315e6cad7c27b62dcaa2c194293c1115fdfb3 Parents: b674e67 Author: Sean Zhong Authored: Wed May 18 09:01:59 2016 +0800 Committer: Cheng Lian Committed: Wed May 18 09:01:59 2016 +0800 -- docs/sql-programming-guide.md | 48 - docs/streaming-programming-guide.md | 12 +-- .../apache/spark/examples/sql/JavaSparkSQL.java | 8 +- .../streaming/JavaSqlNetworkWordCount.java | 2 +- examples/src/main/python/sql.py | 2 +- .../python/streaming/sql_network_wordcount.py | 2 +- .../apache/spark/examples/sql/RDDRelation.scala | 6 +- .../spark/examples/sql/hive/HiveFromSpark.scala | 4 +- .../streaming/SqlNetworkWordCount.scala | 2 +- .../org/apache/spark/ml/JavaPipelineSuite.java | 2 +- .../JavaLogisticRegressionSuite.java| 10 +- .../regression/JavaLinearRegressionSuite.java | 4 +- python/pyspark/sql/context.py | 4 +- python/pyspark/sql/readwriter.py| 2 +- python/pyspark/sql/session.py | 2 +- python/pyspark/sql/tests.py | 25 ++--- .../scala/org/apache/spark/sql/SQLContext.scala | 2 +- .../apache/spark/sql/JavaApplySchemaSuite.java | 8 +- .../spark/sql/sources/JavaSaveLoadSuite.java| 2 +- .../org/apache/spark/sql/CachedTableSuite.scala | 60 +-- .../spark/sql/ColumnExpressionSuite.scala | 2 +- .../spark/sql/DataFrameTimeWindowingSuite.scala | 2 +- .../apache/spark/sql/DataFrameWindowSuite.scala | 22 ++-- .../scala/org/apache/spark/sql/JoinSuite.scala | 4 +- .../org/apache/spark/sql/ListTablesSuite.scala | 4 +- .../org/apache/spark/sql/SQLContextSuite.scala | 2 +- .../org/apache/spark/sql/SQLQuerySuite.scala| 103 ++- .../sql/ScalaReflectionRelationSuite.scala | 10 +- .../org/apache/spark/sql/SubquerySuite.scala| 8 +- .../scala/org/apache/spark/sql/UDFSuite.scala | 12 +-- .../apache/spark/sql/UserDefinedTypeSuite.scala | 2 +- .../spark/sql/execution/PlannerSuite.scala | 10 +- .../benchmark/AggregateBenchmark.scala | 3 +- .../columnar/InMemoryColumnarQuerySuite.scala | 8 +- .../columnar/PartitionBatchPruningSuite.scala | 2 +- .../execution/datasources/json/JsonSuite.scala | 58 +-- .../ParquetPartitionDiscoverySuite.scala| 10 +- .../datasources/parquet/ParquetQuerySuite.scala | 4 +- .../parquet/ParquetReadBenchmark.scala | 20 ++-- .../datasources/parquet/TPCDSBenchmark.scala| 2 +- .../sql/execution/metric/SQLMetricsSuite.scala | 8 +- .../org/apache/spark/sql/jdbc/JDBCSuite.scala | 2 +- .../sql/sources/CreateTableAsSelectSuite.scala | 2 +- .../apache/spark/sql/sources/InsertSuite.scala | 6 +- .../spark/sql/sources/SaveLoadSuite.scala | 4 +- .../spark/sql/streaming/StreamSuite.scala | 2 +- .../org/apache/spark/sql/test/SQLTestData.scala | 46 - .../spark/sql/hive/JavaDataFrameSuite.java | 2 +- .../sql/hive/JavaMetastoreDataSourcesSuite.java | 2 +- .../spark/sql/hive/ErrorPositionSuite.scala | 4 +- .../spark/sql/hive/HiveParquetSuite.scala | 4 +- .../spark/sql/hive/HiveSparkSubmitSuite.scala | 8 +- .../sql/hive/InsertIntoHiveTableSuite.scala | 12 +-- .../sql/hive/MetastoreDataSourcesSuite.scala| 8 +- .../hive/ParquetHiveCompatibilitySuite.scala| 2 +- .../spark/sql/hive/QueryPartitionSuite.scala| 2 +- .../apache/spark/sql/hive/StatisticsSuite.scala | 2 +- .../org/apache/spark/sql/hive/UDFSuite.scala| 2 +- .../hive/execution/AggregationQuerySuite.scala | 8 +- .../sql/hive/execution/HiveExplainSuite.scala | 2 +- .../execution/HiveOperatorQueryableSuite.scala | 4 +- .../spark/sql/hive/execution/HivePlanTest.scala | 2 +- .../sql/hive/execution/HiveQuerySuite.scala | 18 ++-- .../hive/execution/HiveResolutionSuite.scala| 10 +- .../sql/hive/execution/HiveTableScanSuite.scala |