snuyanzin opened a new pull request #18109:
URL: https://github.com/apache/flink/pull/18109
## What is the purpose of the change
The PR allows to specify the proportion of null values to generate with
DataGen per field,
like
```
CREATE TABLE Orders123 (
order_number STRING,
price DECIMAL(32,2),
buyer ROW<id INT, last_name STRING>,
order_time TIMESTAMP(3),
my_map MAP<INT,STRING>,
my_arrray ARRAY<STRING>
) WITH (
'connector' = 'datagen',
'fields.order_number.null-rate' = '0.7',
'fields.price.null-rate' = '1.0',
'fields.order_time.null-rate' = '0.5',
'fields.buyer.id.null-rate' = '0.5',
'fields.buyer.null-rate' = '0.5',
'fields.my_map.key.null-rate' = '0.5',
'fields.my_map.null-rate' = '0.5',
'fields.my_array.element.null-rate' = '0.1',
'fields.my_array.null-rate' = '0.5'
);
```
## Verifying this change
There have been added test cases to
_flink-table/flink-table-api-java-bridge/src/test/java/org/apache/flink/connector/datagen/table/types/DecimalDataRandomGeneratorTest.java_
## Does this pull request potentially affect one of the following parts:
- Dependencies (does it add or upgrade a dependency): (no)
- The public API, i.e., is any changed class annotated with
`@Public(Evolving)`: (no)
- The serializers: (no)
- The runtime per-record code paths (performance sensitive): (no)
- Anything that affects deployment or recovery: JobManager (and its
components), Checkpointing, Kubernetes/Yarn, ZooKeeper: (no)
- The S3 file system connector: (no)
## Documentation
- Does this pull request introduce a new feature? (yes)
- If yes, how is the feature documented? (docs)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]