Github user gatorsmile commented on a diff in the pull request:

    https://github.com/apache/spark/pull/22458#discussion_r219727730
  
    --- Diff: 
sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveDDLSuite.scala 
---
    @@ -2348,4 +2348,17 @@ class HiveDDLSuite
           }
         }
       }
    +
    +  test("desc formatted table should also show viewOriginalText for views") 
{
    +    withView("v1") {
    +      sql("CREATE VIEW v1 AS SELECT 1 AS value")
    +      assert(sql("DESC FORMATTED v1").collect().containsSlice(
    +        Seq(
    +          Row("Type", "VIEW", ""),
    +          Row("View Text", "SELECT 1 AS value", ""),
    +          Row("View Original Text:", "SELECT 1 AS value", "")
    --- End diff --
    
    To do that, maybe using the Hive client to create a view, instead of Spark


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to