SuccessChanges

Summary

  1. [MINOR][SQL][DOC] Fix `to_json` example in function description and doc (details)
  2. [SPARK-25051][SQL] FixNullability should not stop on AnalysisBarrier (details)
Commit 0856b82b37ab4cda4c34155a6d0aa40391d6fc72 by hyukjinkwon
[MINOR][SQL][DOC] Fix `to_json` example in function description and doc
## What changes were proposed in this pull request?
This PR fixes the an example for `to_json` in doc and function
description.
- http://spark.apache.org/docs/2.3.0/api/sql/#to_json
- `describe function extended`
## How was this patch tested?
Pass the Jenkins with the updated test.
Closes #22096 from dongjoon-hyun/minor_json.
Authored-by: Dongjoon Hyun <dongjoon@apache.org> Signed-off-by:
hyukjinkwon <gurwls223@apache.org>
(cherry picked from commit e2ab7deae76d3b6f41b9ad4d0ece14ea28db40ce)
Signed-off-by: hyukjinkwon <gurwls223@apache.org>
The file was modifiedsql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/jsonExpressions.scala (diff)
The file was modifiedsql/core/src/test/resources/sql-tests/results/json-functions.sql.out (diff)
Commit 34191e66360b987d5415397bd0b8a0c4c1c3dfef by gatorsmile
[SPARK-25051][SQL] FixNullability should not stop on AnalysisBarrier
## What changes were proposed in this pull request?
The introduction of `AnalysisBarrier` prevented `FixNullability` to go
through all the nodes. This introduced a bug, which can lead to wrong
results, as the nullability of the output attributes of an outer join
can be wrong.
The PR makes `FixNullability` going through the `AnalysisBarrier`s.
## How was this patch tested?
added UT
Author: Marco Gaido <marcogaido91@gmail.com>
Closes #22102 from mgaido91/SPARK-25051.
The file was modifiedsql/core/src/test/scala/org/apache/spark/sql/DataFrameSuite.scala (diff)
The file was modifiedsql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/Analyzer.scala (diff)