confluent flink statement create¶
Flags¶
--sql string REQUIRED: The Flink SQL statement.
--compute-pool string Flink compute pool ID.
--service-account string Service account ID.
--database string The database which will be used as the default database. When using Kafka, this is the cluster ID.
--wait Block until the statement is running or has failed.
--environment string Environment ID.
--context string CLI context name.
-o, --output string Specify the output format as "human", "json", or "yaml". (default "human")
Global Flags¶
-h, --help Show help for this command.
--unsafe-trace Equivalent to -vvvv, but also log HTTP requests and responses which might contain plaintext secrets.
-v, --verbose count Increase verbosity (-v for warn, -vv for info, -vvv for debug, -vvvv for trace).
Examples¶
Create a Flink SQL statement in the current compute pool.
confluent flink statement create --sql "SELECT * FROM table;"
Create a Flink SQL statement named “my-statement” in compute pool “lfcp-123456” with service account “sa-123456” and using Kafka cluster “my-cluster” as the default database.
confluent flink statement create my-statement --sql "SELECT * FROM my-topic;" --compute-pool lfcp-123456 --service-account sa-123456 --database my-cluster
See Also¶
- confluent flink statement - Manage Flink SQL statements.