Is there a way to do the `create table A like B` i...
# random
h
Is there a way to do the
create table A like B
in the Java API? I’m looking for something like:
Copy code
return TableDescriptor
    .forConnector("filesystem")
    .option("format", "parquet")
    .like(otherTable)
I know this can be done with sql, but I’d like to use the chaining syntax instead of building sql strings
m
You mean the syntax for a CREATE TABLE AS but then in Table API syntax?
h
The
create table as
doesn’t have support for things I’d like (partitions & watermarks, mostly), so I’m really more looking for
create table like
, but otherwise, yes
m
Gotcha
h
I tried just taking the schema, and setting that as my new table schema, but that includes the metadata columns that don’t make sense in the new context, so that doesn’t really work