This is an automated email from the ASF dual-hosted git repository. twalthr pushed a change to branch master in repository https://gitbox.apache.org/repos/asf/flink.git.
from efa3362 [FLINK-24232][coordination] Skip history server archiving for suspended jobs new 09aad58 [FLINK-24413][table] Apply trimming & padding when CASTing to CHAR/VARCHAR new b6ca017 [hotfix][table] Make use of VarCharType.STRING_TYPE new b0b68f1 [hotfix][table-planner][tests] Minor fixes to remove IDE warnings. new 4b1df49 [hotfix][table] Rename precision to length for CHAR/VARCHAR sink enforcer The 4 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference. Summary of changes: .../generated/execution_config_configuration.html | 4 +- .../table/api/config/ExecutionConfigOptions.java | 31 +- .../flink/table/types/logical/VarCharType.java | 2 + .../types/logical/utils/LogicalTypeParser.java | 2 +- .../apache/flink/table/types/DataTypesTest.java | 2 +- .../flink/table/types/LogicalCommonTypeTest.java | 4 +- .../flink/table/types/LogicalTypeParserTest.java | 2 +- .../types/extraction/DataTypeExtractorTest.java | 9 +- .../functions/casting/ArrayToStringCastRule.java | 187 +++++++----- .../functions/casting/BinaryToStringCastRule.java | 3 +- .../functions/casting/BooleanToStringCastRule.java | 3 +- .../functions/casting/CastRulePredicate.java | 52 ++-- .../functions/casting/CastRuleProvider.java | 23 +- .../casting/CharVarCharTrimPadCastRule.java | 252 ++++++++++++++++ .../functions/casting/DateToStringCastRule.java | 7 +- .../casting/IntervalToStringCastRule.java | 3 +- .../casting/MapAndMultisetToStringCastRule.java | 300 +++++++++++-------- .../functions/casting/NumericToStringCastRule.java | 3 +- .../functions/casting/RawToStringCastRule.java | 54 +++- .../functions/casting/RowToStringCastRule.java | 78 +++-- .../functions/casting/TimeToStringCastRule.java | 3 +- .../casting/TimestampToStringCastRule.java | 3 +- .../plan/nodes/exec/common/CommonExecSink.java | 10 +- .../table/planner/plan/type/FlinkReturnTypes.java | 4 +- .../table/planner/codegen/calls/IfCallGen.scala | 23 +- .../planner/codegen/calls/StringCallGen.scala | 2 +- .../planner/codegen/SortCodeGeneratorTest.java | 2 +- .../planner/functions/CastFunctionITCase.java | 90 +++--- .../functions/casting/CastRuleProviderTest.java | 19 ++ .../planner/functions/casting/CastRulesTest.java | 332 +++++++++++++++++++++ .../nodes/exec/common/CommonExecSinkITCase.java | 18 +- .../apache/flink/table/api/batch/ExplainTest.scala | 2 +- .../flink/table/api/stream/ExplainTest.scala | 2 +- .../planner/calcite/FlinkTypeFactoryTest.scala | 6 +- .../table/planner/codegen/agg/AggTestBase.scala | 4 +- .../codegen/agg/batch/BatchAggTestBase.scala | 2 +- .../agg/batch/HashAggCodeGeneratorTest.scala | 2 +- .../agg/batch/SortAggCodeGeneratorTest.scala | 4 +- .../planner/expressions/ScalarFunctionsTest.scala | 16 +- .../expressions/utils/ExpressionTestBase.scala | 2 +- .../plan/batch/sql/DagOptimizationTest.scala | 2 +- .../planner/plan/metadata/MetadataTestUtil.scala | 6 +- .../plan/stream/sql/DagOptimizationTest.scala | 2 +- .../planner/plan/stream/sql/LegacySinkTest.scala | 2 +- .../stream/sql/MiniBatchIntervalInferTest.scala | 2 +- .../batch/sql/PartitionableSinkITCase.scala | 2 +- .../planner/runtime/batch/sql/UnionITCase.scala | 2 +- .../planner/runtime/stream/sql/CalcITCase.scala | 4 +- .../runtime/operators/sink/ConstraintEnforcer.java | 60 ++-- .../flink/table/data/BinaryArrayDataTest.java | 3 +- .../apache/flink/table/data/BinaryRowDataTest.java | 3 +- .../flink/table/data/DataFormatConvertersTest.java | 4 +- .../window/SlicingWindowAggOperatorTest.java | 3 +- .../ProcTimeDeduplicateFunctionTestBase.java | 3 +- .../RowTimeDeduplicateFunctionTestBase.java | 3 +- .../RowTimeWindowDeduplicateOperatorTest.java | 3 +- .../join/RandomSortMergeInnerJoinTest.java | 6 +- .../join/String2HashJoinOperatorTest.java | 14 +- .../join/String2SortMergeJoinOperatorTest.java | 12 +- .../interval/TimeIntervalStreamJoinTestBase.java | 6 +- .../TemporalProcessTimeJoinOperatorTest.java | 6 +- .../temporal/TemporalTimeJoinOperatorTestBase.java | 12 +- .../join/window/WindowJoinOperatorTest.java | 6 +- .../ProcTimeRangeBoundedPrecedingFunctionTest.java | 2 +- .../operators/over/RowTimeOverWindowTestBase.java | 4 +- .../operators/rank/TopNFunctionTestBase.java | 8 +- .../rank/window/WindowRankOperatorTest.java | 5 +- .../operators/sort/ProcTimeSortOperatorTest.java | 5 +- .../operators/sort/RowTimeSortOperatorTest.java | 10 +- .../operators/sort/StreamSortOperatorTest.java | 2 +- .../window/WindowOperatorContractTest.java | 3 +- .../operators/window/WindowOperatorTest.java | 11 +- .../runtime/types/DataTypePrecisionFixerTest.java | 2 +- .../runtime/typeutils/RowDataSerializerTest.java | 6 +- .../collections/binary/BytesHashMapTestBase.java | 2 +- .../collections/binary/BytesMultiMapTestBase.java | 4 +- 76 files changed, 1298 insertions(+), 499 deletions(-) create mode 100644 flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/functions/casting/CharVarCharTrimPadCastRule.java