assertion failed: The table to be created must have a provider.
The optional AS query is defined when used for the following:
CreateTable can never be resolved and is replaced (resolved) with a logical command at analysis phase in the following rules:
(for non-hive data source tables) DataSourceAnalysis posthoc logical resolution rule to a CreateDataSourceTableCommand or a CreateDataSourceTableAsSelectCommand logical command (when the query was defined or not, respectively)
CreateTable takes the following to be created:
assertion failed: create table without data insertion can only use ErrorIfExists or Ignore as SaveMode.