don't split lines on LSEP unicode characters when reading lines in destinations (#3327)
* use strict JSONL definition of new lines in destinations * failing test case * use next instead of nextLine * add \n in string for test * bump destination versions * bump to even newer version * bump versions in dockerfiles as well * force mysql test to pass
This commit is contained in:
@@ -120,11 +120,13 @@ public class IntegrationRunner {
|
||||
|
||||
@VisibleForTesting
|
||||
static void consumeWriteStream(AirbyteMessageConsumer consumer) throws Exception {
|
||||
final Scanner input = new Scanner(System.in);
|
||||
// use a Scanner that only processes new line characters to strictly abide with the
|
||||
// https://jsonlines.org/ standard
|
||||
final Scanner input = new Scanner(System.in).useDelimiter("[\r\n]+");
|
||||
try (consumer) {
|
||||
consumer.start();
|
||||
while (input.hasNextLine()) {
|
||||
final String inputString = input.nextLine();
|
||||
while (input.hasNext()) {
|
||||
final String inputString = input.next();
|
||||
final Optional<AirbyteMessage> singerMessageOptional = Jsons.tryDeserialize(inputString, AirbyteMessage.class);
|
||||
if (singerMessageOptional.isPresent()) {
|
||||
consumer.accept(singerMessageOptional.get());
|
||||
|
||||
Reference in New Issue
Block a user