You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-1Lines changed: 12 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -153,9 +153,12 @@ POST, PUT and GET operations. This query creator allows you to issue json reques
153
153
your own custom http connector. The mappings from columns to the json request are supplied in the query creator configuration
154
154
parameters `gid.connector.http.request.query-param-fields`, `gid.connector.http.request.body-fields` and `gid.connector.http.request.url-map`.
155
155
156
+
### Format considerations
157
+
158
+
#### For http requests
156
159
In order to use custom format, user has to specify option `'lookup-request.format' = 'customFormatName'`, where `customFormatName` is the identifier of custom format factory.
157
160
158
-
Additionally, it is possible to pass query format options from table's DDL.
161
+
Additionally, it is possible to pass custom query format options from table's DDL.
159
162
This can be done by using option like so: `'lookup-request.format.customFormatName.customFormatProperty' = 'propertyValue'`, for example
With default configuration, Flink-Json format is used for `GenericGetQueryCreator`, all options defined in [json-format](https://nightlies.apache.org/flink/flink-docs-master/docs/connectors/table/formats/json/)
167
170
can be passed through table DDL. For example `'lookup-request.format.json.fail-on-missing-field' = 'true'`. In this case, format identifier is `json`.
168
171
172
+
#### For http responses
173
+
Specify your format options at the top level. For example:
174
+
```roomsql
175
+
'format' = 'json',
176
+
'json.ignore-parse-errors' = 'true',
177
+
```
178
+
179
+
169
180
#### Timeouts
170
181
Lookup Source is guarded by two timeout timers. First one is specified by Flink's AsyncIO operator that executes `AsyncTableFunction`.
171
182
The default value of this timer is set to 3 minutes and can be changed via `table.exec.async-lookup.timeout`[option](https://nightlies.apache.org/flink/flink-docs-master/docs/dev/table/config/#table-exec-async-lookup-timeout).
0 commit comments