Skip to content

Latest commit

 

History

History
172 lines (114 loc) · 8.9 KB

CHANGELOG.md

File metadata and controls

172 lines (114 loc) · 8.9 KB

Changelog

0.11.0 - 2023-11-20

0.10.0 - 2023-07-05

Fixed

Fixed an issue where SQL Client did not work with the connector at Flink 1.16.

This required a change to use a different classloader in the lookup join processing. 
As well as the classloader change, a change to the PrefixedConfigOption implementation was
required, because it was implemented as an extension to ConfigOption; which produced  
access errors when trying to access the parent class protected methods (the parent class was loaded 
using a different classloader). The new implementation is not an extension; instead it holds an
instance of the ConfigOption as a private variable and uses reflection to instantiate a cloned 
ConfigOption object with the prefixed key. 

Added

  • Add support for batch request submission in HTTP sink. The mode can be changed by setting gid.connector.http.sink.writer.request.mode with value single or batch. The default value is batch bode which is breaking change comparing to previous versions. Additionally, gid.connector.http.sink.request.batch.size option can be used to set batch size. By default, batch size is 500 which is same as default value of HttpSink maxBatchSize parameter.

Changed

  • Changed API for public HttpSink builder. The setHttpPostRequestCallback expects a PostRequestCallback of generic type HttpRequest instead HttpSinkRequestEntry.
  • Changed HTTP sink request and response processing thread pool sizes from 16 to 1.

0.9.0 - 2023-02-10

0.8.1 - 2022-12-22

Fixed

Removed

  • Removed unused reference to EncodingFormat from HttpLookupTableSource

0.8.0 - 2022-12-06

Added

  • Add new parameters for HTTP timeout configuration and thread pool size for Sink and Lookup source http requests.

Fixed

  • Fix issue with not cleaning Flink's internal task queue for AsyncIO requests after HTTP timeout in Lookup source - getindata#38

0.7.0 - 2022-10-27

  • Add to Lookup Source support for performing lookup on columns with complex types such as ROW, Map etc.
  • Add support for custom Json Serialization format for SQL Lookup Source when using GenericJsonQueryCreator The custom format can be defined using Flink's Factory mechanism. The format name can be defined using lookup-request.format option. The default format is json which means that connector will use FLink's json-format

0.6.0 - 2022-10-05

Added

  • Add support for other REST methods like PUT and POST to lookup source connector. The request method can be set using new optional lookup-source property lookup-method. If property is not specified in table DDL, GET method will be used for lookup queries.

0.5.0 - 2022-09-22

Added

  • Add Http Header value preprocessor mechanism, that can preprocess defined header value before setting it on the request.
  • Allow user to specify Authorization header for Basic Authentication. The value will be converted to Base64, or if it starts from prefix Basic , it will be used as is (without any extra modification).
  • Add TLS and mTLS support for Http Sink and Lookup Source connectors.
    New properties are:
    • gid.connector.http.security.cert.server - path to server's certificate.
    • gid.connector.http.security.cert.client - path to connector's certificate.
    • gid.connector.http.security.key.client - path to connector's private key.
    • gid.connector.http.security.cert.server.allowSelfSigned - allowing for self-signed certificates without adding them to KeyStore (not recommended for a production).
  • Add LookupQueryCreator and LookupQueryCreatorFactory interfaces (along with a "default" GenericGetQueryCreator implementation) for customization of queries prepared by Lookup Source for its HTTP requests.
  • Add ElasticSearchLiteQueryCreator that prepares q parameter query using Lucene query string syntax (in first versions of ElasticSearch called Search Lite).

0.4.0 - 2022-08-31

Added

  • Add new properties gid.connector.http.sink.error.code,gid.connector.http.sink.error.code.exclude, gid.connector.http.source.lookup.error.code and gid.connector.http.source.lookup.error.code.exclude to set HTTP status codes that should be interpreted as errors both for HTTP Sink and HTTP Lookup Source.
  • Use Flink's format support to Http Lookup Source.
  • Add HTTP Lookup source client header configuration via properties.
  • Add HttpPostRequestCallback and HttpPostRequestCallbackFactory interfaces (along with a "default" Slf4jHttpPostRequestCallback implementation) for customizable processing of HTTP Sink requests and responses in Table API.

Changed

  • Change dependency scope for org.apache.flink.flink-connector-base from compile to provided.
  • Changed DDL of rest-lookup connector. Dropped json-path properties, and add mandatory format property.

Removed

  • Remove dependency on org.apache.httpcomponents.httpclientfrom production code. Dependency is only for test scope.
  • Removed dependency on com.jayway.jsonpath.json-path

Fixed

  • Fix JavaDoc errors.

0.3.0 - 2022-07-21

  • Package refactoring. Hide internal classes that does not have to be used by API users under "internal" package. Methods defined in classes located outside "internal" package are considered "public API". Any changes to those methods should be communicated as "not backward compatible" and should be avoided.
  • Add checkstyle configuration to "dev" folder. Add checkstyle check during maven build
  • Add HTTP sink client header configuration via properties.

0.2.0 - 2022-07-06

0.1.0 - 2022-05-26

  • Implement basic support for Http connector for Flink SQL