[1.7.2] Fixed #24051 -- Backported code from master to 1.7.2.
Prevent table from being created in default schema when the
schema is specified.