Dynamic SQL hints
SQL hints in Cloudera SQL Stream Builder (SSB) let you use dynamic table options to change connector settings at query time.
Flink SQL dynamic table options let you set or override the options of a table inside a
query, without changing the table definition. Write the hint as a SQL comment with an
OPTIONS() clause:
/*+ OPTIONS('key1'='value1', 'key2'='value2') */
Place the hint directly after the table name. You can use a separate hint for each table in a query.
For example, the following query sets a different Kafka consumer group for each table:
SELECT t1.column_a, t2.column_b
FROM tableName_A /*+ OPTIONS('properties.group.id'='my_consumer_group') */ AS t1
JOIN tableName_B /*+ OPTIONS('properties.group.id'='my_other_consumer_group') */ AS t2
ON t1.column_a = t2.column_b;
You can override any option that the DDL of the connector accepts. To see the options of a connector, in the Explorer, under External Resources, open Connectors, and click the connector.
For more information, see Hints in the Apache Flink documentation.
