HuangXingBo opened a new pull request #11881: URL: https://github.com/apache/flink/pull/11881
## What is the purpose of the change *Currently the default value for "python.fn-execution.bundle.size" is 1000 and the default value for "python.fn-execution.bundle.time" is 1000ms. This pull request will adjust the default value of bundle size and bundle time which works best in most scenarios.* ## Brief change log - *Adjust default value of python.fn-execution.bundle.size and python.fn-execution.bundle.time in PythonOptions.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/Mesos, ZooKeeper: (no) - The S3 file system connector: (no) ## Documentation - Does this pull request introduce a new feature? (no) - If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented) ## How does this patch test ### Test Code @udf(input_types=[DataTypes.STRING(False)], result_type=DataTypes.STRING(False)) def inc(x): import time time.sleep(10) return x t_env.register_function("inc", inc) #num_rows = 100000000 num_rows = 20000000 num = 1000 # every element will be prefix prefix = "1" * num # num_rows = 1 t_env.from_table_source(RangeStringTableSource(1, num_rows, 1, prefix)).alias("id") \ .select("inc(id)") \ .insert_into("sink") beg_time = time.time() t_env.execute("perf_test") print("consume time: " + str(time.time() - beg_time)) ## Test Data 4 Byte(30kw row data) 100 Byte(10kw row data) 1k Byte(2kw row data) ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org