Vitor Leal
07/05/2023, 8:02 AMDESCRIBE a table that's already part of a job (not in the execution environment)?Martijn Visser
07/05/2023, 8:03 AMVitor Leal
07/05/2023, 8:07 AMCREATE TABLE a ...
CREATE TABLE b ...
CREATE TABLE c ...
and then I publish a job:
EXECUTE STATEMENT SET
BEGIN
INSERT INTO c ...
END
is there any way I can use the DESCRIBE statement (https://nightlies.apache.org/flink/flink-docs-master/docs/dev/table/sql/describe/) in any of these tables through the job itself?Vitor Leal
07/05/2023, 8:08 AMMartijn Visser
07/05/2023, 8:09 AMVitor Leal
07/05/2023, 8:11 AMMartijn Visser
07/05/2023, 8:13 AMTable resultTable =
tableEnv.sqlQuery(
String.join(
"\n",
"SELECT t_id, c_name, CAST(t_amount AS DECIMAL(5, 2))",
"FROM Customers",
"JOIN (SELECT DISTINCT * FROM Transactions) ON c_id = t_customer_id"));
But then with a DESCRIBE statement. Not 100% sure though