Github user jiangxb1987 commented on the issue:

    https://github.com/apache/spark/pull/17152
  
    Hive report the error during alter view:
    ```
    hive> CREATE VIEW v1 AS SELECT * FROM t1;
    OK
    Time taken: 0.556 seconds
    hive> CREATE VIEW v2 AS SELECT * FROM v1;
    OK
    Time taken: 0.099 seconds
    hive> ALTER VIEW v1 AS SELECT * FROM v2;
    FAILED: SemanticException Recursive view default.v1 detected (cycle: 
default.v1 -> default.v2 -> default.v1).
    hive> CREATE VIEW v3 AS SELECT * FROM v2;
    OK
    Time taken: 0.354 seconds
    hive> ALTER VIEW v1 AS SELECT * FROM v3 JOIN v2;
    FAILED: SemanticException Recursive view default.v1 detected (cycle: 
default.v1 -> default.v3 -> default.v2 -> default.v1).
    ```


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

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

Reply via email to