SuccessChanges

Summary

  1. [SPARK-32156][SPARK-31061][TESTS][SQL] Refactor two similar test cases (details)
  2. [SPARK-32130][SQL][FOLLOWUP] Enable timestamps inference in (details)
  3. [SPARK-32171][SQL][DOCS] Change file locations for use db and refresh (details)
Commit 0acad589e120cd777b25c03777a3cce4ef704422 by dongjoon
[SPARK-32156][SPARK-31061][TESTS][SQL] Refactor two similar test cases
from in HiveExternalCatalogSuite
### What changes were proposed in this pull request? 1.Merge two similar
tests for SPARK-31061 and make the code clean. 2.Fix table alter issue
due to lose path.
### Why are the changes needed? Because this two tests for SPARK-31061
is very similar and could be merged. And the first test case should use
`rawTable` instead of `parquetTable` to alter.
### Does this PR introduce _any_ user-facing change? No
### How was this patch tested? Unit test.
Closes #28980 from TJX2014/master-follow-merge-spark-31061-test-case.
Authored-by: TJX2014 <xiaoxingstack@gmail.com> Signed-off-by: Dongjoon
Hyun <dongjoon@apache.org>
The file was modifiedsql/hive/src/test/scala/org/apache/spark/sql/hive/HiveExternalCatalogSuite.scala (diff)
Commit 42f01e314b4874236544cc8b94bef766269385ee by dongjoon
[SPARK-32130][SQL][FOLLOWUP] Enable timestamps inference in
JsonBenchmark
### What changes were proposed in this pull request? Set the JSON option
`inferTimestamp` to `true` for the cases that measure perf of timestamp
inference.
### Why are the changes needed? The PR
https://github.com/apache/spark/pull/28966 disabled timestamp inference
by default. As a consequence, some benchmarks don't measure perf of
timestamp inference from JSON fields. This PR explicitly enable such
inference.
### Does this PR introduce _any_ user-facing change? No
### How was this patch tested? By re-generating results of
`JsonBenchmark`.
Closes #28981 from
MaxGekk/json-inferTimestamps-disable-by-default-followup.
Authored-by: Max Gekk <max.gekk@gmail.com> Signed-off-by: Dongjoon Hyun
<dongjoon@apache.org>
The file was modifiedsql/core/src/test/scala/org/apache/spark/sql/execution/datasources/json/JsonBenchmark.scala (diff)
The file was modifiedsql/core/benchmarks/JsonBenchmark-jdk11-results.txt (diff)
The file was modifiedsql/core/benchmarks/JsonBenchmark-results.txt (diff)
Commit 492d5d174a435c624bd87af9ee3621f4f1c8d1c5 by huaxing
[SPARK-32171][SQL][DOCS] Change file locations for use db and refresh
table
### What changes were proposed in this pull request?
docs/sql-ref-syntax-qry-select-usedb.md ->
docs/sql-ref-syntax-ddl-usedb.md
docs/sql-ref-syntax-aux-refresh-table.md ->
docs/sql-ref-syntax-aux-cache-refresh-table.md
### Why are the changes needed? usedb belongs to DDL. Its location
should be consistent with other DDL commands file locations similar
reason for refresh table
### Does this PR introduce _any_ user-facing change? before change, when
clicking USE DATABASE, the side bar menu shows select commands
<img width="1200" alt="Screen Shot 2020-07-04 at 9 05 35 AM"
src="https://user-images.githubusercontent.com/13592258/86516696-b45f8a80-bdd7-11ea-8dba-3a5cca22aad3.png">
after change, when clicking USE DATABASE, the side bar menu shows DDL
commands
<img width="1120" alt="Screen Shot 2020-07-04 at 9 06 06 AM"
src="https://user-images.githubusercontent.com/13592258/86516703-bf1a1f80-bdd7-11ea-8a90-ae7eaaafd44c.png">
before change, when clicking refresh table, the side bar menu shows
Auxiliary statements
<img width="1200" alt="Screen Shot 2020-07-04 at 9 30 40 AM"
src="https://user-images.githubusercontent.com/13592258/86516877-3d2af600-bdd9-11ea-9568-0a6f156f57da.png">
after change, when clicking refresh table, the side bar menu shows Cache
statements
<img width="1199" alt="Screen Shot 2020-07-04 at 9 35 21 AM"
src="https://user-images.githubusercontent.com/13592258/86516937-b4f92080-bdd9-11ea-8ad1-5f5a7f58d76b.png">
### How was this patch tested? Manually build and check
Closes #28995 from huaxingao/docs_fix.
Authored-by: Huaxin Gao <huaxing@us.ibm.com> Signed-off-by: Huaxin Gao
<huaxing@us.ibm.com>
The file was addeddocs/sql-ref-syntax-ddl-usedb.md
The file was modifieddocs/sql-ref-syntax.md (diff)
The file was modifieddocs/sql-ref-syntax-aux-cache-clear-cache.md (diff)
The file was addeddocs/sql-ref-syntax-aux-cache-refresh-table.md
The file was modifieddocs/sql-ref-syntax-aux-cache-refresh.md (diff)
The file was removeddocs/sql-ref-syntax-qry-select-usedb.md
The file was modifieddocs/sql-ref-syntax-aux-cache-cache-table.md (diff)
The file was modifieddocs/_data/menu-sql.yaml (diff)
The file was modifieddocs/sql-ref-syntax-aux-cache.md (diff)
The file was removeddocs/sql-ref-syntax-aux-refresh-table.md
The file was modifieddocs/sql-ref-syntax-aux-cache-uncache-table.md (diff)
The file was modifieddocs/sql-ref-syntax-ddl.md (diff)