-
- Downloads
[SPARK-19637][SQL] Add to_json in FunctionRegistry
## What changes were proposed in this pull request? This pr added entries in `FunctionRegistry` and supported `to_json` in SQL. ## How was this patch tested? Added tests in `JsonFunctionsSuite`. Author: Takeshi Yamamuro <yamamuro@apache.org> Closes #16981 from maropu/SPARK-19637.
Showing
- sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/FunctionRegistry.scala 3 additions, 0 deletions...apache/spark/sql/catalyst/analysis/FunctionRegistry.scala
- sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/jsonExpressions.scala 39 additions, 2 deletions...ache/spark/sql/catalyst/expressions/jsonExpressions.scala
- sql/core/src/test/resources/sql-tests/inputs/json-functions.sql 8 additions, 0 deletions...re/src/test/resources/sql-tests/inputs/json-functions.sql
- sql/core/src/test/resources/sql-tests/results/json-functions.sql.out 63 additions, 0 deletions...c/test/resources/sql-tests/results/json-functions.sql.out
- sql/core/src/test/scala/org/apache/spark/sql/JsonFunctionsSuite.scala 23 additions, 0 deletions.../test/scala/org/apache/spark/sql/JsonFunctionsSuite.scala
Please register or sign in to comment