Details
Description
Currently,
CREATE OR REPLACE VIEW t AS SELECT " + "struct(id AS `$col2`, struct(id AS `$col`) AS s1) AS s2 FROM RANGE(5) ALTER VIEW t SET TBLPROPERTIES ('x' = 'y')
would fail when calling HMS's updateTable, because HMS does not support nested struct in view. We can fix this by passing HMS an empty schema, since we store the actual view schema in the table's properties already. This fix is similar to https://github.com/apache/spark/pull/37364