Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.2.0
    • 3.2.0
    • SQL
    • None

    Description

      The v2 `ALTER TABLE .. RENAME TO` command should rename a table in-place instead of moving it to the "root" namespace:

      sql("ALTER TABLE ns1.ns2.ns3.src_tbl RENAME TO dst_tbl")
      sql(s"SHOW TABLES IN $catalog").show(false)
      
      +---------+---------+-----------+
      |namespace|tableName|isTemporary|
      +---------+---------+-----------+
      |         |dst_tbl  |false      |
      +---------+---------+-----------+
      

      Attachments

        Activity

          People

            maxgekk Max Gekk
            maxgekk Max Gekk
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: