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

    https://github.com/apache/spark/pull/22458#discussion_r219670142
  
    --- 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 --
    
    Can you write a test where `View Text` and `View Original Text` are 
different.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to