DELTA
does not have CREATE TABLE LIKE
. It does have CTAS
.
I want to copy the definition of a table only, but also specify the LOCATION
.
E.g. this does not work:
CREATE TABLE IF NOT EXISTS NEW_CUSTOMER_FEED
AS SELECT * from NEW_CUSTOMER_FEED WHERE 1 = 0
LOCATION '/atRest/data'
What am I missing?