Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/swtwsk/flink-array-row-bug
https://github.com/swtwsk/flink-array-row-bug
flink flink-sql
Last synced: 6 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/swtwsk/flink-array-row-bug
- Owner: swtwsk
- Created: 2022-07-19T09:07:14.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-07-19T11:03:36.000Z (over 2 years ago)
- Last Synced: 2024-11-14T15:12:56.650Z (2 months ago)
- Topics: flink, flink-sql
- Language: Java
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Flink Array Row Bug
This is a reproducer of a bug reported in [FLINK-28591](https://issues.apache.org/jira/browse/FLINK-28591).
## How to reproduce
Run
```shell
mvn clean install exec:java -Dexec.mainClass=com.github.swtwsk.FlinkArrayRowBugJob
```
and `cat` the file that got generated (named `part-...`).---
Although in the INSERT we tried to insert
```roomsql
array[
('Field1', 'Value1'),
('Field2', 'Value2')
]
```
in the JSON that got printed to the generated file we get duplicate of the last inserted row:
```json
"bar": [
{"foo1":"Field2", "foo2":"Value2"},
{"foo1":"Field2", "foo2":"Value2"}
]
```