{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"]}},{"id":"D31","name":"IaC \u0026 Container Security","shortDescription":{"text":"IaC \u0026 Container Security"},"helpUri":"https://codehealth.canine.dev/dimensions/D31","relationships":[{"target":{"id":"CWE-1032","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-16","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"]}},{"id":"D33","name":"JS/npm Dependency Vulnerabilities","shortDescription":{"text":"JS/npm Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D33","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"]}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"]}},{"id":"D38","name":"OSV Dependency Vulnerabilities","shortDescription":{"text":"OSV Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D38","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"]}}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"PythonTypeUtils.converter (cyclomatic 81): PythonTypeUtils.converter has cyclomatic complexity 81 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/streaming/api/utils/PythonTypeUtils.java"},"region":{"startLine":1679}}}],"partialFingerprints":{"codehealthFindingId/v1":"47ad99dbbb6f7c6707eaf4a23b728afb2d802a17a25df46c90d1a508cf900363"}},{"ruleId":"D1","level":"warning","message":{"text":"PythonTableUtils.converter (cyclomatic 76): PythonTableUtils.converter has cyclomatic complexity 76 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/table/utils/python/PythonTableUtils.java"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e9cc3858858ead46f83d17948e4f29184a18600a5c74e2c1b6002c0cc0f7b55"}},{"ruleId":"D1","level":"warning","message":{"text":"SqlTypeFactoryImpl.leastRestrictiveSqlType (cyclomatic 71): SqlTypeFactoryImpl.leastRestrictiveSqlType has cyclomatic complexity 71 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql/type/SqlTypeFactoryImpl.java"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bbe8dc5c3c0c431961911a05824bdf93eaeb70170003bdc7e490e0fe6c05b53"}},{"ruleId":"D1","level":"warning","message":{"text":"RexSimplify.simplifyAnd2ForUnknownAsFalse (cyclomatic 62): RexSimplify.simplifyAnd2ForUnknownAsFalse has cyclomatic complexity 62 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/rex/RexSimplify.java"},"region":{"startLine":1934}}}],"partialFingerprints":{"codehealthFindingId/v1":"0015d9e272c7eb27fb4548036c2fec7723de577fe804091eea308fdaeb2bd1e7"}},{"ruleId":"D1","level":"warning","message":{"text":"TypeExtractor.validateInfo (cyclomatic 61): TypeExtractor.validateInfo has cyclomatic complexity 61 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/java/typeutils/TypeExtractor.java"},"region":{"startLine":1487}}}],"partialFingerprints":{"codehealthFindingId/v1":"23aa80d473457870bde3d10eeee03efe5b2cef11f48322ca8afda035af6397a0"}},{"ruleId":"D1","level":"warning","message":{"text":"RexBuilder.makeLiteral (cyclomatic 58): RexBuilder.makeLiteral has cyclomatic complexity 58 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/rex/RexBuilder.java"},"region":{"startLine":1885}}}],"partialFingerprints":{"codehealthFindingId/v1":"de312f9b89e119277ecb0bc11676035773d988bb154b032090ba32ce27fed020"}},{"ruleId":"D1","level":"warning","message":{"text":"DataFormatConverters.getConverterForDataType (cyclomatic 57): DataFormatConverters.getConverterForDataType has cyclomatic complexity 57 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/data/util/DataFormatConverters.java"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab826c99ea48e5855bf0f6af4124b438826c06f25070b7388ae0f73f5308441e"}},{"ruleId":"D1","level":"warning","message":{"text":"LogicalRelDataTypeConverter.toLogicalTypeNotNull (cyclomatic 56): LogicalRelDataTypeConverter.toLogicalTypeNotNull has cyclomatic complexity 56 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/typeutils/LogicalRelDataTypeConverter.java"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e851166774060965e258314fc39df4f829db2cbc62574dd7915619351915bb7"}},{"ruleId":"D1","level":"warning","message":{"text":"RexBuilder.clean (cyclomatic 56): RexBuilder.clean has cyclomatic complexity 56 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/rex/RexBuilder.java"},"region":{"startLine":2052}}}],"partialFingerprints":{"codehealthFindingId/v1":"58282958f4f572405f96c04d8351b431c11bdb12ea00e9a5b204f550f139efba"}},{"ruleId":"D1","level":"warning","message":{"text":"YarnClusterDescriptor.startAppMaster (cyclomatic 53): YarnClusterDescriptor.startAppMaster has cyclomatic complexity 53 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-yarn/src/main/java/org/apache/flink/yarn/YarnClusterDescriptor.java"},"region":{"startLine":833}}}],"partialFingerprints":{"codehealthFindingId/v1":"97bf4892da1ef5fcd15d6b99051436f8e8539572f4ea5a80c2eee54d379710fb"}},{"ruleId":"D1","level":"warning","message":{"text":"Blackboard.convertExpression (cyclomatic 50): Blackboard.convertExpression has cyclomatic complexity 50 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql2rel/SqlToRelConverter.java"},"region":{"startLine":5885}}}],"partialFingerprints":{"codehealthFindingId/v1":"e738e18e69f1850b553757ceae4abb53c91dd51c14f5ff0226ae8be71fcba52f"}},{"ruleId":"D1","level":"warning","message":{"text":"RexLiteralUtil.toFlinkInternalValue (cyclomatic 49): RexLiteralUtil.toFlinkInternalValue has cyclomatic complexity 49 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/utils/RexLiteralUtil.java"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"11535c95c120c94260d466563cc1c5d10433924ae1434c57f18784b2cd3d300d"}},{"ruleId":"D1","level":"warning","message":{"text":"AvroSchemaConverter.convertToSchema (cyclomatic 48): AvroSchemaConverter.convertToSchema has cyclomatic complexity 48 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-formats/flink-avro/src/main/java/org/apache/flink/formats/avro/typeutils/AvroSchemaConverter.java"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8c24e1c618ff3c5d8990eb811e86ac0936fa2b6fff5747516d4b981a398b1e9"}},{"ruleId":"D1","level":"warning","message":{"text":"RexSimplify.simplify (cyclomatic 43): RexSimplify.simplify has cyclomatic complexity 43 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/rex/RexSimplify.java"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc70e2942a08fc6c1b5d2c58bfa4dc206f2660c3793873293e1dd3753cb83501"}},{"ruleId":"D1","level":"warning","message":{"text":"RexSimplify.simplifyComparison (cyclomatic 42): RexSimplify.simplifyComparison has cyclomatic complexity 42 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/rex/RexSimplify.java"},"region":{"startLine":710}}}],"partialFingerprints":{"codehealthFindingId/v1":"f96f007df30ff26c205a6eacad20e5c07fbec5c5668f269204edb2022d687577"}},{"ruleId":"D1","level":"warning","message":{"text":"NestedPrimitiveColumnReader.fillColumnVector (cyclomatic 41): NestedPrimitiveColumnReader.fillColumnVector has cyclomatic complexity 41 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-formats/flink-parquet/src/main/java/org/apache/flink/formats/parquet/vector/reader/NestedPrimitiveColumnReader.java"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0a7b8c66383d471452e4553b149791ff427d642d88a87f210b45116c93af4bd"}},{"ruleId":"D1","level":"warning","message":{"text":"BucketLifecycleConfigurationHandler.doEndElement (cyclomatic 40): BucketLifecycleConfigurationHandler.doEndElement has cyclomatic complexity 40 (threshold 15). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-filesystems/flink-s3-fs-base/src/main/java/com/amazonaws/services/s3/model/transform/XmlResponsesSaxParser.java"},"region":{"startLine":2362}}}],"partialFingerprints":{"codehealthFindingId/v1":"b70d3fb62b726f06d362bc0e6967f8d32fa67097f6ae35ed7862f458e9976906"}},{"ruleId":"D1","level":"warning","message":{"text":"Record.unionFields (cyclomatic 39): Record.unionFields has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/Record.java"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"2911faea18c8b097c0b7dbbee2f34427169cd605784c87edea1d1361aa931570"}},{"ruleId":"D1","level":"warning","message":{"text":"SqlNodeToOperationConversion.convertValidatedSqlNode (cyclomatic 39): SqlNodeToOperationConversion.convertValidatedSqlNode has cyclomatic complexity 39 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/operations/SqlNodeToOperationConversion.java"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7294df5f09502b3b91537b553fe0507377a5c135521f027c0ac45f31837545f"}},{"ruleId":"D1","level":"warning","message":{"text":"StrategyUtils.findDataTypeOfRoot (cyclomatic 37): StrategyUtils.findDataTypeOfRoot has cyclomatic complexity 37 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/inference/strategies/StrategyUtils.java"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"e82289f372954a604a95bd57ad2de72802e8fa7ac7cf7e3d8360f7bce05c52d6"}},{"ruleId":"D1","level":"warning","message":{"text":"AvroSchemaConverter.convertToDataType (cyclomatic 37): AvroSchemaConverter.convertToDataType has cyclomatic complexity 37 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-formats/flink-avro/src/main/java/org/apache/flink/formats/avro/typeutils/AvroSchemaConverter.java"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"3927a2bfc173a406c111224c52a4cf107a71b0409a1b2aca6defefe0bcea8900"}},{"ruleId":"D1","level":"warning","message":{"text":"ValueLiteralExpression.asSerializableString (cyclomatic 36): ValueLiteralExpression.asSerializableString has cyclomatic complexity 36 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/expressions/ValueLiteralExpression.java"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f4c8d62ab3b984e903a6cd44d59f7a6043a0cb8d642f6bb09dce2651d6ab142"}},{"ruleId":"D1","level":"warning","message":{"text":"AvroSchemaConverter.convertToTypeInfo (cyclomatic 36): AvroSchemaConverter.convertToTypeInfo has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-formats/flink-avro/src/main/java/org/apache/flink/formats/avro/typeutils/AvroSchemaConverter.java"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"77c33c9f7d3f6804b804e1f815a29e76bdae0988f407d3286b748546cfd36d9e"}},{"ruleId":"D1","level":"warning","message":{"text":"ParquetFormatStatisticsReportUtil.convertToColumnStats (cyclomatic 36): ParquetFormatStatisticsReportUtil.convertToColumnStats has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-formats/flink-parquet/src/main/java/org/apache/flink/formats/parquet/utils/ParquetFormatStatisticsReportUtil.java"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3755cfe80654385e6182f24e3fd6c73b54cae30e3e88b1f6b8af73129ba92e8"}},{"ruleId":"D1","level":"warning","message":{"text":"ParquetSplitReaderUtil.createWritableColumnVector (cyclomatic 36): ParquetSplitReaderUtil.createWritableColumnVector has cyclomatic complexity 36 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-formats/flink-parquet/src/main/java/org/apache/flink/formats/parquet/vector/ParquetSplitReaderUtil.java"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"82cb2383e5e36742eb9d3ff5c14ea618ff92b1e62a212ff9ed7d742b20678538"}},{"ruleId":"D1","level":"warning","message":{"text":"ListBucketAnalyticsConfigurationHandler.doEndElement (cyclomatic 36): ListBucketAnalyticsConfigurationHandler.doEndElement has cyclomatic complexity 36 (threshold 15). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-filesystems/flink-s3-fs-base/src/main/java/com/amazonaws/services/s3/model/transform/XmlResponsesSaxParser.java"},"region":{"startLine":3044}}}],"partialFingerprints":{"codehealthFindingId/v1":"d591fed3a8a6df72ff461d870dc3f26b876c10c87377b2516656e2859663cfe1"}},{"ruleId":"D1","level":"warning","message":{"text":"AnalyzeTableUtil.convertToColumnStatisticsData (cyclomatic 35): AnalyzeTableUtil.convertToColumnStatisticsData has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/api/internal/AnalyzeTableUtil.java"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"6970122e6d6d4e12e2cf69c70ed2f19fb60f81bd539c3a1392cfb3a186bbe644"}},{"ruleId":"D1","level":"warning","message":{"text":"FlinkAggregateJoinTransposeRule.onMatch (cyclomatic 35): FlinkAggregateJoinTransposeRule.onMatch has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/rules/logical/FlinkAggregateJoinTransposeRule.java"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"e96501152595361ffa79c846fc77d47e4e87fd14c534d9c33d9146c7d11b0f97"}},{"ruleId":"D1","level":"warning","message":{"text":"QuickSort.sortInternal (cyclomatic 35): QuickSort.sortInternal has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/operators/sort/QuickSort.java"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"b365335563ad01cf7023f563ca625cf23b960cc745d5c02ec3ebc381757b643a"}},{"ruleId":"D1","level":"warning","message":{"text":"RexBuilder.makeCast (cyclomatic 35): RexBuilder.makeCast has cyclomatic complexity 35 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/rex/RexBuilder.java"},"region":{"startLine":710}}}],"partialFingerprints":{"codehealthFindingId/v1":"e797e95dea40b61b7b39755ad0d065b07a298059428fefcde4bbfbe9ea9ca049"}},{"ruleId":"D1","level":"warning","message":{"text":"RexSimplify.processRange (cyclomatic 35): RexSimplify.processRange has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/rex/RexSimplify.java"},"region":{"startLine":2881}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7b5a0ddc872a69b86c962c23e4cc44879902559c418db4e27eba9594f2864d8"}},{"ruleId":"D1","level":"warning","message":{"text":"AggConverter.translateAgg (cyclomatic 35): AggConverter.translateAgg has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql2rel/AggConverter.java"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e351d6e072b548645d0320299e118bdc06c5dd50546adf4f06ebedb3232d117"}},{"ruleId":"D1","level":"warning","message":{"text":"LogicalTypeMerging.findCommonNullableType (cyclomatic 34): LogicalTypeMerging.findCommonNullableType has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/logical/utils/LogicalTypeMerging.java"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d4879179673a9290598bd2fc04e8db22ef22e022b8fa0d01874db45ba494fdb"}},{"ruleId":"D1","level":"warning","message":{"text":"CompactingHashTable.resizeHashTable (cyclomatic 34): CompactingHashTable.resizeHashTable has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/operators/hash/CompactingHashTable.java"},"region":{"startLine":883}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8473a160b9fc8540e4045b69ee35834aab39d029cba50989536791f46937e52"}},{"ruleId":"D1","level":"warning","message":{"text":"TypeInfoDataTypeConverter.fromDataTypeToTypeInfo (cyclomatic 33): TypeInfoDataTypeConverter.fromDataTypeToTypeInfo has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/types/TypeInfoDataTypeConverter.java"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5d8b4cb2d6f77120b9003b266da998584a9ee094936cb8be5e7e6531be5fb82"}},{"ruleId":"D1","level":"warning","message":{"text":"ParquetSplitReaderUtil.createVectorFromConstant (cyclomatic 33): ParquetSplitReaderUtil.createVectorFromConstant has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-formats/flink-parquet/src/main/java/org/apache/flink/formats/parquet/vector/ParquetSplitReaderUtil.java"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"3113e8dec906e6d62aa7761d9bb081b284ac1de04f926c9a23635be8dcd93552"}},{"ruleId":"D1","level":"warning","message":{"text":"ListBucketHandler.doEndElement (cyclomatic 33): ListBucketHandler.doEndElement has cyclomatic complexity 33 (threshold 15). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-filesystems/flink-s3-fs-base/src/main/java/com/amazonaws/services/s3/model/transform/XmlResponsesSaxParser.java"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d9d082d1e0be2796a8b72f3a6e4d5f2c3e4e387a174989a17cb580ea9b0d408"}},{"ruleId":"D1","level":"warning","message":{"text":"ListObjectsV2Handler.doEndElement (cyclomatic 33): ListObjectsV2Handler.doEndElement has cyclomatic complexity 33 (threshold 15). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-filesystems/flink-s3-fs-base/src/main/java/com/amazonaws/services/s3/model/transform/XmlResponsesSaxParser.java"},"region":{"startLine":754}}}],"partialFingerprints":{"codehealthFindingId/v1":"515820affd11b02f45953f46d32d951f6e7c015e59b5a220966014f489a7c0d9"}},{"ruleId":"D1","level":"warning","message":{"text":"PythonTypeUtils.arrayConstructor (cyclomatic 32): PythonTypeUtils.arrayConstructor has cyclomatic complexity 32 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/streaming/api/utils/PythonTypeUtils.java"},"region":{"startLine":1526}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdfd42b6fcc2c93a77e667ad3b8a53f9cb7cfe358c533b739036e5ee070b1c4c"}},{"ruleId":"D1","level":"warning","message":{"text":"BinaryStringDataUtil.toDecimalFromBytes (cyclomatic 32): BinaryStringDataUtil.toDecimalFromBytes has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/data/binary/BinaryStringDataUtil.java"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf35c4a2cf6fd56f63950f7755ac30f33636bc0771b9c467a008e940e250819c"}},{"ruleId":"D1","level":"warning","message":{"text":"AvroRowSerializationSchema.convertFlinkType (cyclomatic 32): AvroRowSerializationSchema.convertFlinkType has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/formats/avro/AvroRowSerializationSchema.java"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"974f4f0adff74a5b683c982dfb11a40a4474341b4a02bba2049d798739eb85d0"}},{"ruleId":"D1","level":"warning","message":{"text":"SqlTypeUtil.canCastFrom (cyclomatic 32): SqlTypeUtil.canCastFrom has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql/type/SqlTypeUtil.java"},"region":{"startLine":1061}}}],"partialFingerprints":{"codehealthFindingId/v1":"62b73ecfd197af2fcf241b20567f51758b99662b312f8591cff1aec919289b9b"}},{"ruleId":"D1","level":"warning","message":{"text":"RexUtil.isLosslessCast (cyclomatic 32): RexUtil.isLosslessCast has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/rex/RexUtil.java"},"region":{"startLine":1670}}}],"partialFingerprints":{"codehealthFindingId/v1":"27a58b53f219e3cd00439b59d8697052cfc67d7629639a1f3c98065a8de29584"}},{"ruleId":"D1","level":"warning","message":{"text":"ListVersionsHandler.doEndElement (cyclomatic 32): ListVersionsHandler.doEndElement has cyclomatic complexity 32 (threshold 15). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-filesystems/flink-s3-fs-base/src/main/java/com/amazonaws/services/s3/model/transform/XmlResponsesSaxParser.java"},"region":{"startLine":1266}}}],"partialFingerprints":{"codehealthFindingId/v1":"05a792adda0ff3125f2af9edb455064b23c14f9dd1fe828bdf8c8af339b4853c"}},{"ruleId":"D1","level":"warning","message":{"text":"LogicalTypeCasts.supportsCasting (cyclomatic 31): LogicalTypeCasts.supportsCasting has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/logical/utils/LogicalTypeCasts.java"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e90bda23e3916f232bb6c5df83faf2c1e6fc002b4b77f858ba5673efd85b216"}},{"ruleId":"D1","level":"warning","message":{"text":"DateTimeUtils.julianExtract (cyclomatic 30): DateTimeUtils.julianExtract has cyclomatic complexity 30 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/utils/DateTimeUtils.java"},"region":{"startLine":1087}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d40164de5feeb52e70d050837e445055e48b146ac96a70ce383caeec9c907ef"}},{"ruleId":"D1","level":"warning","message":{"text":"DataSinkTask.invoke (cyclomatic 30): DataSinkTask.invoke has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/operators/DataSinkTask.java"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"94c1bd19d558459568c287fdd98cbb3e7457aeaaf80c13e750c323d16845718d"}},{"ruleId":"D1","level":"warning","message":{"text":"AvroRowDeserializationSchema.convertAvroType (cyclomatic 30): AvroRowDeserializationSchema.convertAvroType has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/formats/avro/AvroRowDeserializationSchema.java"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd5900ef8ca6eaa079a17c12ff7803960cc5da1351117fe4c4b482e002e1b191"}},{"ruleId":"D1","level":"warning","message":{"text":"GetBucketAnalyticsConfigurationHandler.doEndElement (cyclomatic 30): GetBucketAnalyticsConfigurationHandler.doEndElement has cyclomatic complexity 30 (threshold 15). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-filesystems/flink-s3-fs-base/src/main/java/com/amazonaws/services/s3/model/transform/XmlResponsesSaxParser.java"},"region":{"startLine":2876}}}],"partialFingerprints":{"codehealthFindingId/v1":"4273532e41f8a94d832c75abdba000c41e6c38b03f5d11e4264d8da73cfbafb9"}},{"ruleId":"D1","level":"warning","message":{"text":"ResultIterator.hasNext (cyclomatic 29): ResultIterator.hasNext has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-sql-gateway/src/main/java/org/apache/flink/table/gateway/service/application/ScriptExecutor.java"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"1685a4a44020c5b7969809b574122f61b3dd313170a64cde0db9668117587e4e"}},{"ruleId":"D1","level":"warning","message":{"text":"TypeStringUtils.writeTypeInfo (cyclomatic 29): TypeStringUtils.writeTypeInfo has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/legacy/utils/TypeStringUtils.java"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f4ddd416149631e4123f0120807cf193b099884c316fcf9868d20484ab8ab58"}},{"ruleId":"D1","level":"warning","message":{"text":"JsonRowSchemaConverter.convertType (cyclomatic 29): JsonRowSchemaConverter.convertType has cyclomatic complexity 29 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-formats/flink-json/src/main/java/org/apache/flink/formats/json/JsonRowSchemaConverter.java"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"c276ea8fcd19375d4118a0e48d3e5c5f9452fb69c958ca9f5e533848a7703ae5"}},{"ruleId":"D1","level":"warning","message":{"text":"TypeExtractor.createTypeInfoFromInput (cyclomatic 28): TypeExtractor.createTypeInfoFromInput has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/java/typeutils/TypeExtractor.java"},"region":{"startLine":1101}}}],"partialFingerprints":{"codehealthFindingId/v1":"fef01874183c7b2c412224be559bbb2bfff57d1cf67d75fc0705fc1d3fd67298"}},{"ruleId":"D1","level":"warning","message":{"text":"TypeExtractor.privateGetForClass (cyclomatic 28): TypeExtractor.privateGetForClass has cyclomatic complexity 28 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/java/typeutils/TypeExtractor.java"},"region":{"startLine":1884}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fee2b018f0296336a7cd6842ab12f7386a966667fcd516925e6f9b5b3168e05"}},{"ruleId":"D1","level":"warning","message":{"text":"ForStNativeMetricOptions.configurePropertyMetrics (cyclomatic 28): ForStNativeMetricOptions.configurePropertyMetrics has cyclomatic complexity 28 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-state-backends/flink-statebackend-forst/src/main/java/org/apache/flink/state/forst/ForStNativeMetricOptions.java"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfcdf13a70ee90d7425c0bace642ee5d796065c74dcae5eb0bd1c32ddc2a34ed"}},{"ruleId":"D1","level":"warning","message":{"text":"RocksDBNativeMetricOptions.configurePropertyMetrics (cyclomatic 28): RocksDBNativeMetricOptions.configurePropertyMetrics has cyclomatic complexity 28 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-state-backends/flink-statebackend-rocksdb/src/main/java/org/apache/flink/state/rocksdb/RocksDBNativeMetricOptions.java"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"109ff50da0be8dcb4f7818b4ba6b2811ab1399a48bf67e2b2ed139fb2dfaa8b9"}},{"ruleId":"D1","level":"warning","message":{"text":"ListBucketInventoryConfigurationsHandler.doEndElement (cyclomatic 28): ListBucketInventoryConfigurationsHandler.doEndElement has cyclomatic complexity 28 (threshold 15). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-filesystems/flink-s3-fs-base/src/main/java/com/amazonaws/services/s3/model/transform/XmlResponsesSaxParser.java"},"region":{"startLine":3377}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fd8ba62c9523563a918c2e35a1e46c7c4c1b081231017a3f037f0aa8e198601"}},{"ruleId":"D1","level":"warning","message":{"text":"TypeInfoToProtoConverter.getTypeName (cyclomatic 27): TypeInfoToProtoConverter.getTypeName has cyclomatic complexity 27 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/streaming/api/utils/PythonTypeUtils.java"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"50e6beb7577e155075c8dc6000ec5b4c08e5db9b5f757b00beacff24d7bf07ba"}},{"ruleId":"D1","level":"warning","message":{"text":"MultipleInputNodeCreationProcessor.optimizeMultipleInputGroups (cyclomatic 27): MultipleInputNodeCreationProcessor.optimizeMultipleInputGroups has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/processor/MultipleInputNodeCreationProcessor.java"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c7e275d6eb3fb2feefe0be98b0413ee8deaba942387830dec4304578d00b100"}},{"ruleId":"D1","level":"warning","message":{"text":"ExtractionUtils.isAssignable (cyclomatic 27): ExtractionUtils.isAssignable has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/extraction/ExtractionUtils.java"},"region":{"startLine":1068}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6987ada80a52587798bbd2bb1c0548cfe51ab8b05d372832ce4a3a1dbdbf027"}},{"ruleId":"D1","level":"warning","message":{"text":"ExternalSorterBuilder.doBuild (cyclomatic 27): ExternalSorterBuilder.doBuild has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/operators/sort/ExternalSorterBuilder.java"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"fddb8947aedbc70c73c559dd9a74ec7ce588322044c1a1853788add2b290862d"}},{"ruleId":"D1","level":"warning","message":{"text":"JoinHelper.processJoin (cyclomatic 26): JoinHelper.processJoin has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/stream/utils/JoinHelper.java"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"77f3808c0282c694d0d97ed2ae82444e896ba065a43483086600597d50a51fdd"}},{"ruleId":"D1","level":"warning","message":{"text":"StreamNonDeterministicUpdatePlanVisitor.visit (cyclomatic 26): StreamNonDeterministicUpdatePlanVisitor.visit has cyclomatic complexity 26 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/optimize/StreamNonDeterministicUpdatePlanVisitor.java"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"1624229c2488af81a10297760dbb3a7d82981c8335480dba7f42f416f7cc2284"}},{"ruleId":"D1","level":"warning","message":{"text":"ParquetRowDataWriter.createWriter (cyclomatic 26): ParquetRowDataWriter.createWriter has cyclomatic complexity 26 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-formats/flink-parquet/src/main/java/org/apache/flink/formats/parquet/row/ParquetRowDataWriter.java"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"4198366a601a607230adbf4e7f7184e959e6c6872b56563ae1e1c9ddfb4e1bef"}},{"ruleId":"D1","level":"warning","message":{"text":"ExtendedExpander.visit (cyclomatic 26): ExtendedExpander.visit has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql/validate/SqlValidatorImpl.java"},"region":{"startLine":7750}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3551383604c5a6927abb13dbc9141e9799cd75c0ff29dabee6f1f94692ff48d"}},{"ruleId":"D1","level":"warning","message":{"text":"RemoveCorrelationForScalarAggregateRule.onMatch (cyclomatic 26): RemoveCorrelationForScalarAggregateRule.onMatch has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql2rel/RelDecorrelator.java"},"region":{"startLine":2681}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2570f176cdbb2b56b92d1ca764394f92811e3aa50a271bfe6dd54cf30c04a55"}},{"ruleId":"D1","level":"warning","message":{"text":"ListMultipartUploadsHandler.doEndElement (cyclomatic 26): ListMultipartUploadsHandler.doEndElement has cyclomatic complexity 26 (threshold 15). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-filesystems/flink-s3-fs-base/src/main/java/com/amazonaws/services/s3/model/transform/XmlResponsesSaxParser.java"},"region":{"startLine":1780}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaedea71dc68404a33101afcf14a841ff9580bfceab6c19f8a58bdd4d31ea77a"}},{"ruleId":"D1","level":"warning","message":{"text":"PojoSerializer.deserialize (cyclomatic 25): PojoSerializer.deserialize has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/java/typeutils/runtime/PojoSerializer.java"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"6753d6ac5ab59b298b0e54d6a5c4c485529fe9e31e57fdcba1afca80db7bc740"}},{"ruleId":"D1","level":"warning","message":{"text":"BinaryVariant.toJsonImpl (cyclomatic 25): BinaryVariant.toJsonImpl has cyclomatic complexity 25 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/variant/BinaryVariant.java"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"db89e4df257d74e4918b7ef740ee059c24d553a0e146c7ead217a7e2d4ccd80f"}},{"ruleId":"D1","level":"warning","message":{"text":"CommonPythonUtil.getBuiltInPythonAggregateFunction (cyclomatic 25): CommonPythonUtil.getBuiltInPythonAggregateFunction has cyclomatic complexity 25 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/utils/CommonPythonUtil.java"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"17ff28b049d6c151a60ec9669b199a9c6b5117fc33c2ef0028fc471a2b6372ef"}},{"ruleId":"D1","level":"warning","message":{"text":"DppFactSideChecker.convertDppFactSide (cyclomatic 25): DppFactSideChecker.convertDppFactSide has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/utils/DynamicPartitionPruningUtils.java"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"3af8943ae06c4ac9bb2f57e31edffb032a9478b33714abb78c0717480bda37b1"}},{"ruleId":"D1","level":"warning","message":{"text":"RexBuilder.canRemoveCastFromLiteral (cyclomatic 25): RexBuilder.canRemoveCastFromLiteral has cyclomatic complexity 25 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/rex/RexBuilder.java"},"region":{"startLine":808}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddc6c4402e3dd12192252391cb2c74f2e1e560789f2e6bd1805ce2424b46b36d"}},{"ruleId":"D1","level":"warning","message":{"text":"RelDecorrelator.decorrelateRel (cyclomatic 25): RelDecorrelator.decorrelateRel has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql2rel/RelDecorrelator.java"},"region":{"startLine":635}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6ebd21b60eb383a0a0624c5532bbbd8d35f86ec804fb4a7b4116599566bf029"}},{"ruleId":"D1","level":"warning","message":{"text":"GetBucketInventoryConfigurationHandler.doEndElement (cyclomatic 25): GetBucketInventoryConfigurationHandler.doEndElement has cyclomatic complexity 25 (threshold 15). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-filesystems/flink-s3-fs-base/src/main/java/com/amazonaws/services/s3/model/transform/XmlResponsesSaxParser.java"},"region":{"startLine":3241}}}],"partialFingerprints":{"codehealthFindingId/v1":"7889bf1a571329849465a2fcbcb3ae960fa73abf38459246c12a0915f2bd3eef"}},{"ruleId":"D1","level":"warning","message":{"text":"PythonBridgeUtils.getPickledBytesFromJavaObject (cyclomatic 24): PythonBridgeUtils.getPickledBytesFromJavaObject has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/api/common/python/PythonBridgeUtils.java"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"976d9dcbe787c72042d6ac6234d93bc3e47d682f34b616b405631daf578ef8ff"}},{"ruleId":"D1","level":"warning","message":{"text":"AbstractPagedInputView.readUTF (cyclomatic 24): AbstractPagedInputView.readUTF has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/core/memory/AbstractPagedInputView.java"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ff08f0fd1567aecdaef88498b116535366d8d9eb95637be07f7b5125861a65b"}},{"ruleId":"D1","level":"warning","message":{"text":"StreamingJoinOperator.processElement (cyclomatic 24): StreamingJoinOperator.processElement has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/stream/StreamingJoinOperator.java"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae77d8fb3340eca4fd899d3ffbb35dd55c112f15cdfd471fcabd5a5b6bba1d9c"}},{"ruleId":"D1","level":"warning","message":{"text":"DateTimeUtils.julianDateFloor (cyclomatic 24): DateTimeUtils.julianDateFloor has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/utils/DateTimeUtils.java"},"region":{"startLine":1390}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a50ec20181a093e20296684907d25359ce2134e78aa69e9734621f1f28d5215"}},{"ruleId":"D1","level":"warning","message":{"text":"NonSpanningWrapper.readUTF (cyclomatic 24): NonSpanningWrapper.readUTF has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/io/network/api/serialization/NonSpanningWrapper.java"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d1a24d71a4c398aff502cc669e0965e81c7ccea6793c389bbe9f52220a9d867"}},{"ruleId":"D1","level":"warning","message":{"text":"DataSourceTask.invoke (cyclomatic 24): DataSourceTask.invoke has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/operators/DataSourceTask.java"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c0de5791d38e179ebc6b17b2034f0c4f47f4dda930357bcae9a8e63275f9230"}},{"ruleId":"D1","level":"warning","message":{"text":"Task.doRun (cyclomatic 24): Task.doRun has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/taskmanager/Task.java"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad0738f05829296a001c0a4cd9d1caab0fced1c47526d030d90fd55086281508"}},{"ruleId":"D1","level":"warning","message":{"text":"RowCsvInputFormat.createRuntimeConverter (cyclomatic 24): RowCsvInputFormat.createRuntimeConverter has cyclomatic complexity 24 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-formats/flink-csv/src/main/java/org/apache/flink/formats/csv/RowCsvInputFormat.java"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d52bc5a45f1c90210c329d2962ff98dc7c90d2e3cd129fddb4bfcc87d4b82bf"}},{"ruleId":"D1","level":"warning","message":{"text":"CsvRowDeserializationSchema.createRuntimeConverter (cyclomatic 24): CsvRowDeserializationSchema.createRuntimeConverter has cyclomatic complexity 24 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/formats/csv/CsvRowDeserializationSchema.java"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1746757a4829d332dd1b6207953d0f614a04e274a6d028cbd13fd135fbee204"}},{"ruleId":"D1","level":"warning","message":{"text":"CsvRowSerializationSchema.createRuntimeConverter (cyclomatic 24): CsvRowSerializationSchema.createRuntimeConverter has cyclomatic complexity 24 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/formats/csv/CsvRowSerializationSchema.java"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"96b4af65726590bce53c0726bc05656619d06ac5f888734fde4a8c3f2998e860"}},{"ruleId":"D1","level":"warning","message":{"text":"BucketReplicationConfigurationHandler.doEndElement (cyclomatic 24): BucketReplicationConfigurationHandler.doEndElement has cyclomatic complexity 24 (threshold 15). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-filesystems/flink-s3-fs-base/src/main/java/com/amazonaws/services/s3/model/transform/XmlResponsesSaxParser.java"},"region":{"startLine":2044}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d22df84ff3feb551e2effdc7df899c6bd383e519a017d9090881646622f1789"}},{"ruleId":"D1","level":"warning","message":{"text":"Record.initFields (cyclomatic 23): Record.initFields has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/Record.java"},"region":{"startLine":1138}}}],"partialFingerprints":{"codehealthFindingId/v1":"704f36d6ce225e58ed1b462dc27865a12c0abe76e6e5522cf1fffb1d2ded8fb8"}},{"ruleId":"D1","level":"warning","message":{"text":"ArrowUtils.createArrowFieldWriterForArray (cyclomatic 23): ArrowUtils.createArrowFieldWriterForArray has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/table/runtime/arrow/ArrowUtils.java"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9a03abf49ad424d597ec473b8054376fc9baf50e4496f777b44038f117da8dc"}},{"ruleId":"D1","level":"warning","message":{"text":"ArrowUtils.createArrowFieldWriterForRow (cyclomatic 23): ArrowUtils.createArrowFieldWriterForRow has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/table/runtime/arrow/ArrowUtils.java"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dac7216d3011b2e9758fa0939148493a5e4a9788a5594e2b7b213bba8369e6a"}},{"ruleId":"D1","level":"warning","message":{"text":"FlinkRuntimeFilterProgram.findSuitableBuildSide (cyclomatic 23): FlinkRuntimeFilterProgram.findSuitableBuildSide has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/optimize/program/FlinkRuntimeFilterProgram.java"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fe38e84db0106c2fb9035116ab7bb6a963057fe534b164b4c091c96a30f0916"}},{"ruleId":"D1","level":"warning","message":{"text":"FlinkAggregateExpandDistinctAggregatesRule.onMatch (cyclomatic 23): FlinkAggregateExpandDistinctAggregatesRule.onMatch has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/rules/logical/FlinkAggregateExpandDistinctAggregatesRule.java"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"5065ab502b8f2139d22a52ce70e0bff4ea0603876ba6984da8027728d6ebb171"}},{"ruleId":"D1","level":"warning","message":{"text":"BlobServerConnection.get (cyclomatic 23): BlobServerConnection.get has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/blob/BlobServerConnection.java"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e55d51cb90d3a7e1b1c44e4f5732f9ad31f16179e2c5952cf81e3f1711f022f"}},{"ruleId":"D1","level":"warning","message":{"text":"LargeRecordHandler.close (cyclomatic 23): LargeRecordHandler.close has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/operators/sort/LargeRecordHandler.java"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c8bfeb1f660efe118638cf412ba1bd74c87dec3d11c4b39dcbd23014944783e"}},{"ruleId":"D1","level":"warning","message":{"text":"AvroToVariantDataConverters.createAvroToVariantConverter (cyclomatic 23): AvroToVariantDataConverters.createAvroToVariantConverter has cyclomatic complexity 23 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-formats/flink-avro/src/main/java/org/apache/flink/formats/avro/AvroToVariantDataConverters.java"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"c095ac0ba3694e930f081b578d12e0a7f656412b50b5c598edc9d362d1649402"}},{"ruleId":"D1","level":"warning","message":{"text":"CanalJsonDeserializationSchema.deserialize (cyclomatic 23): CanalJsonDeserializationSchema.deserialize has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-formats/flink-json/src/main/java/org/apache/flink/formats/json/canal/CanalJsonDeserializationSchema.java"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"aab488791ea60d900647a9e96bcad76ed95acedcbd5d5fdc5747d5500e8862e0"}},{"ruleId":"D1","level":"warning","message":{"text":"PatternValidator.visit (cyclomatic 23): PatternValidator.visit has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql/validate/SqlValidatorImpl.java"},"region":{"startLine":8168}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb063c011b9d00abc3c437b5cd830b8d33b1bc378ff10e480ad0f510c36f79b9"}},{"ruleId":"D1","level":"warning","message":{"text":"SubQueryRemoveRule.rewriteIn (cyclomatic 23): SubQueryRemoveRule.rewriteIn has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/rel/rules/SubQueryRemoveRule.java"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"dff55ebab9a82d56a618b11b9d08b08b7aeafcecddd00d209aee81df7bb78688"}},{"ruleId":"D1","level":"warning","message":{"text":"ListPartsHandler.doEndElement (cyclomatic 23): ListPartsHandler.doEndElement has cyclomatic complexity 23 (threshold 15). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-filesystems/flink-s3-fs-base/src/main/java/com/amazonaws/services/s3/model/transform/XmlResponsesSaxParser.java"},"region":{"startLine":1903}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbaa343fc0f466e83d5aa4fe6e66ce6615a88c40f91e09c6acc2af16aafe4ead"}},{"ruleId":"D1","level":"warning","message":{"text":"ListBucketMetricsConfigurationsHandler.doEndElement (cyclomatic 23): ListBucketMetricsConfigurationsHandler.doEndElement has cyclomatic complexity 23 (threshold 15). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-filesystems/flink-s3-fs-base/src/main/java/com/amazonaws/services/s3/model/transform/XmlResponsesSaxParser.java"},"region":{"startLine":2718}}}],"partialFingerprints":{"codehealthFindingId/v1":"09bc1794fd05c9c435328a4eb2c8e6925f0b3e7a912a8469fcdd2abf137e6e11"}},{"ruleId":"D1","level":"warning","message":{"text":"ArrowUtils.createColumnVector (cyclomatic 22): ArrowUtils.createColumnVector has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/table/runtime/arrow/ArrowUtils.java"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ab6352b672f643305d0673dba47ddc677365bc02f80a6dfa852521bf5c1ec4d"}},{"ruleId":"D1","level":"warning","message":{"text":"UpdatableTopNFunction.emitRecordsWithRowNumber (cyclomatic 22): UpdatableTopNFunction.emitRecordsWithRowNumber has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/rank/UpdatableTopNFunction.java"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a0cc7c705a3126fb46966716d12e13838e496c17bc2286d782bb0b5b0823415"}},{"ruleId":"D1","level":"warning","message":{"text":"AlterTableChangeOperation.toString (cyclomatic 22): AlterTableChangeOperation.toString has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/ddl/AlterTableChangeOperation.java"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0acf8cf582633d8e435e556930c20aba3ffac3eb97cbbcb213190c36eb39875"}},{"ruleId":"D1","level":"warning","message":{"text":"LegacyUserDefinedFunctionInference.parameterClassEquals (cyclomatic 22): LegacyUserDefinedFunctionInference.parameterClassEquals has cyclomatic complexity 22 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/functions/LegacyUserDefinedFunctionInference.java"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"f792cd218682bf93c9faad01325fa590699164869011172a61e13a58ec19f897"}},{"ruleId":"D1","level":"warning","message":{"text":"BatchExecOverAggregate.createOverWindowFrames (cyclomatic 22): BatchExecOverAggregate.createOverWindowFrames has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/batch/BatchExecOverAggregate.java"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"8080a00e1bde55a268d97d2e5594ede8ea79b709f7595288480836005f4a2cc9"}},{"ruleId":"D1","level":"warning","message":{"text":"DppDimSideChecker.visitDimSide (cyclomatic 22): DppDimSideChecker.visitDimSide has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/utils/DynamicPartitionPruningUtils.java"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0fa183d09baec0c2e0ce6c3a7579e793f7d663285f593207d56ba1a0e40684d"}},{"ruleId":"D1","level":"warning","message":{"text":"DataTypeExtractor.extractPredefinedOrDescriptorType (cyclomatic 22): DataTypeExtractor.extractPredefinedOrDescriptorType has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/extraction/DataTypeExtractor.java"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc7d13511249b218d798519621b2ceacb17bdf675abddd62f20cad0f8b6bdf41"}},{"ruleId":"D1","level":"warning","message":{"text":"MetadataV2V3SerializerBase.deserializeKeyedStateHandle (cyclomatic 22): MetadataV2V3SerializerBase.deserializeKeyedStateHandle has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/metadata/MetadataV2V3SerializerBase.java"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"d02d1da850f3b6c3691e24d84f440b9d6120e8f192a4ee36c4f459b74db7e42d"}},{"ruleId":"D1","level":"warning","message":{"text":"BatchTask.invoke (cyclomatic 22): BatchTask.invoke has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/operators/BatchTask.java"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"3049bb51cdd9fb0e99f28c1d04a87a03ac48e33343b0f58306c1bb2650e213ae"}},{"ruleId":"D1","level":"warning","message":{"text":"SubQueryRemoveRule.rewriteSome (cyclomatic 22): SubQueryRemoveRule.rewriteSome has cyclomatic complexity 22 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/rel/rules/SubQueryRemoveRule.java"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"fca5697508cf906e7b1709d3164e358650ab7bafe5531a62d48a688d45faefb7"}},{"ruleId":"D1","level":"warning","message":{"text":"RexSimplify.simplifyOrs (cyclomatic 22): RexSimplify.simplifyOrs has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/rex/RexSimplify.java"},"region":{"startLine":2336}}}],"partialFingerprints":{"codehealthFindingId/v1":"36a10b3b2a9b7eb69d89d12dba1f18f83fc085756c23da3d10dcbf05209582c1"}},{"ruleId":"D1","level":"warning","message":{"text":"BucketWebsiteConfigurationHandler.doEndElement (cyclomatic 22): BucketWebsiteConfigurationHandler.doEndElement has cyclomatic complexity 22 (threshold 15). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-filesystems/flink-s3-fs-base/src/main/java/com/amazonaws/services/s3/model/transform/XmlResponsesSaxParser.java"},"region":{"startLine":1396}}}],"partialFingerprints":{"codehealthFindingId/v1":"d005b8efcfc7c71684293d4983f0a5a6e7b631596501f11dc5c151c43de0e4fd"}},{"ruleId":"D1","level":"warning","message":{"text":"FieldAccessorFactory.getAccessor (cyclomatic 21): FieldAccessorFactory.getAccessor has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/util/typeutils/FieldAccessorFactory.java"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4eb3e2bb33249a01e0bab270f5a7046d4c3dc705d28f295d4a137cc514f634a"}},{"ruleId":"D1","level":"warning","message":{"text":"TypeExtractor.isValidPojoField (cyclomatic 21): TypeExtractor.isValidPojoField has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/java/typeutils/TypeExtractor.java"},"region":{"startLine":2057}}}],"partialFingerprints":{"codehealthFindingId/v1":"23e1b59d01a6bab066f8d75cb7eef15aa7a96e051d5ffb247019297c680094c8"}},{"ruleId":"D1","level":"warning","message":{"text":"ColumnInfo.fromLogicalType (cyclomatic 21): ColumnInfo.fromLogicalType has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-sql-jdbc-driver/src/main/java/org/apache/flink/table/jdbc/ColumnInfo.java"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"c778ec34a9b564289d51fcf1c421e9e2a8ed882bfd8e545d4112e9862903c03d"}},{"ruleId":"D1","level":"warning","message":{"text":"OperationExecutor.executeOperation (cyclomatic 21): OperationExecutor.executeOperation has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-sql-gateway/src/main/java/org/apache/flink/table/gateway/service/operation/OperationExecutor.java"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f4ec73143065167a29a6b13fedb18de9d2dd89f32399d95c1dfcce1b062cc0f"}},{"ruleId":"D1","level":"warning","message":{"text":"RowTimeRowsBoundedPrecedingFunction.onTimer (cyclomatic 21): RowTimeRowsBoundedPrecedingFunction.onTimer has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/over/RowTimeRowsBoundedPrecedingFunction.java"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"e566a8b1aad7b98cf38f42c87d0dc05ee3e72ee940e2c55fee13b7f600e885ad"}},{"ruleId":"D1","level":"warning","message":{"text":"DateTimeUtils.convertExtract (cyclomatic 21): DateTimeUtils.convertExtract has cyclomatic complexity 21 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/utils/DateTimeUtils.java"},"region":{"startLine":1190}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e145258b9713c1d41da7bdbca49b009fcd02b1ca69ff2b69e85e6e4208d6fb0"}},{"ruleId":"D1","level":"warning","message":{"text":"StreamExecGroupWindowAggregate.createWindowOperator (cyclomatic 21): StreamExecGroupWindowAggregate.createWindowOperator has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/stream/StreamExecGroupWindowAggregate.java"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"e139be75d68a3ef3e2a858b9824ff2b4cb108b40f3e44c82edafc68746d9220b"}},{"ruleId":"D1","level":"warning","message":{"text":"LegacyTypeInfoDataTypeConverter.toLegacyTypeInfo (cyclomatic 21): LegacyTypeInfoDataTypeConverter.toLegacyTypeInfo has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/utils/LegacyTypeInfoDataTypeConverter.java"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba99ae13875c7caa5d7416124d92ab57866034a43c4b35b3dad57f9c888fb0cf"}},{"ruleId":"D1","level":"warning","message":{"text":"AbstractMergeOuterJoinIterator.callWithNextKey (cyclomatic 21): AbstractMergeOuterJoinIterator.callWithNextKey has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/operators/sort/AbstractMergeOuterJoinIterator.java"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"88407a6fed64731ef8838f7b1da2bf03ef4fc3c31848cf595f649958cfe92d58"}},{"ruleId":"D1","level":"warning","message":{"text":"OrcFormatStatisticsReportUtil.convertToColumnStats (cyclomatic 21): OrcFormatStatisticsReportUtil.convertToColumnStats has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-formats/flink-orc/src/main/java/org/apache/flink/orc/util/OrcFormatStatisticsReportUtil.java"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"87c5c05e201000bd49c0890c8934dca9812a9d3eee44c7fe21a8a8e40b37bbed"}},{"ruleId":"D1","level":"warning","message":{"text":"StreamingJobGraphGenerator.createChain (cyclomatic 20): StreamingJobGraphGenerator.createChain has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/graph/StreamingJobGraphGenerator.java"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec7e6b8a3ac570c597a72cb185e26da3c2a6ce07385b05e0e3c784cc82168b01"}},{"ruleId":"D1","level":"warning","message":{"text":"LongParser.parseField (cyclomatic 20): LongParser.parseField has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/parser/LongParser.java"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"9360eb025e9219974cc2d639c77db0545252b299365070dc8b2f48b899eeb1c2"}},{"ruleId":"D1","level":"warning","message":{"text":"LongValueParser.parseField (cyclomatic 20): LongValueParser.parseField has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/parser/LongValueParser.java"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"137f60b458c105943a0ee191674b3f5e11c145ca32e930790a76596e67dd98db"}},{"ruleId":"D1","level":"warning","message":{"text":"InternalDeSerializer.readUTF (cyclomatic 20): InternalDeSerializer.readUTF has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/Record.java"},"region":{"startLine":1455}}}],"partialFingerprints":{"codehealthFindingId/v1":"83fd4cc1eef1a876b9062fc81db71bd847d4a5bd69cb3f240bd82d881efe1f7d"}},{"ruleId":"D1","level":"warning","message":{"text":"DataInputDeserializer.readString (cyclomatic 20): DataInputDeserializer.readString has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/core/memory/DataInputDeserializer.java"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"722fb335826e75d84f56850cf9317ba527e253a02e0c8a3417edf92e03af20d2"}},{"ruleId":"D1","level":"warning","message":{"text":"TpchResultComparator.main (cyclomatic 20): TpchResultComparator.main has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-end-to-end-tests/flink-tpch-test/src/main/java/org/apache/flink/table/tpch/TpchResultComparator.java"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"df7259314c5319814d427af12179233d6747c24b21cb9846b44df36cd8a09e34"}},{"ruleId":"D1","level":"warning","message":{"text":"SpillingThread.go (cyclomatic 20): SpillingThread.go has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/sort/BinaryExternalSorter.java"},"region":{"startLine":910}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1b758d198ee8d3e80410f1b2ca80e6537f116c625686b88d163410245e37943"}},{"ruleId":"D1","level":"warning","message":{"text":"RelTimeIndicatorConverter.visit (cyclomatic 20): RelTimeIndicatorConverter.visit has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/calcite/RelTimeIndicatorConverter.java"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7e608901119b3ff61f1541dd24487e4417427cd027b2e62af12ac76efbc7157"}},{"ruleId":"D1","level":"warning","message":{"text":"EventSerializer.fromSerializedEvent (cyclomatic 20): EventSerializer.fromSerializedEvent has cyclomatic complexity 20 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/io/network/api/serialization/EventSerializer.java"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"a57de096e2a1cfd4e4fa177265655f7289b0d25a08028bd62371b8372a80f5e5"}},{"ruleId":"D1","level":"warning","message":{"text":"ReduceCombineDriver.run (cyclomatic 20): ReduceCombineDriver.run has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/operators/ReduceCombineDriver.java"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"313a5082bcdfabdbcaf84fc0cab457640b41d9fbb590b807252144688e2a5879"}},{"ruleId":"D1","level":"warning","message":{"text":"NativeS3FileSystemFactory.create (cyclomatic 20): NativeS3FileSystemFactory.create has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-filesystems/flink-s3-fs-native/src/main/java/org/apache/flink/fs/s3native/NativeS3FileSystemFactory.java"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"2273e1a32168e03900a5c78a1ae6b6569180e2712880d082ace8d97b5e1955d6"}},{"ruleId":"D1","level":"warning","message":{"text":"ColumnPredicate.castLiteral (cyclomatic 20): ColumnPredicate.castLiteral has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-formats/flink-orc/src/main/java/org/apache/flink/orc/OrcFilters.java"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e677f26dd50d8f1bc49f772751ec0c1eb1c45291364310c6e1615c10aa24c05"}},{"ruleId":"D1","level":"warning","message":{"text":"OrcSplitReaderUtil.logicalTypeToOrcType (cyclomatic 20): OrcSplitReaderUtil.logicalTypeToOrcType has cyclomatic complexity 20 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-formats/flink-orc/src/main/java/org/apache/flink/orc/OrcSplitReaderUtil.java"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5df7047a6b881c72712fbc5923b255e53b47f1f085db727a0819f2b59f71659"}},{"ruleId":"D1","level":"warning","message":{"text":"SqlTypeUtil.isComparable (cyclomatic 20): SqlTypeUtil.isComparable has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql/type/SqlTypeUtil.java"},"region":{"startLine":1652}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ec096da713e0b5fa2dbc83af1a9ebfc3ada197bb7e5009c5c82b7dfaa7d758c"}},{"ruleId":"D1","level":"warning","message":{"text":"TypeExtractor.analyzePojo (cyclomatic 19): TypeExtractor.analyzePojo has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/java/typeutils/TypeExtractor.java"},"region":{"startLine":2128}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a5a0080e454f9d3b4628cea100de00f0df9265662e4792d5e1fc97ecefb73a5"}},{"ruleId":"D1","level":"warning","message":{"text":"TypeExtractor.createTypeInfoWithTypeHierarchy (cyclomatic 19): TypeExtractor.createTypeInfoWithTypeHierarchy has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/java/typeutils/TypeExtractor.java"},"region":{"startLine":878}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2d91020ad77c147029386bc7f5f473e3a3e50d286041869974bfe61a51bf903"}},{"ruleId":"D1","level":"warning","message":{"text":"TimeIntervalJoin.processElement1 (cyclomatic 19): TimeIntervalJoin.processElement1 has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/interval/TimeIntervalJoin.java"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"44979abb9ca9bbd03b4aad31e27cf0405a2cfdc4ca8b27565f61380b95d74608"}},{"ruleId":"D1","level":"warning","message":{"text":"TimeIntervalJoin.processElement2 (cyclomatic 19): TimeIntervalJoin.processElement2 has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/interval/TimeIntervalJoin.java"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4f325df8a64fb2bb446861bb9cb9a2a83fad31cdb876447718a5c2a9240ec6c"}},{"ruleId":"D1","level":"warning","message":{"text":"RetractableTopNFunction.retractRecordWithRowNumber (cyclomatic 19): RetractableTopNFunction.retractRecordWithRowNumber has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/rank/RetractableTopNFunction.java"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e9c731004364380313a57586f889556b7de58ee4b75ed6d25a8d8185aad5ade"}},{"ruleId":"D1","level":"warning","message":{"text":"StringUtf8Utils.decodeUTF8Strict (cyclomatic 19): StringUtf8Utils.decodeUTF8Strict has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/util/StringUtf8Utils.java"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"95845e669d7948caf1a7f0a11cdb485ae3c8c3d5fd4fdebd5a6605a86cd572cf"}},{"ruleId":"D1","level":"warning","message":{"text":"StringUtf8Utils.decodeUTF8Strict (cyclomatic 19): StringUtf8Utils.decodeUTF8Strict has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/util/StringUtf8Utils.java"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f7bf6163c8be2391b26a84479124e5d36b12bbc79adbe86ec83d71994a5bc82"}},{"ruleId":"D1","level":"warning","message":{"text":"NumericPrimitiveCastRule.matches (cyclomatic 19): NumericPrimitiveCastRule.matches has cyclomatic complexity 19 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/functions/casting/NumericPrimitiveCastRule.java"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f4a1f3149653848f6a53387b8adbca3cc782d13a53041e6ca4d939f32421135"}},{"ruleId":"D1","level":"warning","message":{"text":"FlinkFilterJoinRule.perform (cyclomatic 19): FlinkFilterJoinRule.perform has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/rules/logical/FlinkFilterJoinRule.java"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f76706621f7975aac70c366a0db9eb26deab0a94e6d01b190e0fd06fc3deb60"}},{"ruleId":"D1","level":"warning","message":{"text":"FlinkSemiAntiJoinJoinTransposeRule.onMatch (cyclomatic 19): FlinkSemiAntiJoinJoinTransposeRule.onMatch has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/rules/logical/FlinkSemiAntiJoinJoinTransposeRule.java"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea6f09bc37d0863d1bdf5b2aff5442e4f718da4bf44edff648a53420b4557290"}},{"ruleId":"D1","level":"warning","message":{"text":"LogicalJoinToLateralSnapshotJoinRule.onMatch (cyclomatic 19): LogicalJoinToLateralSnapshotJoinRule.onMatch has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/rules/logical/LogicalJoinToLateralSnapshotJoinRule.java"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"48600b0392950258240d9740d97c48212b95685f6852194f601d941473c24277"}},{"ruleId":"D1","level":"warning","message":{"text":"StringUtf8Utils.decodeUTF8Strict (cyclomatic 19): StringUtf8Utils.decodeUTF8Strict has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/data/binary/StringUtf8Utils.java"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0c6b458c5f3d1bc9af5cdaa6cbf6987bffff3df2f137813b40f4eb4f217aeb6"}},{"ruleId":"D1","level":"warning","message":{"text":"StringUtf8Utils.decodeUTF8Strict (cyclomatic 19): StringUtf8Utils.decodeUTF8Strict has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/data/binary/StringUtf8Utils.java"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b56c20555d64b4636238e7d83f371b7e899255378d3ebd307977baec7f03e91"}},{"ruleId":"D1","level":"warning","message":{"text":"StaticFileServerHandler.respondToRequest (cyclomatic 19): StaticFileServerHandler.respondToRequest has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/rest/handler/legacy/files/StaticFileServerHandler.java"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"b05afd3956fe83cc8790c6b2adb0606326b0a43240809aa0d017c3893dfa9166"}},{"ruleId":"D1","level":"warning","message":{"text":"IterationHeadTask.run (cyclomatic 19): IterationHeadTask.run has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/iterative/task/IterationHeadTask.java"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fa1f90857b2b47fe1089f8c962b14dcc53e17fcb4cc898b268f2a84dd1918f6"}},{"ruleId":"D1","level":"warning","message":{"text":"LeaderConnectingAddressListener.findConnectingAddress (cyclomatic 19): LeaderConnectingAddressListener.findConnectingAddress has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/net/ConnectionUtils.java"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"548958cc870199915df4f60d6d0333d1ab541dbad27221e8f38f8e1f82666a4e"}},{"ruleId":"D1","level":"warning","message":{"text":"RexSimplify.simplifyCast (cyclomatic 19): RexSimplify.simplifyCast has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/rex/RexSimplify.java"},"region":{"startLine":2567}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e6eab7671aebd25e291f39284108824e3dfcbfc018309fe43d723d044437403"}},{"ruleId":"D1","level":"warning","message":{"text":"RexSimplify.verify (cyclomatic 19): RexSimplify.verify has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/rex/RexSimplify.java"},"region":{"startLine":2455}}}],"partialFingerprints":{"codehealthFindingId/v1":"478b92a1fca994d3cc7feee580fc4a10e8a398c3f5d704f06cb04e63b174690a"}},{"ruleId":"D1","level":"warning","message":{"text":"BeamMapStateHandler.handleIterate (cyclomatic 18): BeamMapStateHandler.handleIterate has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/streaming/api/runners/python/beam/state/BeamMapStateHandler.java"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"93df82edaae7a748fe492bc8886dced2d42bebb8a7ab2c14052d4a8f54d8957a"}},{"ruleId":"D1","level":"warning","message":{"text":"StreamTask.processInput (cyclomatic 18): StreamTask.processInput has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/runtime/tasks/StreamTask.java"},"region":{"startLine":678}}}],"partialFingerprints":{"codehealthFindingId/v1":"72120b4a41107b94334be497b52fc552e174ae8f54f467db14d818f89cef3200"}},{"ruleId":"D1","level":"warning","message":{"text":"DelimitedInputFormat.getStatistics (cyclomatic 18): DelimitedInputFormat.getStatistics has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/common/io/DelimitedInputFormat.java"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd57c780acd406237c033125e1d756a87002b73580c7d88825ccbc23cdecf257"}},{"ruleId":"D1","level":"warning","message":{"text":"DelimitedInputFormat.readLine (cyclomatic 18): DelimitedInputFormat.readLine has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/common/io/DelimitedInputFormat.java"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"90098a18ed2d8de02a7c18f2223f0981e30808db5c0434f77a156258d757b7b0"}},{"ruleId":"D1","level":"warning","message":{"text":"SqlJsonUtils.jsonQuery (cyclomatic 18): SqlJsonUtils.jsonQuery has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/SqlJsonUtils.java"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"69e9f9931ca489954df03ffa91b9c5a07077c2a019117054585a67ceb2ed1711"}},{"ruleId":"D1","level":"warning","message":{"text":"EncodingUtils.escapeJavaStyleString (cyclomatic 18): EncodingUtils.escapeJavaStyleString has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/utils/EncodingUtils.java"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac47acfc019864730ca482ed551c18570cc003f4d55d2d02e6280be7902dfbf1"}},{"ruleId":"D1","level":"warning","message":{"text":"StreamExecPythonGroupWindowAggregate.generateWindowAssignerAndTrigger (cyclomatic 18): StreamExecPythonGroupWindowAggregate.generateWindowAssignerAndTrigger has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/stream/StreamExecPythonGroupWindowAggregate.java"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"5db6d4ac5bc1cc4e6b193c8ac3a626608475940d2917f93016fa2133d7545d03"}},{"ruleId":"D1","level":"warning","message":{"text":"FlinkAggregateExpandDistinctAggregatesRule.rewriteUsingGroupingSets (cyclomatic 18): FlinkAggregateExpandDistinctAggregatesRule.rewriteUsingGroupingSets has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/rules/logical/FlinkAggregateExpandDistinctAggregatesRule.java"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"85eba1a4281b892e5e688379a3f4af7433cb813dec168bb1a2cc47ea79315ed6"}},{"ruleId":"D1","level":"warning","message":{"text":"SplitAggregateRule.onMatch (cyclomatic 18): SplitAggregateRule.onMatch has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/rules/logical/SplitAggregateRule.java"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"e62581dd41b14398d2cf272965094c4f779b19bcae2d301f17fda3e90f18b33d"}},{"ruleId":"D1","level":"warning","message":{"text":"SubQueryRelDecorrelator.decorrelateRel (cyclomatic 18): SubQueryRelDecorrelator.decorrelateRel has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/rules/logical/SubQueryDecorrelator.java"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2afbd1e0d1e6c499e21e1c3c45cf11e4c40d4a850d8e21c952ef22fe749715b"}},{"ruleId":"D1","level":"warning","message":{"text":"StringUtf8Utils.firstInvalidUtf8ByteIndex (cyclomatic 18): StringUtf8Utils.firstInvalidUtf8ByteIndex has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/data/binary/StringUtf8Utils.java"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"e15bbd8d179af4fe304430b509893501ef982cdbda8448f0fe0d37ec8701a5d7"}},{"ruleId":"D1","level":"warning","message":{"text":"HttpRequestHandler.channelRead0 (cyclomatic 18): HttpRequestHandler.channelRead0 has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime-web/src/main/java/org/apache/flink/runtime/webmonitor/HttpRequestHandler.java"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"db17c66d25b467bff7982aad2668fc78b5ce235570ed8ba5ff02df7ea5435444"}},{"ruleId":"D1","level":"warning","message":{"text":"BlobServerConnection.put (cyclomatic 18): BlobServerConnection.put has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/blob/BlobServerConnection.java"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb7fd70b48758440923411946c0e86f656691bc9d65acdb7d3e9647c2fa53fde"}},{"ruleId":"D1","level":"warning","message":{"text":"JMXReporter.replaceInvalidChars (cyclomatic 18): JMXReporter.replaceInvalidChars has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-metrics/flink-metrics-jmx/src/main/java/org/apache/flink/metrics/jmx/JMXReporter.java"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cc664bbfce5e91c8fbfb8ccd3f751389501d40ebbd8226041bfbcefe237c1e1"}},{"ruleId":"D1","level":"warning","message":{"text":"JsonRowDeserializationSchema.createConverterForSimpleType (cyclomatic 18): JsonRowDeserializationSchema.createConverterForSimpleType has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/formats/json/JsonRowDeserializationSchema.java"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"3933960e593a313a5307bee53f71d24632f8ed2873ff5f815793bf2a864b5677"}},{"ruleId":"D1","level":"warning","message":{"text":"JsonRowSerializationSchema.createConverterForSimpleType (cyclomatic 18): JsonRowSerializationSchema.createConverterForSimpleType has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/formats/json/JsonRowSerializationSchema.java"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc1cf64b5205b466da9a443573f7082a8ceda0d3286db34844b454573a490e64"}},{"ruleId":"D1","level":"warning","message":{"text":"MessageWriter.createMessageWriter (cyclomatic 18): MessageWriter.createMessageWriter has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-formats/flink-parquet/src/main/java/org/apache/flink/formats/parquet/protobuf/PatchedProtoWriteSupport.java"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"5752cb70fa9e05b8289bdbb53baf05d04df00fdd30d55e45b2eef0fb111559b1"}},{"ruleId":"D1","level":"warning","message":{"text":"TritonInferenceModelFunction.handleErrorResponseWithRetry (cyclomatic 18): TritonInferenceModelFunction.handleErrorResponseWithRetry has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-models/flink-model-triton/src/main/java/org/apache/flink/model/triton/TritonInferenceModelFunction.java"},"region":{"startLine":727}}}],"partialFingerprints":{"codehealthFindingId/v1":"158541369b29eab7861cf3599cb67fb695ee8c6f30e47ce4ca29258ffc8dcb2a"}},{"ruleId":"D1","level":"warning","message":{"text":"TritonTypeMapper.deserializeArrayFromJson (cyclomatic 18): TritonTypeMapper.deserializeArrayFromJson has cyclomatic complexity 18 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-models/flink-model-triton/src/main/java/org/apache/flink/model/triton/TritonTypeMapper.java"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"e215f344a4623874af569e0bc5c5b6b316c77137f74a190111a29079461f089d"}},{"ruleId":"D1","level":"warning","message":{"text":"RexSimplify.simplifyCase (cyclomatic 18): RexSimplify.simplifyCase has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/rex/RexSimplify.java"},"region":{"startLine":1409}}}],"partialFingerprints":{"codehealthFindingId/v1":"71cdfe6053e1da7a0bd16e6829f66fa4158f4161e06133bf880033b076dec811"}},{"ruleId":"D1","level":"warning","message":{"text":"RexSimplify.simplifyNot (cyclomatic 18): RexSimplify.simplifyNot has cyclomatic complexity 18 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/rex/RexSimplify.java"},"region":{"startLine":991}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c337822180754f5df284d528309e3be2386d292a6bf5dab83ac5907f8fcae3c"}},{"ruleId":"D1","level":"warning","message":{"text":"StreamTaskStateInitializerImpl.streamOperatorStateContext (cyclomatic 17): StreamTaskStateInitializerImpl.streamOperatorStateContext has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/StreamTaskStateInitializerImpl.java"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ad9d803a893c40e158ee7fd8ee8be07a9c7ff47210a3289a8cfecda81cf47f4"}},{"ruleId":"D1","level":"warning","message":{"text":"GenericCsvInputFormat.parseRecord (cyclomatic 17): GenericCsvInputFormat.parseRecord has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/common/io/GenericCsvInputFormat.java"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"d90ac5aa36ee9eaa1e6e37826840e7226656cf8e1a0eeb49d21f9ee1b08d4be3"}},{"ruleId":"D1","level":"warning","message":{"text":"PythonBridgeUtils.primitiveArrayConverter (cyclomatic 17): PythonBridgeUtils.primitiveArrayConverter has cyclomatic complexity 17 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/api/common/python/PythonBridgeUtils.java"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9b1f3b52b160c6c6c5a96ff3942381635b1d9d6d07fcad0c0d907372b26b12c"}},{"ruleId":"D1","level":"warning","message":{"text":"ByteParser.parseField (cyclomatic 17): ByteParser.parseField has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/parser/ByteParser.java"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a0c7b4af5c7123576b4b552c569a9f94abb277a0cd4c17c905da7e2aab92479"}},{"ruleId":"D1","level":"warning","message":{"text":"ByteValueParser.parseField (cyclomatic 17): ByteValueParser.parseField has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/parser/ByteValueParser.java"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebbe51a6bc9fb2b4aa9c8ea443a1765100a847b7e99b66b444214577bd7341f9"}},{"ruleId":"D1","level":"warning","message":{"text":"IntParser.parseField (cyclomatic 17): IntParser.parseField has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/parser/IntParser.java"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bcf445d5c041d1aac75821b47cdf3481e0a2321e54d10505eb39485ea7a2ad1"}},{"ruleId":"D1","level":"warning","message":{"text":"IntValueParser.parseField (cyclomatic 17): IntValueParser.parseField has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/parser/IntValueParser.java"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"097a542b209c2da3eb9fbd1b6d2b83bcb8d1d6490f6a1af10ebafeae95b3e1c1"}},{"ruleId":"D1","level":"warning","message":{"text":"ShortParser.parseField (cyclomatic 17): ShortParser.parseField has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/parser/ShortParser.java"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"baee04497b12fff975db93e60f5f1acd204acf303f09b1d8f5b07c7883feab80"}},{"ruleId":"D1","level":"warning","message":{"text":"ShortValueParser.parseField (cyclomatic 17): ShortValueParser.parseField has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/parser/ShortValueParser.java"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"3771392ca7634eba6c45f36c5e058a0f34a8db578f7f4226243fca3a3513b9cc"}},{"ruleId":"D1","level":"warning","message":{"text":"ResultIterator.prefetch (cyclomatic 17): ResultIterator.prefetch has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-sql-gateway/src/main/java/org/apache/flink/table/gateway/service/application/ScriptExecutor.java"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a1bd0d1369972f6753cff3f9b5eeb799f0e8fc13e9efc822bd34d28ac50276e"}},{"ruleId":"D1","level":"warning","message":{"text":"SortMergeJoinFunction.doSortMergeJoin (cyclomatic 17): SortMergeJoinFunction.doSortMergeJoin has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/SortMergeJoinFunction.java"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a04d5315b578d831289ba7b455f21764948b7f85a81977f03f954f21268c556"}},{"ruleId":"D1","level":"warning","message":{"text":"BinaryExternalSorter.write (cyclomatic 17): BinaryExternalSorter.write has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/sort/BinaryExternalSorter.java"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"509742d718c23887bd58b01ca7c783a7a8533346bddc284961d9e5595581b4ee"}},{"ruleId":"D1","level":"warning","message":{"text":"PythonTableUtils.arrayConstructor (cyclomatic 17): PythonTableUtils.arrayConstructor has cyclomatic complexity 17 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/table/utils/python/PythonTableUtils.java"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"51aa9daf0e51b195b6121a1762e46f1555a6a8f9bcd55bce8958ee82a274e5bd"}},{"ruleId":"D1","level":"warning","message":{"text":"DateTimeUtils.parseTime (cyclomatic 17): DateTimeUtils.parseTime has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/utils/DateTimeUtils.java"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"02bba89be2732dce7684c14298a514e1cf8714f498764b930d8b8394720ffe64"}},{"ruleId":"D1","level":"warning","message":{"text":"RowCsvInputFormat.parseRecord (cyclomatic 17): RowCsvInputFormat.parseRecord has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-api-java-bridge/src/main/java/org/apache/flink/table/sources/format/RowCsvInputFormat.java"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"740f6969d28cf0f4af93d3bcb1692b8336679f2d1b998b56a89fa897eda77906"}},{"ruleId":"D1","level":"warning","message":{"text":"TypeStringUtils.tokenize (cyclomatic 17): TypeStringUtils.tokenize has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/legacy/utils/TypeStringUtils.java"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f8dfbcc88e3f399f38dc1a12c25218df6191804bbe2680f0b56b7aa6fe77c76"}},{"ruleId":"D1","level":"warning","message":{"text":"ExecNodeStringTreeBuilder.visit (cyclomatic 17): ExecNodeStringTreeBuilder.visit has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/utils/ExecNodePlanDumper.java"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"3df6343c9d4fcc9efda110cc5409c09f8d014813435ab6ebd5f692bfd9228c42"}},{"ruleId":"D1","level":"warning","message":{"text":"FlinkRuntimeFilterProgram.tryPushDownProbeAndInjectRuntimeFilter (cyclomatic 17): FlinkRuntimeFilterProgram.tryPushDownProbeAndInjectRuntimeFilter has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/optimize/program/FlinkRuntimeFilterProgram.java"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6d3133ffec4fcd9edee8bf4bbfef499582744afab9d0ed03d7f213c082d6991"}},{"ruleId":"D1","level":"warning","message":{"text":"FlinkRewriteSubQueryRule.getSupportedScalarQuery (cyclomatic 17): FlinkRewriteSubQueryRule.getSupportedScalarQuery has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/rules/logical/FlinkRewriteSubQueryRule.java"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0cc3b444b1d29e84af3e88378c224e8c8590b4af5cabb503cd94f2829cb8914"}},{"ruleId":"D1","level":"warning","message":{"text":"CatalogTableStatisticsConverter.convertToColumnStats (cyclomatic 17): CatalogTableStatisticsConverter.convertToColumnStats has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/utils/CatalogTableStatisticsConverter.java"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c3cd513a0d8556556a425e422d86cc604417c1500486ca55add24132cd66953"}},{"ruleId":"D1","level":"warning","message":{"text":"ValueDataTypeConverter.extractDataType (cyclomatic 17): ValueDataTypeConverter.extractDataType has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/utils/ValueDataTypeConverter.java"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"357c4ae6159ba8facc0a05a0dae8282b2c757cd6885dc709318c2defd10fc3ea"}},{"ruleId":"D1","level":"warning","message":{"text":"ThreadDumpInfo.stringifyThreadInfo (cyclomatic 17): ThreadDumpInfo.stringifyThreadInfo has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/rest/messages/ThreadDumpInfo.java"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4b58067ff2e5d19e64b2758f40766ab08156b6b4b363e0aeb812fef17866e39"}},{"ruleId":"D1","level":"warning","message":{"text":"CheckpointCoordinator.receiveAcknowledgeMessage (cyclomatic 17): CheckpointCoordinator.receiveAcknowledgeMessage has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/CheckpointCoordinator.java"},"region":{"startLine":1205}}}],"partialFingerprints":{"codehealthFindingId/v1":"bab43627e6d5b1d982e0c8ecaed9ef7e1fb4965e2f3d51e17a7e24385f48dcb3"}},{"ruleId":"D1","level":"warning","message":{"text":"CheckpointStatsHistory.replacePendingCheckpointById (cyclomatic 17): CheckpointStatsHistory.replacePendingCheckpointById has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/CheckpointStatsHistory.java"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"36cb2f2ef46fc40be6bcb26a680e271bc6e3dc66078fec68331a6c9363d2ad02"}},{"ruleId":"D1","level":"warning","message":{"text":"EventSerializer.toSerializedEvent (cyclomatic 17): EventSerializer.toSerializedEvent has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/io/network/api/serialization/EventSerializer.java"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf80456c302866273084ee4ea82da9a6404d63caa1427d6d5f31fefa4077ee58"}},{"ruleId":"D1","level":"warning","message":{"text":"BatchTask.resetAllInputs (cyclomatic 17): BatchTask.resetAllInputs has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/operators/BatchTask.java"},"region":{"startLine":897}}}],"partialFingerprints":{"codehealthFindingId/v1":"55d6d4371bb2f56025617c0bdbbd0799f790f997e5b75a2e9fe95a7ec8ce074b"}},{"ruleId":"D1","level":"warning","message":{"text":"Utils.createTaskExecutorContext (cyclomatic 17): Utils.createTaskExecutorContext has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-yarn/src/main/java/org/apache/flink/yarn/Utils.java"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"0007dded6c082409ba63e23bc92a6f354c35b79d94d03185f946268fff0e2447"}},{"ruleId":"D1","level":"warning","message":{"text":"RexBuilder.makeLiteral (cyclomatic 17): RexBuilder.makeLiteral has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/rex/RexBuilder.java"},"region":{"startLine":1219}}}],"partialFingerprints":{"codehealthFindingId/v1":"a48fc0339bb908e6845bac3fe529f75992fa4511d8605681bf7e2f0193bd1212"}},{"ruleId":"D1","level":"warning","message":{"text":"GetBucketMetricsConfigurationHandler.doEndElement (cyclomatic 17): GetBucketMetricsConfigurationHandler.doEndElement has cyclomatic complexity 17 (threshold 15). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-filesystems/flink-s3-fs-base/src/main/java/com/amazonaws/services/s3/model/transform/XmlResponsesSaxParser.java"},"region":{"startLine":2620}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0c692f8eb8110b0037ca7e1641a5f243b1bcf36eb909eab9f40146b4fbabe3d"}},{"ruleId":"D1","level":"warning","message":{"text":"InternalTimerServiceImpl.startTimerService (cyclomatic 16): InternalTimerServiceImpl.startTimerService has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/InternalTimerServiceImpl.java"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"6369b1469188d9cc95ae73e3a7a7de9aae059a848cb6b3fe58e4642cde4aac02"}},{"ruleId":"D1","level":"warning","message":{"text":"TypeInfoToProtoConverter.toTypeInfoProto (cyclomatic 16): TypeInfoToProtoConverter.toTypeInfoProto has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/streaming/api/utils/PythonTypeUtils.java"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c5fc0538ca945f6394e7f7bcd60d9e9748d1193357e02ffbf86794264436394"}},{"ruleId":"D1","level":"warning","message":{"text":"StreamingJobGraphGenerator.areOperatorsChainable (cyclomatic 16): StreamingJobGraphGenerator.areOperatorsChainable has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/graph/StreamingJobGraphGenerator.java"},"region":{"startLine":1802}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d1cd69be279d6eda01fab4596b68662f0800b3548bef3bb02419d074b329a90"}},{"ruleId":"D1","level":"warning","message":{"text":"EvictingWindowOperator.processElement (cyclomatic 16): EvictingWindowOperator.processElement has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/EvictingWindowOperator.java"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9075fd3d0f7fba3905e7debc552d62c28ee213eeb623508f57884a15f43a86c"}},{"ruleId":"D1","level":"warning","message":{"text":"WindowOperator.processElement (cyclomatic 16): WindowOperator.processElement has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/WindowOperator.java"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e2546aabc7b6ca595bd085f1a793f61f4521095987d97a06168eb521d75581f"}},{"ruleId":"D1","level":"warning","message":{"text":"ClosureCleaner.clean (cyclomatic 16): ClosureCleaner.clean has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/java/ClosureCleaner.java"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ad459ccb78476b6d9a151920af0792e708406fdcac2ff833e9e9fe305325913"}},{"ruleId":"D1","level":"warning","message":{"text":"FileInputFormat.createInputSplits (cyclomatic 16): FileInputFormat.createInputSplits has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/common/io/FileInputFormat.java"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fff6f9fb68cac3d5c7a459528fc962f623ceb2e2e831a658248297427a896fc"}},{"ruleId":"D1","level":"warning","message":{"text":"LongParser.parseField (cyclomatic 16): LongParser.parseField has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/parser/LongParser.java"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"31f768dbc281b42bfa52ccf82edab272ac0a2882fbde4f9b3941a6a1bc224276"}},{"ruleId":"D1","level":"warning","message":{"text":"Record.serializeHeader (cyclomatic 16): Record.serializeHeader has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/Record.java"},"region":{"startLine":1037}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8f7b391963ed34387afe122cbf5a2a95eb80dc942528314fbeb56bcaeb25193"}},{"ruleId":"D1","level":"warning","message":{"text":"FileSystem.initOutPathLocalFS (cyclomatic 16): FileSystem.initOutPathLocalFS has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/core/fs/FileSystem.java"},"region":{"startLine":753}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ae26964eedeed74a4ee21b4cc27c8bc157c22ecf1402686b17aafdaecbba483"}},{"ruleId":"D1","level":"warning","message":{"text":"RetractableTopNFunction.processElement (cyclomatic 16): RetractableTopNFunction.processElement has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/rank/RetractableTopNFunction.java"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"a07f72d0e94aef5f91482f9210592808d3796027fcefa4d994d4a696814e8ed8"}},{"ruleId":"D1","level":"warning","message":{"text":"RetractableTopNFunction.retractRecordWithoutRowNumber (cyclomatic 16): RetractableTopNFunction.retractRecordWithoutRowNumber has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/rank/RetractableTopNFunction.java"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ccfbb567bd9e786aa27488cf8a1a6ba05ce6b010a7880eb67f95b6de009704e"}},{"ruleId":"D1","level":"warning","message":{"text":"SqlLikeUtils.sqlToRegexSimilar (cyclomatic 16): SqlLikeUtils.sqlToRegexSimilar has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/functions/SqlLikeUtils.java"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"0533ac841e125d2960f097f826a407f0827c31419f6f582a362e952f9bd9ea28"}},{"ruleId":"D1","level":"warning","message":{"text":"StreamExecOverAggregate.translateToPlanInternal (cyclomatic 16): StreamExecOverAggregate.translateToPlanInternal has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/stream/StreamExecOverAggregate.java"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd401e43cbdb0586c0b8cedc4d54b0579db1a12a8e3c0a15d5dbaf742a100257"}},{"ruleId":"D1","level":"warning","message":{"text":"BinaryStringDataUtil.toInt (cyclomatic 16): BinaryStringDataUtil.toInt has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/data/binary/BinaryStringDataUtil.java"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"1334e456cce621960d33a93aa9aa48bbcc04bc3758e4deaa792d8b48ac768bfe"}},{"ruleId":"D1","level":"warning","message":{"text":"BinaryStringDataUtil.toLong (cyclomatic 16): BinaryStringDataUtil.toLong has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/data/binary/BinaryStringDataUtil.java"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"95d9c459df27946f241a2a904ad6c25397f1fe868324b72c33ccb350e5f331bd"}},{"ruleId":"D1","level":"warning","message":{"text":"ExtractionUtils.isInvokable (cyclomatic 16): ExtractionUtils.isInvokable has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/extraction/ExtractionUtils.java"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"66d02e9c56941663e8ad8105508ef396265424c1dcbb21b08a0dd1bc7e11b3e8"}},{"ruleId":"D1","level":"warning","message":{"text":"TypeInferenceUtil.inferInputTypes (cyclomatic 16): TypeInferenceUtil.inferInputTypes has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/inference/TypeInferenceUtil.java"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2ffd7676648c5aa0a96a68e9cc0e4bfee0533d9166e10a89b724dd27789d546"}},{"ruleId":"D1","level":"warning","message":{"text":"FileUploadHandler.channelRead0 (cyclomatic 16): FileUploadHandler.channelRead0 has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/rest/FileUploadHandler.java"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"60707a0720ee6941d033a496a05dad0d2809a05a5390f1074c11870bda83760b"}},{"ruleId":"D1","level":"warning","message":{"text":"HadoopFsFactory.create (cyclomatic 16): HadoopFsFactory.create has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-filesystems/flink-hadoop-fs/src/main/java/org/apache/flink/runtime/fs/hdfs/HadoopFsFactory.java"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b5e69d38e2f9378a28a29f265ffc6bbd5a68944deb054a14e3fa00c7a05da7d"}},{"ruleId":"D1","level":"warning","message":{"text":"DefaultExecutionGraphBuilder.buildGraph (cyclomatic 16): DefaultExecutionGraphBuilder.buildGraph has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/executiongraph/DefaultExecutionGraphBuilder.java"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"396e1adcf7c39f8d1ef11d12b7397f166ea3fa2a89d03cda9486b86ccc0a73e6"}},{"ruleId":"D1","level":"warning","message":{"text":"PipelinedSubpartition.pollBuffer (cyclomatic 16): PipelinedSubpartition.pollBuffer has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/PipelinedSubpartition.java"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6a5d246fceb49642251d5499145a5eb7c1192923fff750fe966e68c06d338f6"}},{"ruleId":"D1","level":"warning","message":{"text":"CoGroupWithSolutionSetFirstDriver.run (cyclomatic 16): CoGroupWithSolutionSetFirstDriver.run has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/operators/CoGroupWithSolutionSetFirstDriver.java"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"7652dcdec6d2975b9427d0030d9353b25bafb29159a7a2001ae40cebfcbf319d"}},{"ruleId":"D1","level":"warning","message":{"text":"CoGroupWithSolutionSetSecondDriver.run (cyclomatic 16): CoGroupWithSolutionSetSecondDriver.run has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/operators/CoGroupWithSolutionSetSecondDriver.java"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"364c2a03ff86ca7977d4b8cdef7593340ed54020dcf6725fb7f41e6607c4517e"}},{"ruleId":"D1","level":"warning","message":{"text":"OperatorStateRestoreOperation.restore (cyclomatic 16): OperatorStateRestoreOperation.restore has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/state/OperatorStateRestoreOperation.java"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"69c9768c9c99f116df1b2d8f48e16777965b7f0c2e61447a434d35010df588d2"}},{"ruleId":"D1","level":"warning","message":{"text":"TaskExecutor.submitTask (cyclomatic 16): TaskExecutor.submitTask has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/taskexecutor/TaskExecutor.java"},"region":{"startLine":663}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd73ac504d1bb8d5401b1cd9beb9cae8908adb3a2cd52b8265b2786752bd6a62"}},{"ruleId":"D1","level":"warning","message":{"text":"SnapshotFileMergingCompatibilityITCase.verifyCheckpointExist (cyclomatic 16): SnapshotFileMergingCompatibilityITCase.verifyCheckpointExist has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-tests/src/test/java/org/apache/flink/test/checkpointing/SnapshotFileMergingCompatibilityITCase.java"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d8c1af1afae9ab283f8573b241ce3b24c43a766baf2540bbdd1b42b52d7d5fc"}},{"ruleId":"D1","level":"warning","message":{"text":"DebeziumJsonDeserializationSchema.deserialize (cyclomatic 16): DebeziumJsonDeserializationSchema.deserialize has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-formats/flink-json/src/main/java/org/apache/flink/formats/json/debezium/DebeziumJsonDeserializationSchema.java"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"92e68c2af17823598e908a68d3a261a588ecebddb26dbcd0eff55c2dcca05758"}},{"ruleId":"D1","level":"warning","message":{"text":"RexSimplify.simplifyIs2 (cyclomatic 16): RexSimplify.simplifyIs2 has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/rex/RexSimplify.java"},"region":{"startLine":1160}}}],"partialFingerprints":{"codehealthFindingId/v1":"b46765c620ec29904184887d4b6503db40ef5828a801541e151f0e6f5cc37cf4"}},{"ruleId":"D1","level":"warning","message":{"text":"RemoveCorrelationForScalarProjectRule.onMatch (cyclomatic 16): RemoveCorrelationForScalarProjectRule.onMatch has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql2rel/RelDecorrelator.java"},"region":{"startLine":2457}}}],"partialFingerprints":{"codehealthFindingId/v1":"27042336e549b113971a8714574ca9c87bb96a932b26a967ec1c09128b74a516"}},{"ruleId":"D2","level":"warning","message":{"text":"TypeExtractor.validateInfo (cognitive 228): TypeExtractor.validateInfo has cognitive complexity 228 (threshold 15). Drivers by points: if/else 200, boolean chains 18, loops 10 (nesting depth added 165). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/java/typeutils/TypeExtractor.java"},"region":{"startLine":1487}}}],"partialFingerprints":{"codehealthFindingId/v1":"91a1a56fe33512ecc2e197216816790b02e1cd33d368df90ea587becf2f9b0f4"}},{"ruleId":"D2","level":"warning","message":{"text":"SqlTypeFactoryImpl.leastRestrictiveSqlType (cognitive 212): SqlTypeFactoryImpl.leastRestrictiveSqlType has cognitive complexity 212 (threshold 15). Drivers by points: if/else 182, boolean chains 14, ternaries 14, loops 2 (nesting depth added 135). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql/type/SqlTypeFactoryImpl.java"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"069fb0981a716fcd91281e3ddfc61db523f54611f9f4adff823fc44964245769"}},{"ruleId":"D2","level":"warning","message":{"text":"QuickSort.sortInternal (cognitive 127): QuickSort.sortInternal has cognitive complexity 127 (threshold 15). Drivers by points: if/else 106, loops 20, boolean chains 1 (nesting depth added 76). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/operators/sort/QuickSort.java"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d10c7b1d629e6700e31a66db8ded3dd9f409e1bb484318ef61f6cc51a42a0c9"}},{"ruleId":"D2","level":"warning","message":{"text":"RexSimplify.processRange (cognitive 115): RexSimplify.processRange has cognitive complexity 115 (threshold 15). Drivers by points: if/else 103, loops 10, match/switch 2 (nesting depth added 74). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/rex/RexSimplify.java"},"region":{"startLine":2881}}}],"partialFingerprints":{"codehealthFindingId/v1":"8edde078cd3fd555bd4c4f9ea4e2eee4f33a0176a8eb68c68bc41c8a1e3c852d"}},{"ruleId":"D2","level":"warning","message":{"text":"BucketLifecycleConfigurationHandler.doEndElement (cognitive 111): BucketLifecycleConfigurationHandler.doEndElement has cognitive complexity 111 (threshold 15). Drivers by points: if/else 111 (nesting depth added 72). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-filesystems/flink-s3-fs-base/src/main/java/com/amazonaws/services/s3/model/transform/XmlResponsesSaxParser.java"},"region":{"startLine":2362}}}],"partialFingerprints":{"codehealthFindingId/v1":"53aa20fdcf57dbc7594a5a3e2ea6eabb7813cc5e64d63195135a707087a710d9"}},{"ruleId":"D2","level":"warning","message":{"text":"RexSimplify.simplifyAnd2ForUnknownAsFalse (cognitive 109): RexSimplify.simplifyAnd2ForUnknownAsFalse has cognitive complexity 109 (threshold 15). Drivers by points: if/else 81, loops 17, boolean chains 9, match/switch 2 (nesting depth added 55). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/rex/RexSimplify.java"},"region":{"startLine":1934}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d7bef61c359c129c226e7476405f4f5d44da6b0f1cf4ad638b54bd6fd37b606"}},{"ruleId":"D2","level":"warning","message":{"text":"TypeStringUtils.writeTypeInfo (cognitive 101): TypeStringUtils.writeTypeInfo has cognitive complexity 101 (threshold 15). Drivers by points: if/else 67, error handling 16, loops 14, boolean chains 4 (nesting depth added 71). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/legacy/utils/TypeStringUtils.java"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"addf2c19448da0c046a76c031f0bd5dd7f3dc06300e5b07c49f8367a8caa4c41"}},{"ruleId":"D2","level":"warning","message":{"text":"CompactingHashTable.resizeHashTable (cognitive 94): CompactingHashTable.resizeHashTable has cognitive complexity 94 (threshold 15). Drivers by points: if/else 42, loops 40, boolean chains 10, ternaries 2 (nesting depth added 58). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/operators/hash/CompactingHashTable.java"},"region":{"startLine":883}}}],"partialFingerprints":{"codehealthFindingId/v1":"1edfc3315d97a555357de76970b06cf4e113efc3c114064b6b184fdea4483905"}},{"ruleId":"D2","level":"warning","message":{"text":"ListBucketAnalyticsConfigurationHandler.doEndElement (cognitive 92): ListBucketAnalyticsConfigurationHandler.doEndElement has cognitive complexity 92 (threshold 15). Drivers by points: if/else 92 (nesting depth added 57). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-filesystems/flink-s3-fs-base/src/main/java/com/amazonaws/services/s3/model/transform/XmlResponsesSaxParser.java"},"region":{"startLine":3044}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd99a21d7fad9c99d4f3d9e171844d132f3a7c1ea9870890cd614aad38797262"}},{"ruleId":"D2","level":"warning","message":{"text":"Record.unionFields (cognitive 91): Record.unionFields has cognitive complexity 91 (threshold 15). Drivers by points: if/else 49, ternaries 23, loops 10, boolean chains 5, error handling 4 (nesting depth added 46). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/Record.java"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7c444101c66c9af7cfe738b77a59718091465b266882058d5c77665f5087dbf"}},{"ruleId":"D2","level":"warning","message":{"text":"LogicalTypeMerging.findCommonNullableType (cognitive 89): LogicalTypeMerging.findCommonNullableType has cognitive complexity 89 (threshold 15). Drivers by points: if/else 87, boolean chains 1, loops 1 (nesting depth added 48). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/logical/utils/LogicalTypeMerging.java"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"51e852d8ad2a5402e0eb1f3fde3f841137b955420df1d3fe378b4339307cd842"}},{"ruleId":"D2","level":"warning","message":{"text":"PythonTypeUtils.converter (cognitive 87): PythonTypeUtils.converter has cognitive complexity 87 (threshold 15). Drivers by points: if/else 56, ternaries 15, boolean chains 11, loops 4, error handling 1 (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/streaming/api/utils/PythonTypeUtils.java"},"region":{"startLine":1679}}}],"partialFingerprints":{"codehealthFindingId/v1":"ede3a613b17d3414b2f120c1df23218b0e82d21b88c6e8a6791591f242448c1b"}},{"ruleId":"D2","level":"warning","message":{"text":"JoinHelper.processJoin (cognitive 83): JoinHelper.processJoin has cognitive complexity 83 (threshold 15). Drivers by points: if/else 53, loops 25, boolean chains 3, ternaries 2 (nesting depth added 52). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/stream/utils/JoinHelper.java"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"354785d40e5470bb8463df028b40387d29a67e8bd71ed6dcb04d7f26c2b1c56b"}},{"ruleId":"D2","level":"warning","message":{"text":"TypeExtractor.createTypeInfoFromInput (cognitive 81): TypeExtractor.createTypeInfoFromInput has cognitive complexity 81 (threshold 15). Drivers by points: if/else 53, loops 22, boolean chains 6 (nesting depth added 54). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/java/typeutils/TypeExtractor.java"},"region":{"startLine":1101}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeccce9d55984d2018efec357c1d6df6fdc29dbf11884c7b1d5a1a4953d6ab9b"}},{"ruleId":"D2","level":"warning","message":{"text":"SortMergeJoinFunction.doSortMergeJoin (cognitive 80): SortMergeJoinFunction.doSortMergeJoin has cognitive complexity 80 (threshold 15). Drivers by points: if/else 51, loops 29 (nesting depth added 62). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/SortMergeJoinFunction.java"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"a91b0a4f6a926ad35bc2e1d723d38c57f4901a01ad7b6f6b207e0f4b6a3f6e2f"}},{"ruleId":"D2","level":"warning","message":{"text":"PythonTableUtils.converter (cognitive 80): PythonTableUtils.converter has cognitive complexity 80 (threshold 15). Drivers by points: if/else 58, boolean chains 12, ternaries 8, loops 2 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/table/utils/python/PythonTableUtils.java"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"d81ac53a5e5d06039671b3d6ab33c4e3ecb99173c40a83b8e03e518ff032f285"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamingJoinOperator.processElement (cognitive 78): StreamingJoinOperator.processElement has cognitive complexity 78 (threshold 15). Drivers by points: if/else 56, loops 17, boolean chains 3, ternaries 2 (nesting depth added 49). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/stream/StreamingJoinOperator.java"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"09236b318dfc90d5e627ca28d27be3f638a993a043ebdd1f6185acdb97f97aba"}},{"ruleId":"D2","level":"warning","message":{"text":"FlinkAggregateJoinTransposeRule.onMatch (cognitive 76): FlinkAggregateJoinTransposeRule.onMatch has cognitive complexity 76 (threshold 15). Drivers by points: if/else 48, loops 18, ternaries 6, boolean chains 4 (nesting depth added 37). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/rules/logical/FlinkAggregateJoinTransposeRule.java"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3582fa57c66878346f061ba3363ddfe58662c2b115221908eb0d589ccf797a3"}},{"ruleId":"D2","level":"warning","message":{"text":"ListBucketHandler.doEndElement (cognitive 76): ListBucketHandler.doEndElement has cognitive complexity 76 (threshold 15). Drivers by points: if/else 65, ternaries 10, boolean chains 1 (nesting depth added 42). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-filesystems/flink-s3-fs-base/src/main/java/com/amazonaws/services/s3/model/transform/XmlResponsesSaxParser.java"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ba42779c3e71bf8be949ebfd99ef98670aad58c36bcdb2bcbe048b3929d018f"}},{"ruleId":"D2","level":"warning","message":{"text":"GetBucketAnalyticsConfigurationHandler.doEndElement (cognitive 74): GetBucketAnalyticsConfigurationHandler.doEndElement has cognitive complexity 74 (threshold 15). Drivers by points: if/else 74 (nesting depth added 45). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-filesystems/flink-s3-fs-base/src/main/java/com/amazonaws/services/s3/model/transform/XmlResponsesSaxParser.java"},"region":{"startLine":2876}}}],"partialFingerprints":{"codehealthFindingId/v1":"0697137b4ea73b7c98bd1619662e49a2d5fe841bcf6273dee8946437f47697bd"}},{"ruleId":"D2","level":"warning","message":{"text":"FieldAccessorFactory.getAccessor (cognitive 73): FieldAccessorFactory.getAccessor has cognitive complexity 73 (threshold 15). Drivers by points: if/else 55, error handling 12, boolean chains 3, ternaries 3 (nesting depth added 46). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/util/typeutils/FieldAccessorFactory.java"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"f978d0e71c041b666d9cb6648dd75c6f8d9f844e347761ac2418da8067971ae4"}},{"ruleId":"D2","level":"warning","message":{"text":"NestedPrimitiveColumnReader.fillColumnVector (cognitive 73): NestedPrimitiveColumnReader.fillColumnVector has cognitive complexity 73 (threshold 15). Drivers by points: if/else 46, loops 24, match/switch 3 (nesting depth added 38). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-formats/flink-parquet/src/main/java/org/apache/flink/formats/parquet/vector/reader/NestedPrimitiveColumnReader.java"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"daab36f50bbbd98af248d1726e6291839932ae08a25a21ff738e839e4a591e0c"}},{"ruleId":"D2","level":"warning","message":{"text":"MetadataV2V3SerializerBase.deserializeKeyedStateHandle (cognitive 71): MetadataV2V3SerializerBase.deserializeKeyedStateHandle has cognitive complexity 71 (threshold 15). Drivers by points: loops 26, ternaries 23, if/else 18, boolean chains 4 (nesting depth added 47). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/metadata/MetadataV2V3SerializerBase.java"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"a37cca10057f776afadcd5b87f4e76e8f3548db8c053bbcfd84dc23c015fbf03"}},{"ruleId":"D2","level":"warning","message":{"text":"ListObjectsV2Handler.doEndElement (cognitive 69): ListObjectsV2Handler.doEndElement has cognitive complexity 69 (threshold 15). Drivers by points: if/else 68, boolean chains 1 (nesting depth added 35). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-filesystems/flink-s3-fs-base/src/main/java/com/amazonaws/services/s3/model/transform/XmlResponsesSaxParser.java"},"region":{"startLine":754}}}],"partialFingerprints":{"codehealthFindingId/v1":"d850cd0c007e46e18e78abc41263a26a7ee9ff58be54a9e5e6bf1c01f9e89ed4"}},{"ruleId":"D2","level":"warning","message":{"text":"DataFormatConverters.getConverterForDataType (cognitive 67): DataFormatConverters.getConverterForDataType has cognitive complexity 67 (threshold 15). Drivers by points: if/else 61, boolean chains 3, ternaries 2, match/switch 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/data/util/DataFormatConverters.java"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f4de82a644e8749d208e6a3f737d9feb157df958d3fe6c5f506d772bb8ab431"}},{"ruleId":"D2","level":"warning","message":{"text":"YarnClusterDescriptor.startAppMaster (cognitive 66): YarnClusterDescriptor.startAppMaster has cognitive complexity 66 (threshold 15). Drivers by points: if/else 45, boolean chains 6, loops 6, error handling 4, ternaries 3, match/switch 2 (nesting depth added 14). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-yarn/src/main/java/org/apache/flink/yarn/YarnClusterDescriptor.java"},"region":{"startLine":833}}}],"partialFingerprints":{"codehealthFindingId/v1":"a551bd0484bb68c0f4e8f37541b93ca1a0e700ac4df1115ff3778acbe696eb42"}},{"ruleId":"D2","level":"warning","message":{"text":"EventSerializer.fromSerializedEvent (cognitive 65): EventSerializer.fromSerializedEvent has cognitive complexity 65 (threshold 15). Drivers by points: error handling 48, if/else 17 (nesting depth added 45). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/io/network/api/serialization/EventSerializer.java"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"47a66fecf7f928fefce622240b2db418bc6ebe58870ff2c1b426d37131ca69ec"}},{"ruleId":"D2","level":"warning","message":{"text":"AbstractMergeOuterJoinIterator.callWithNextKey (cognitive 65): AbstractMergeOuterJoinIterator.callWithNextKey has cognitive complexity 65 (threshold 15). Drivers by points: if/else 47, loops 13, boolean chains 5 (nesting depth added 40). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/operators/sort/AbstractMergeOuterJoinIterator.java"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"f239182b081e3b2080a64a3647a07585fd56214b2bbd4a6948e754f13122ed17"}},{"ruleId":"D2","level":"warning","message":{"text":"SqlTypeUtil.canCastFrom (cognitive 65): SqlTypeUtil.canCastFrom has cognitive complexity 65 (threshold 15). Drivers by points: if/else 51, boolean chains 7, loops 5, ternaries 2 (nesting depth added 33). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql/type/SqlTypeUtil.java"},"region":{"startLine":1061}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a08d57ab2a538d1a72e65ddaa36a8ab167c4839c1cdf447b62b602dfdf621c4"}},{"ruleId":"D2","level":"warning","message":{"text":"FlinkRuntimeFilterProgram.findSuitableBuildSide (cognitive 64): FlinkRuntimeFilterProgram.findSuitableBuildSide has cognitive complexity 64 (threshold 15). Drivers by points: if/else 53, loops 6, boolean chains 5 (nesting depth added 42). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/optimize/program/FlinkRuntimeFilterProgram.java"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb7e91f39ef2f79a2619abed44cf61a5d2714c8f5338f3a05cdf3ecea77c60e4"}},{"ruleId":"D2","level":"warning","message":{"text":"DppFactSideChecker.convertDppFactSide (cognitive 63): DppFactSideChecker.convertDppFactSide has cognitive complexity 63 (threshold 15). Drivers by points: if/else 44, loops 17, boolean chains 2 (nesting depth added 39). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/utils/DynamicPartitionPruningUtils.java"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c7e2856dc7760aee9c40fa288d3d732f3c35eaef1d8517a249f8de9ef190293"}},{"ruleId":"D2","level":"warning","message":{"text":"PythonBridgeUtils.getPickledBytesFromJavaObject (cognitive 62): PythonBridgeUtils.getPickledBytesFromJavaObject has cognitive complexity 62 (threshold 15). Drivers by points: if/else 27, loops 22, ternaries 9, boolean chains 4 (nesting depth added 36). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/api/common/python/PythonBridgeUtils.java"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffce85d823f4c17d71fe61439d40010b31b29b4f1ac3d6c0ad9f8589a98a0e9d"}},{"ruleId":"D2","level":"warning","message":{"text":"ExternalSorterBuilder.doBuild (cognitive 62): ExternalSorterBuilder.doBuild has cognitive complexity 62 (threshold 15). Drivers by points: ternaries 29, if/else 24, loops 7, boolean chains 2 (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/operators/sort/ExternalSorterBuilder.java"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf83c4f1857302e9fa72892299e1803fb9804f812b5a5ee00e9f4ec8b93dfda2"}},{"ruleId":"D2","level":"warning","message":{"text":"RowTimeRowsBoundedPrecedingFunction.onTimer (cognitive 61): RowTimeRowsBoundedPrecedingFunction.onTimer has cognitive complexity 61 (threshold 15). Drivers by points: if/else 50, loops 10, boolean chains 1 (nesting depth added 39). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/over/RowTimeRowsBoundedPrecedingFunction.java"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"836e34c58b2f871f1362a9892ee12d272b069850fedf4c69c3965b482f02d154"}},{"ruleId":"D2","level":"warning","message":{"text":"TritonTypeMapper.deserializeArrayFromJson (cognitive 61): TritonTypeMapper.deserializeArrayFromJson has cognitive complexity 61 (threshold 15). Drivers by points: loops 44, if/else 9, ternaries 8 (nesting depth added 43). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-models/flink-model-triton/src/main/java/org/apache/flink/model/triton/TritonTypeMapper.java"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"a63d91e0822f44631f757cd6bc20ccaf453baf7654d421b1e52f69425059b70b"}},{"ruleId":"D2","level":"warning","message":{"text":"MultipleInputNodeCreationProcessor.optimizeMultipleInputGroups (cognitive 59): MultipleInputNodeCreationProcessor.optimizeMultipleInputGroups has cognitive complexity 59 (threshold 15). Drivers by points: if/else 39, loops 14, boolean chains 6 (nesting depth added 32). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/processor/MultipleInputNodeCreationProcessor.java"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"750752d68695b74464c294c57ff39bb7fe868cfb88c67034e8ce336fe10d7c41"}},{"ruleId":"D2","level":"warning","message":{"text":"ParquetFormatStatisticsReportUtil.convertToColumnStats (cognitive 59): ParquetFormatStatisticsReportUtil.convertToColumnStats has cognitive complexity 59 (threshold 15). Drivers by points: if/else 58, match/switch 1 (nesting depth added 26). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-formats/flink-parquet/src/main/java/org/apache/flink/formats/parquet/utils/ParquetFormatStatisticsReportUtil.java"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"199c462f62f9c62853226f15e12a168683324cf70748d01b13dfa3a2aa63d861"}},{"ruleId":"D2","level":"warning","message":{"text":"UpdatableTopNFunction.emitRecordsWithRowNumber (cognitive 57): UpdatableTopNFunction.emitRecordsWithRowNumber has cognitive complexity 57 (threshold 15). Drivers by points: if/else 35, loops 16, boolean chains 6 (nesting depth added 32). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/rank/UpdatableTopNFunction.java"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"2030131291c1c42520b74c623089090bb40c553e68408d5dcf042e915b342140"}},{"ruleId":"D2","level":"warning","message":{"text":"StringUtf8Utils.decodeUTF8Strict (cognitive 57): StringUtf8Utils.decodeUTF8Strict has cognitive complexity 57 (threshold 15). Drivers by points: if/else 50, boolean chains 5, loops 2 (nesting depth added 34). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/util/StringUtf8Utils.java"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9e342cc8818b9f30ebb299b856839c468ca2de0ed3e37ec9ce95e390cd32eea"}},{"ruleId":"D2","level":"warning","message":{"text":"StringUtf8Utils.decodeUTF8Strict (cognitive 57): StringUtf8Utils.decodeUTF8Strict has cognitive complexity 57 (threshold 15). Drivers by points: if/else 50, boolean chains 5, loops 2 (nesting depth added 34). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/util/StringUtf8Utils.java"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ad23bef4d89a1a7c4523d18dd2bf63a2e673260513784c1c1083c6130aa0be0"}},{"ruleId":"D2","level":"warning","message":{"text":"StringUtf8Utils.decodeUTF8Strict (cognitive 57): StringUtf8Utils.decodeUTF8Strict has cognitive complexity 57 (threshold 15). Drivers by points: if/else 50, boolean chains 5, loops 2 (nesting depth added 34). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/data/binary/StringUtf8Utils.java"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"989ac891fc1a1f7cbcd2de59a612879769d9d3fca969e278789fbd18fa2d460a"}},{"ruleId":"D2","level":"warning","message":{"text":"StringUtf8Utils.decodeUTF8Strict (cognitive 57): StringUtf8Utils.decodeUTF8Strict has cognitive complexity 57 (threshold 15). Drivers by points: if/else 50, boolean chains 5, loops 2 (nesting depth added 34). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/data/binary/StringUtf8Utils.java"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"44734dc79ccd90374a50f44dfe480ee3803fbf4b840283fa401bcc24677d3acf"}},{"ruleId":"D2","level":"warning","message":{"text":"AvroSchemaConverter.convertToSchema (cognitive 57): AvroSchemaConverter.convertToSchema has cognitive complexity 57 (threshold 15). Drivers by points: ternaries 31, if/else 23, loops 2, match/switch 1 (nesting depth added 26). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-formats/flink-avro/src/main/java/org/apache/flink/formats/avro/typeutils/AvroSchemaConverter.java"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"85e8f88c3a108a2e6d9bd13d9afb30f7ce416fdca97956742531a0cd2b871430"}},{"ruleId":"D2","level":"warning","message":{"text":"ListBucketInventoryConfigurationsHandler.doEndElement (cognitive 57): ListBucketInventoryConfigurationsHandler.doEndElement has cognitive complexity 57 (threshold 15). Drivers by points: if/else 57 (nesting depth added 30). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-filesystems/flink-s3-fs-base/src/main/java/com/amazonaws/services/s3/model/transform/XmlResponsesSaxParser.java"},"region":{"startLine":3377}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c929695fc00d6a6cb805cf2098e954462d6b2660d710e8d98ac9ee1350de92b"}},{"ruleId":"D2","level":"warning","message":{"text":"RexBuilder.clean (cognitive 56): RexBuilder.clean has cognitive complexity 56 (threshold 15). Drivers by points: if/else 54, boolean chains 1, match/switch 1 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/rex/RexBuilder.java"},"region":{"startLine":2052}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d61c9eabb5bf889e75f7b5f2e4676e186f046d02d9d7f2cbd552a55027b1e70"}},{"ruleId":"D2","level":"warning","message":{"text":"ArrowUtils.createArrowFieldWriterForArray (cognitive 55): ArrowUtils.createArrowFieldWriterForArray has cognitive complexity 55 (threshold 15). Drivers by points: if/else 35, loops 18, boolean chains 2 (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/table/runtime/arrow/ArrowUtils.java"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"71206dc684531a108b803c6e5210b7c23cebc585d5b2c33b92c33225aff72e5d"}},{"ruleId":"D2","level":"warning","message":{"text":"ArrowUtils.createArrowFieldWriterForRow (cognitive 55): ArrowUtils.createArrowFieldWriterForRow has cognitive complexity 55 (threshold 15). Drivers by points: if/else 35, loops 18, boolean chains 2 (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/table/runtime/arrow/ArrowUtils.java"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"b42fc4e8d2df36a3db2035e8b9687b0f7c61c2f312a43fcc6ab79009218b9184"}},{"ruleId":"D2","level":"warning","message":{"text":"DppDimSideChecker.visitDimSide (cognitive 55): DppDimSideChecker.visitDimSide has cognitive complexity 55 (threshold 15). Drivers by points: if/else 35, loops 17, boolean chains 3 (nesting depth added 34). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/utils/DynamicPartitionPruningUtils.java"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"0194e75cf0672cacdb9d13c11dc3643997f20e786b00472d8d75487766ff10d7"}},{"ruleId":"D2","level":"warning","message":{"text":"RexSimplify.simplifyComparison (cognitive 54): RexSimplify.simplifyComparison has cognitive complexity 54 (threshold 15). Drivers by points: if/else 36, match/switch 12, boolean chains 3, ternaries 3 (nesting depth added 32). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/rex/RexSimplify.java"},"region":{"startLine":710}}}],"partialFingerprints":{"codehealthFindingId/v1":"3703a14ae4358e8a3386262e0072b104f1a15bf451bf87b93cace9f8192846e5"}},{"ruleId":"D2","level":"warning","message":{"text":"Blackboard.convertExpression (cognitive 54): Blackboard.convertExpression has cognitive complexity 54 (threshold 15). Drivers by points: if/else 33, boolean chains 7, loops 7, match/switch 7 (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql2rel/SqlToRelConverter.java"},"region":{"startLine":5885}}}],"partialFingerprints":{"codehealthFindingId/v1":"1570964cece90bd02de517684dace41eca81147672747c205b4015d31f67f2db"}},{"ruleId":"D2","level":"warning","message":{"text":"PythonBridgeUtils.primitiveArrayConverter (cognitive 53): PythonBridgeUtils.primitiveArrayConverter has cognitive complexity 53 (threshold 15). Drivers by points: loops 44, if/else 9 (nesting depth added 36). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/api/common/python/PythonBridgeUtils.java"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaed9d58ab72a6d7b7dc5463bde3eab20661cb31965054d71677a2ca72b9771b"}},{"ruleId":"D2","level":"warning","message":{"text":"TypeInfoDataTypeConverter.fromDataTypeToTypeInfo (cognitive 53): TypeInfoDataTypeConverter.fromDataTypeToTypeInfo has cognitive complexity 53 (threshold 15). Drivers by points: ternaries 33, if/else 18, boolean chains 1, match/switch 1 (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/types/TypeInfoDataTypeConverter.java"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"c874072d11eb8cf32ac5fb5ee40b74cf0a8c2fe2bf099850417fee535bfd7bf3"}},{"ruleId":"D2","level":"warning","message":{"text":"RexSimplify.simplifyOrs (cognitive 53): RexSimplify.simplifyOrs has cognitive complexity 53 (threshold 15). Drivers by points: if/else 47, boolean chains 3, match/switch 2, loops 1 (nesting depth added 33). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/rex/RexSimplify.java"},"region":{"startLine":2336}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4af0c855fc801d3a166a8faa43bdbc63430a82633f60db775035ebbf140029d"}},{"ruleId":"D2","level":"warning","message":{"text":"DelimitedInputFormat.readLine (cognitive 52): DelimitedInputFormat.readLine has cognitive complexity 52 (threshold 15). Drivers by points: if/else 47, loops 3, boolean chains 2 (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/common/io/DelimitedInputFormat.java"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"29b925cb02a6102286092101b36b9f96455f492c460f2328b21b878403ba4005"}},{"ruleId":"D2","level":"warning","message":{"text":"FlinkRuntimeFilterProgram.tryPushDownProbeAndInjectRuntimeFilter (cognitive 52): FlinkRuntimeFilterProgram.tryPushDownProbeAndInjectRuntimeFilter has cognitive complexity 52 (threshold 15). Drivers by points: if/else 44, loops 7, boolean chains 1 (nesting depth added 35). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/optimize/program/FlinkRuntimeFilterProgram.java"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b13bdda2ce2dc16d1acb2b279f4bc7f759bf3bb8c8f013b98b2bc86b566237d"}},{"ruleId":"D2","level":"warning","message":{"text":"BinaryStringDataUtil.toDecimalFromBytes (cognitive 52): BinaryStringDataUtil.toDecimalFromBytes has cognitive complexity 52 (threshold 15). Drivers by points: if/else 37, boolean chains 8, loops 5, ternaries 2 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/data/binary/BinaryStringDataUtil.java"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"65be89b1c757387d0ad7d24d73352e0252a39006549fa4dcd6370c4b45218366"}},{"ruleId":"D2","level":"warning","message":{"text":"ParquetSplitReaderUtil.createVectorFromConstant (cognitive 52): ParquetSplitReaderUtil.createVectorFromConstant has cognitive complexity 52 (threshold 15). Drivers by points: if/else 33, ternaries 18, match/switch 1 (nesting depth added 23). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-formats/flink-parquet/src/main/java/org/apache/flink/formats/parquet/vector/ParquetSplitReaderUtil.java"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d285ff28407d6e521919101b3f3c4a7f4eeb62a3cd0c3daeae0fb4d9af765f3"}},{"ruleId":"D2","level":"warning","message":{"text":"ListVersionsHandler.doEndElement (cognitive 52): ListVersionsHandler.doEndElement has cognitive complexity 52 (threshold 15). Drivers by points: if/else 36, ternaries 13, boolean chains 3 (nesting depth added 21). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-filesystems/flink-s3-fs-base/src/main/java/com/amazonaws/services/s3/model/transform/XmlResponsesSaxParser.java"},"region":{"startLine":1266}}}],"partialFingerprints":{"codehealthFindingId/v1":"72251a82e0bcb52524f7c821ba26b86b99f624843041cf5c54216baf93deb358"}},{"ruleId":"D2","level":"warning","message":{"text":"GetBucketInventoryConfigurationHandler.doEndElement (cognitive 52): GetBucketInventoryConfigurationHandler.doEndElement has cognitive complexity 52 (threshold 15). Drivers by points: if/else 52 (nesting depth added 28). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-filesystems/flink-s3-fs-base/src/main/java/com/amazonaws/services/s3/model/transform/XmlResponsesSaxParser.java"},"region":{"startLine":3241}}}],"partialFingerprints":{"codehealthFindingId/v1":"77fb19953300c41b1d6cd7a9a78e5b1d30dc45bcc9ce08cf944d24b53b079399"}},{"ruleId":"D2","level":"warning","message":{"text":"ResultIterator.hasNext (cognitive 51): ResultIterator.hasNext has cognitive complexity 51 (threshold 15). Drivers by points: if/else 37, error handling 8, boolean chains 3, match/switch 2, loops 1 (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-sql-gateway/src/main/java/org/apache/flink/table/gateway/service/application/ScriptExecutor.java"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c6dff1362ce1ecd58ce12913c40ac19a4c74c909f98e947c0ad30afabe6e1fa"}},{"ruleId":"D2","level":"warning","message":{"text":"BucketReplicationConfigurationHandler.doEndElement (cognitive 51): BucketReplicationConfigurationHandler.doEndElement has cognitive complexity 51 (threshold 15). Drivers by points: if/else 51 (nesting depth added 28). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-filesystems/flink-s3-fs-base/src/main/java/com/amazonaws/services/s3/model/transform/XmlResponsesSaxParser.java"},"region":{"startLine":2044}}}],"partialFingerprints":{"codehealthFindingId/v1":"933216d04fb1791c6d01760f036f47b1d372bb0ed5710c3882e4be9a78dbb6dd"}},{"ruleId":"D2","level":"warning","message":{"text":"PojoSerializer.deserialize (cognitive 50): PojoSerializer.deserialize has cognitive complexity 50 (threshold 15). Drivers by points: if/else 33, ternaries 5, boolean chains 4, error handling 4, loops 4 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/java/typeutils/runtime/PojoSerializer.java"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c9062f4823c5ff072dce6dc799574e18cd70906e1d60b4fadc142edf31e324b"}},{"ruleId":"D2","level":"warning","message":{"text":"Record.serializeHeader (cognitive 50): Record.serializeHeader has cognitive complexity 50 (threshold 15). Drivers by points: if/else 22, loops 17, ternaries 10, error handling 1 (nesting depth added 33). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/Record.java"},"region":{"startLine":1037}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f2227c2ad2231c08e5845eb208150b466b484df7f3f350825b07ab51369fa4a"}},{"ruleId":"D2","level":"warning","message":{"text":"SortMergeJoinFunction.fullOuterJoin (cognitive 50): SortMergeJoinFunction.fullOuterJoin has cognitive complexity 50 (threshold 15). Drivers by points: if/else 24, loops 24, boolean chains 2 (nesting depth added 35). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/SortMergeJoinFunction.java"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"e328addebf47623f069bd793aa0bb001073f3488e19f92c9ec744f73508d4f44"}},{"ruleId":"D2","level":"warning","message":{"text":"BatchExecOverAggregate.createOverWindowFrames (cognitive 50): BatchExecOverAggregate.createOverWindowFrames has cognitive complexity 50 (threshold 15). Drivers by points: if/else 33, match/switch 9, loops 4, ternaries 4 (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/batch/BatchExecOverAggregate.java"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"187bb8405ba7de6b8e75dbe35b08ef983972b405d247afe4515a9a9f692f449e"}},{"ruleId":"D2","level":"warning","message":{"text":"JoinToMultiJoinForReorderRule.canCombine (cognitive 50): JoinToMultiJoinForReorderRule.canCombine has cognitive complexity 50 (threshold 15). Drivers by points: if/else 35, loops 14, boolean chains 1 (nesting depth added 32). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/rules/logical/JoinToMultiJoinForReorderRule.java"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"88a3d816286cc26079de54e132df4c3000d35b3be083bc58717460caf638e099"}},{"ruleId":"D2","level":"warning","message":{"text":"MutableIOMetrics.addIOMetrics (cognitive 50): MutableIOMetrics.addIOMetrics has cognitive complexity 50 (threshold 15). Drivers by points: if/else 50 (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/rest/handler/util/MutableIOMetrics.java"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"251ba6f6fed556a9a6c50d4e0f738be12fcd84fb293a9feb384f549c1e899b27"}},{"ruleId":"D2","level":"warning","message":{"text":"PatternValidator.visit (cognitive 50): PatternValidator.visit has cognitive complexity 50 (threshold 15). Drivers by points: if/else 43, boolean chains 4, match/switch 2, loops 1 (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql/validate/SqlValidatorImpl.java"},"region":{"startLine":8168}}}],"partialFingerprints":{"codehealthFindingId/v1":"329de273d7d43bb1873d32edd44ca98635696eb681fb712c9a58a65a2104ebba"}},{"ruleId":"D2","level":"warning","message":{"text":"DataTypeExtractor.extractPredefinedOrDescriptorType (cognitive 49): DataTypeExtractor.extractPredefinedOrDescriptorType has cognitive complexity 49 (threshold 15). Drivers by points: if/else 45, boolean chains 4 (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/extraction/DataTypeExtractor.java"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"0104ffbbc8fd2cd19266f84861761e8005b5bbd3f5a1e188fbbd6a2c926269cb"}},{"ruleId":"D2","level":"warning","message":{"text":"BucketWebsiteConfigurationHandler.doEndElement (cognitive 49): BucketWebsiteConfigurationHandler.doEndElement has cognitive complexity 49 (threshold 15). Drivers by points: if/else 48, boolean chains 1 (nesting depth added 28). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-filesystems/flink-s3-fs-base/src/main/java/com/amazonaws/services/s3/model/transform/XmlResponsesSaxParser.java"},"region":{"startLine":1396}}}],"partialFingerprints":{"codehealthFindingId/v1":"13da86a37c4796d8b22a8964580f6a9b3b6c41880e8614da5457233788332a30"}},{"ruleId":"D2","level":"warning","message":{"text":"PythonBridgeUtils.getPickledBytesFromJavaObject (cognitive 48): PythonBridgeUtils.getPickledBytesFromJavaObject has cognitive complexity 48 (threshold 15). Drivers by points: if/else 27, loops 21 (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/api/common/python/PythonBridgeUtils.java"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"22cd64fa74c85a8d4bb5cb869c19bfb538b97985b517c52e4ddbf8528d9a6cec"}},{"ruleId":"D2","level":"warning","message":{"text":"ReduceCombineDriver.run (cognitive 48): ReduceCombineDriver.run has cognitive complexity 48 (threshold 15). Drivers by points: if/else 23, loops 12, error handling 8, boolean chains 4, match/switch 1 (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/operators/ReduceCombineDriver.java"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"416911568747c3b545b3daa09787759dc97591a6e082515d7d5157f27eeafad7"}},{"ruleId":"D2","level":"warning","message":{"text":"CanalJsonDeserializationSchema.deserialize (cognitive 48): CanalJsonDeserializationSchema.deserialize has cognitive complexity 48 (threshold 15). Drivers by points: if/else 31, loops 14, boolean chains 2, error handling 1 (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-formats/flink-json/src/main/java/org/apache/flink/formats/json/canal/CanalJsonDeserializationSchema.java"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"08a0184acf0972af17e548c1055b1ece0b11e1a280f1646ec6abad38e9f39388"}},{"ruleId":"D2","level":"warning","message":{"text":"TypeExtractor.createTypeInfoWithTypeHierarchy (cognitive 47): TypeExtractor.createTypeInfoWithTypeHierarchy has cognitive complexity 47 (threshold 15). Drivers by points: if/else 39, loops 6, boolean chains 2 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/java/typeutils/TypeExtractor.java"},"region":{"startLine":878}}}],"partialFingerprints":{"codehealthFindingId/v1":"f906c8df62dbd6861760d43154ed31eb62b0fecf3da445fbda76af4e08abd217"}},{"ruleId":"D2","level":"warning","message":{"text":"SqlJsonUtils.jsonQuery (cognitive 47): SqlJsonUtils.jsonQuery has cognitive complexity 47 (threshold 15). Drivers by points: if/else 28, match/switch 7, loops 5, error handling 4, boolean chains 3 (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/SqlJsonUtils.java"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"0db5b87d66341d0759c71ef0f902fd53ef93f03577b9c668296b449f02f04cc0"}},{"ruleId":"D2","level":"warning","message":{"text":"DataSinkTask.invoke (cognitive 47): DataSinkTask.invoke has cognitive complexity 47 (threshold 15). Drivers by points: if/else 23, error handling 11, ternaries 5, loops 4, boolean chains 3, match/switch 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/operators/DataSinkTask.java"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a44fcdfae45e46b28a2b727b2c6122549e9905b6efd6ebfa357bfd9c54255a6"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamingJobGraphGenerator.createChain (cognitive 46): StreamingJobGraphGenerator.createChain has cognitive complexity 46 (threshold 15). Drivers by points: if/else 38, loops 6, boolean chains 2 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/graph/StreamingJobGraphGenerator.java"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"e48c3fb521d167124e172e5ce93eb1231bcd5df86b9e7a6751bc502ef711db94"}},{"ruleId":"D2","level":"warning","message":{"text":"RetractableTopNFunction.retractRecordWithoutRowNumber (cognitive 46): RetractableTopNFunction.retractRecordWithoutRowNumber has cognitive complexity 46 (threshold 15). Drivers by points: if/else 37, loops 5, boolean chains 4 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/rank/RetractableTopNFunction.java"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3f9c7c388e1607f6fcf389183b346e98216f1859d6fb3238531eb93117b20cf"}},{"ruleId":"D2","level":"warning","message":{"text":"SchemaBuilder.appendDerivedColumns (cognitive 46): SchemaBuilder.appendDerivedColumns has cognitive complexity 46 (threshold 15). Drivers by points: if/else 45, loops 1 (nesting depth added 33). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/operations/converters/MergeTableLikeUtil.java"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e17f0d396554e6c80c587aa2c13a775a64d3c752ce81a5dce2c386285006e33"}},{"ruleId":"D2","level":"warning","message":{"text":"1.accept (cognitive 46): 1.accept has cognitive complexity 46 (threshold 15). Drivers by points: loops 24, if/else 18, boolean chains 3, error handling 1 (nesting depth added 32). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-yarn-tests/src/test/java/org/apache/flink/yarn/YarnTestBase.java"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"94de2de82fcf5f4353f3c0863a38250bb5384bb548788678cc92d05c0d5ca163"}},{"ruleId":"D2","level":"warning","message":{"text":"PythonTypeUtils.arrayConstructor (cognitive 45): PythonTypeUtils.arrayConstructor has cognitive complexity 45 (threshold 15). Drivers by points: if/else 29, loops 16 (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/streaming/api/utils/PythonTypeUtils.java"},"region":{"startLine":1526}}}],"partialFingerprints":{"codehealthFindingId/v1":"05d2a67b20de954c5c14d241c9ccc32578f37551429415ef7d9ddfc3de0152fb"}},{"ruleId":"D2","level":"warning","message":{"text":"FileUploadHandler.channelRead0 (cognitive 45): FileUploadHandler.channelRead0 has cognitive complexity 45 (threshold 15). Drivers by points: if/else 39, loops 3, boolean chains 2, error handling 1 (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/rest/FileUploadHandler.java"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"302db215ac70d2c18294e3298b8fab2be746eb75bdeb7ea8bb642400a1138f73"}},{"ruleId":"D2","level":"warning","message":{"text":"EventSerializer.toSerializedEvent (cognitive 45): EventSerializer.toSerializedEvent has cognitive complexity 45 (threshold 15). Drivers by points: error handling 30, if/else 15 (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/io/network/api/serialization/EventSerializer.java"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f175297cc25fa583a6e070a7e39111eabd482605e8ceecb473694b4cd84aa53"}},{"ruleId":"D2","level":"warning","message":{"text":"Task.doRun (cognitive 45): Task.doRun has cognitive complexity 45 (threshold 15). Drivers by points: if/else 35, error handling 6, loops 4 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/taskmanager/Task.java"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"49852ddc249f82a8b00f8d882306fa6d071ffb5af0007d9bd0543d66abf984f5"}},{"ruleId":"D2","level":"warning","message":{"text":"ListBucketMetricsConfigurationsHandler.doEndElement (cognitive 45): ListBucketMetricsConfigurationsHandler.doEndElement has cognitive complexity 45 (threshold 15). Drivers by points: if/else 45 (nesting depth added 23). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-filesystems/flink-s3-fs-base/src/main/java/com/amazonaws/services/s3/model/transform/XmlResponsesSaxParser.java"},"region":{"startLine":2718}}}],"partialFingerprints":{"codehealthFindingId/v1":"bceb6f704845a58e813980dd3814be3a9543d0869878e2565f332e0e29d94bce"}},{"ruleId":"D2","level":"warning","message":{"text":"GenericCsvInputFormat.parseRecord (cognitive 44): GenericCsvInputFormat.parseRecord has cognitive complexity 44 (threshold 15). Drivers by points: if/else 39, boolean chains 4, loops 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/common/io/GenericCsvInputFormat.java"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"378dc50959d24acd94efc0da3efb161b42bef1a2c5bfb4a2ed108d9d1cdea73c"}},{"ruleId":"D2","level":"warning","message":{"text":"RetractableTopNFunction.retractRecordWithRowNumber (cognitive 44): RetractableTopNFunction.retractRecordWithRowNumber has cognitive complexity 44 (threshold 15). Drivers by points: if/else 28, loops 10, boolean chains 6 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/rank/RetractableTopNFunction.java"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ab4ef67f553426385737ed7c5a048c5be50f647646f25aa6463f41dbeef9b50"}},{"ruleId":"D2","level":"warning","message":{"text":"ExtractionUtils.isAssignable (cognitive 44): ExtractionUtils.isAssignable has cognitive complexity 44 (threshold 15). Drivers by points: if/else 37, boolean chains 7 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/extraction/ExtractionUtils.java"},"region":{"startLine":1068}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b4675179b7f98702b69027dd2047d38c138def73b7e97222e0204b08890b948"}},{"ruleId":"D2","level":"warning","message":{"text":"CoGroupWithSolutionSetFirstDriver.run (cognitive 44): CoGroupWithSolutionSetFirstDriver.run has cognitive complexity 44 (threshold 15). Drivers by points: if/else 28, loops 12, boolean chains 4 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/operators/CoGroupWithSolutionSetFirstDriver.java"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa983c66260fbca940acfb48c9aee5d9da4232abb83fbeda7c98bf846a2f3649"}},{"ruleId":"D2","level":"warning","message":{"text":"CoGroupWithSolutionSetSecondDriver.run (cognitive 44): CoGroupWithSolutionSetSecondDriver.run has cognitive complexity 44 (threshold 15). Drivers by points: if/else 28, loops 12, boolean chains 4 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/operators/CoGroupWithSolutionSetSecondDriver.java"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1f8eb4c9616cffc97d16559cc6e2d93b8bb60e773ab839dbe2d587392d35815"}},{"ruleId":"D2","level":"warning","message":{"text":"Record.initFields (cognitive 43): Record.initFields has cognitive complexity 43 (threshold 15). Drivers by points: if/else 23, loops 13, boolean chains 5, error handling 1, ternaries 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/Record.java"},"region":{"startLine":1138}}}],"partialFingerprints":{"codehealthFindingId/v1":"075273c8309d3711f1415052293d0427c09cf544b8ff809a0f0aaf4e83913820"}},{"ruleId":"D2","level":"warning","message":{"text":"TimeIntervalJoin.processElement1 (cognitive 43): TimeIntervalJoin.processElement1 has cognitive complexity 43 (threshold 15). Drivers by points: if/else 33, loops 6, boolean chains 4 (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/interval/TimeIntervalJoin.java"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dcdfcad4e9a1d26433c03585b5ceb1f0491835785fd191d9a51672f5e696a57"}},{"ruleId":"D2","level":"warning","message":{"text":"TimeIntervalJoin.processElement2 (cognitive 43): TimeIntervalJoin.processElement2 has cognitive complexity 43 (threshold 15). Drivers by points: if/else 33, loops 6, boolean chains 4 (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/interval/TimeIntervalJoin.java"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c3708f3a466f971c3647a38e907d5c2a2ac879f5e9a99885a8318827de963b7"}},{"ruleId":"D2","level":"warning","message":{"text":"DateTimeUtils.parseTime (cognitive 43): DateTimeUtils.parseTime has cognitive complexity 43 (threshold 15). Drivers by points: if/else 43 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/utils/DateTimeUtils.java"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"49f038ba316a51f2245c9f20e87b083a9473936cf30e7fca9223a7675da3ee9a"}},{"ruleId":"D2","level":"warning","message":{"text":"AlterTableChangeOperation.toString (cognitive 43): AlterTableChangeOperation.toString has cognitive complexity 43 (threshold 15). Drivers by points: ternaries 24, if/else 19 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/ddl/AlterTableChangeOperation.java"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef86381ee1583bf5d8c86c032d324908f99c75b0eb05c9bb852a37140cba0a59"}},{"ruleId":"D2","level":"warning","message":{"text":"SqlLikeUtils.sqlSimilarRewriteCharEnumeration (cognitive 43): SqlLikeUtils.sqlSimilarRewriteCharEnumeration has cognitive complexity 43 (threshold 15). Drivers by points: if/else 34, loops 8, boolean chains 1 (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/functions/SqlLikeUtils.java"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9aeb4583fabaca602de43acd32c716de829559d64dd0de2ae94f97244bc015a"}},{"ruleId":"D2","level":"warning","message":{"text":"BatchTask.resetAllInputs (cognitive 43): BatchTask.resetAllInputs has cognitive complexity 43 (threshold 15). Drivers by points: if/else 26, error handling 9, ternaries 4, loops 3, boolean chains 1 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/operators/BatchTask.java"},"region":{"startLine":897}}}],"partialFingerprints":{"codehealthFindingId/v1":"0180db27589b9f1e565afa9890ba6d02a349dbbd7ed015df4bc2e90b49557428"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoveCorrelationForScalarAggregateRule.onMatch (cognitive 43): RemoveCorrelationForScalarAggregateRule.onMatch has cognitive complexity 43 (threshold 15). Drivers by points: if/else 28, loops 10, boolean chains 3, ternaries 2 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql2rel/RelDecorrelator.java"},"region":{"startLine":2681}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e388ee310216c7a049ef8ee14e36cdceccfd185a828813f5ae6feab206b6047"}},{"ruleId":"D2","level":"warning","message":{"text":"RetractableTopNFunction.processElement (cognitive 42): RetractableTopNFunction.processElement has cognitive complexity 42 (threshold 15). Drivers by points: if/else 36, loops 4, boolean chains 2 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/rank/RetractableTopNFunction.java"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"e59732a5d11956ed6534d1a5b116317503ff5c10ccbde4dfd141186637b6b5fa"}},{"ruleId":"D2","level":"warning","message":{"text":"BinaryExternalSorter.write (cognitive 42): BinaryExternalSorter.write has cognitive complexity 42 (threshold 15). Drivers by points: if/else 36, error handling 4, boolean chains 1, loops 1 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/sort/BinaryExternalSorter.java"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4cb291c4293ecb7c352ed53e72be162afdb536f829402eed77eef9ba21e2ff2"}},{"ruleId":"D2","level":"warning","message":{"text":"SnapshotFileMergingCompatibilityITCase.verifyCheckpointExist (cognitive 42): SnapshotFileMergingCompatibilityITCase.verifyCheckpointExist has cognitive complexity 42 (threshold 15). Drivers by points: if/else 26, loops 9, error handling 6, boolean chains 1 (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-tests/src/test/java/org/apache/flink/test/checkpointing/SnapshotFileMergingCompatibilityITCase.java"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ce05b7cde034353241b37c823231cd38eeb3992eb8f0bb579e67ce2baa6cdcb"}},{"ruleId":"D2","level":"warning","message":{"text":"MaxWithRetractAggFunction.merge (cognitive 41): MaxWithRetractAggFunction.merge has cognitive complexity 41 (threshold 15). Drivers by points: if/else 36, loops 3, boolean chains 2 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/aggregate/MaxWithRetractAggFunction.java"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa31ef3180c074538e79fe445094ee12bb4e4f91eae1cad8ff416421e0c7e8b6"}},{"ruleId":"D2","level":"warning","message":{"text":"MinWithRetractAggFunction.merge (cognitive 41): MinWithRetractAggFunction.merge has cognitive complexity 41 (threshold 15). Drivers by points: if/else 36, loops 3, boolean chains 2 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/aggregate/MinWithRetractAggFunction.java"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4e331276b2225d2e22da1c76d31d8133100a9137bf38bf22b767156ccca3ce0"}},{"ruleId":"D2","level":"warning","message":{"text":"HttpRequestHandler.channelRead0 (cognitive 41): HttpRequestHandler.channelRead0 has cognitive complexity 41 (threshold 15). Drivers by points: if/else 31, error handling 4, boolean chains 3, loops 3 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime-web/src/main/java/org/apache/flink/runtime/webmonitor/HttpRequestHandler.java"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"59cec90b74dce5ba4312415077ee9f48121c66e93c1cc92da2276be01049a72d"}},{"ruleId":"D2","level":"warning","message":{"text":"LargeRecordHandler.close (cognitive 41): LargeRecordHandler.close has cognitive complexity 41 (threshold 15). Drivers by points: ternaries 18, error handling 14, if/else 9 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/operators/sort/LargeRecordHandler.java"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa320b54968747eb63f4b60a20ffd3b052f1e8b14d75b66f025d7ddcaf821b5e"}},{"ruleId":"D2","level":"warning","message":{"text":"ExtendedExpander.visit (cognitive 41): ExtendedExpander.visit has cognitive complexity 41 (threshold 15). Drivers by points: if/else 30, boolean chains 5, loops 5, error handling 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql/validate/SqlValidatorImpl.java"},"region":{"startLine":7750}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cd38adfb38a6380eabd44956c59150fca1170bb4468ab248a441390f54ff7a3"}},{"ruleId":"D2","level":"warning","message":{"text":"RexSimplify.simplifyCase (cognitive 41): RexSimplify.simplifyCase has cognitive complexity 41 (threshold 15). Drivers by points: if/else 39, boolean chains 1, loops 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/rex/RexSimplify.java"},"region":{"startLine":1409}}}],"partialFingerprints":{"codehealthFindingId/v1":"84ae269dcbe949777803e861149beb6830faa4d9f4ffd16ff930ea79d051aa94"}},{"ruleId":"D2","level":"warning","message":{"text":"EvictingWindowOperator.processElement (cognitive 40): EvictingWindowOperator.processElement has cognitive complexity 40 (threshold 15). Drivers by points: if/else 35, loops 4, boolean chains 1 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/EvictingWindowOperator.java"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"79a5662719c96f472413cb050fffca7a909b542598d914691ec93d0f86c7ecd3"}},{"ruleId":"D2","level":"warning","message":{"text":"WindowOperator.processElement (cognitive 40): WindowOperator.processElement has cognitive complexity 40 (threshold 15). Drivers by points: if/else 35, loops 4, boolean chains 1 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/WindowOperator.java"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"77fa9fb3886ca89042f4ebb52c49f0e83f64e91ec95cf04c9d99d9d510cc86c6"}},{"ruleId":"D2","level":"warning","message":{"text":"MiniBatchGroupAggFunction.finishBundle (cognitive 40): MiniBatchGroupAggFunction.finishBundle has cognitive complexity 40 (threshold 15). Drivers by points: if/else 33, loops 6, boolean chains 1 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/aggregate/MiniBatchGroupAggFunction.java"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"0753608408e3f323f6bd60404f5652203964e019f261ad90738342aee829730f"}},{"ruleId":"D2","level":"warning","message":{"text":"TableEnvironmentImpl.executeInternal (cognitive 40): TableEnvironmentImpl.executeInternal has cognitive complexity 40 (threshold 15). Drivers by points: if/else 25, error handling 15 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/api/internal/TableEnvironmentImpl.java"},"region":{"startLine":1316}}}],"partialFingerprints":{"codehealthFindingId/v1":"43f3fddef1452f1bb998b20a7c4baf2ab4b24454f66118997909c4353f53fdb3"}},{"ruleId":"D2","level":"warning","message":{"text":"CatalogTableStatisticsConverter.convertToColumnStats (cognitive 40): CatalogTableStatisticsConverter.convertToColumnStats has cognitive complexity 40 (threshold 15). Drivers by points: if/else 25, ternaries 11, boolean chains 4 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/utils/CatalogTableStatisticsConverter.java"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"3625ddae83ded569f0c0d22e2d3406d6869669f636b740e92cd01443272aa004"}},{"ruleId":"D2","level":"warning","message":{"text":"MetadataV2V3SerializerBase.serializeKeyedStateHandle (cognitive 40): MetadataV2V3SerializerBase.serializeKeyedStateHandle has cognitive complexity 40 (threshold 15). Drivers by points: loops 26, if/else 14 (nesting depth added 25). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/metadata/MetadataV2V3SerializerBase.java"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"bce62744430f9c9d1ebadadaceec54764d0199fc9c0a2790e21a81bce05298ee"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultExecutionGraphBuilder.buildGraph (cognitive 40): DefaultExecutionGraphBuilder.buildGraph has cognitive complexity 40 (threshold 15). Drivers by points: error handling 20, if/else 16, loops 4 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/executiongraph/DefaultExecutionGraphBuilder.java"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"671b3a9f131d523d373e365247a5e4960171f95e4c00938aa1db14991bec4ed5"}},{"ruleId":"D2","level":"warning","message":{"text":"ArrowUtils.createColumnVector (cognitive 39): ArrowUtils.createColumnVector has cognitive complexity 39 (threshold 15). Drivers by points: if/else 19, loops 18, boolean chains 2 (nesting depth added 17). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/table/runtime/arrow/ArrowUtils.java"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"0df49855c345addbc57d077351e4a381445e6ad0814b022b34a3c63b167ffeb9"}},{"ruleId":"D2","level":"warning","message":{"text":"SpillingThread.go (cognitive 39): SpillingThread.go has cognitive complexity 39 (threshold 15). Drivers by points: if/else 19, error handling 7, ternaries 7, loops 6 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/sort/BinaryExternalSorter.java"},"region":{"startLine":910}}}],"partialFingerprints":{"codehealthFindingId/v1":"f39f51f7db0c6b57fc7512d5ae4a530cf97da745f6878f6f21b70aefca6d2e76"}},{"ruleId":"D2","level":"warning","message":{"text":"SqlNodeToOperationConversion.convertValidatedSqlNode (cognitive 39): SqlNodeToOperationConversion.convertValidatedSqlNode has cognitive complexity 39 (threshold 15). Drivers by points: if/else 39. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/operations/SqlNodeToOperationConversion.java"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"800cc497b8bd0922a459cc180691703396037f813802fa29940f0d3694b893cf"}},{"ruleId":"D2","level":"warning","message":{"text":"DataSourceTask.invoke (cognitive 39): DataSourceTask.invoke has cognitive complexity 39 (threshold 15). Drivers by points: if/else 21, loops 7, boolean chains 5, error handling 5, ternaries 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/operators/DataSourceTask.java"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"af49585bff4507497f5f22af0c90e21611dd37a3e9216321c3f80aa790c38103"}},{"ruleId":"D2","level":"warning","message":{"text":"AggConverter.translateAgg (cognitive 39): AggConverter.translateAgg has cognitive complexity 39 (threshold 15). Drivers by points: if/else 28, boolean chains 7, loops 3, match/switch 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql2rel/AggConverter.java"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"3391e36f068fd540e4c837c85cc6c28457b4aaf0d7edb6e33f192f48b6aab2dc"}},{"ruleId":"D2","level":"warning","message":{"text":"LocatableInputSplitAssigner.getNextInputSplit (cognitive 38): LocatableInputSplitAssigner.getNextInputSplit has cognitive complexity 38 (threshold 15). Drivers by points: if/else 35, loops 3 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/common/io/LocatableInputSplitAssigner.java"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6a1e622ab3d961111c5fc0139b10ec9c110f16856b974ce97cd452fbe431f77"}},{"ruleId":"D2","level":"warning","message":{"text":"RexLiteralUtil.toFlinkInternalValue (cognitive 38): RexLiteralUtil.toFlinkInternalValue has cognitive complexity 38 (threshold 15). Drivers by points: if/else 37, match/switch 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/utils/RexLiteralUtil.java"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe04726ed42d7700c7c88de5e7942726d20a456319566df75e8d06f0fef2f2c0"}},{"ruleId":"D2","level":"warning","message":{"text":"ChainedReduceCombineDriver.sortAndCombine (cognitive 38): ChainedReduceCombineDriver.sortAndCombine has cognitive complexity 38 (threshold 15). Drivers by points: if/else 22, loops 14, boolean chains 2 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/operators/chaining/ChainedReduceCombineDriver.java"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"66adba577bb0a7918dbe722c68ccfb7f1486a4af87cb5b1c0a80548d58efb22a"}},{"ruleId":"D2","level":"warning","message":{"text":"ReduceCombineDriver.sortAndCombine (cognitive 38): ReduceCombineDriver.sortAndCombine has cognitive complexity 38 (threshold 15). Drivers by points: if/else 22, loops 14, boolean chains 2 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/operators/ReduceCombineDriver.java"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"f10c83b4b5354d3b0b0c5f16a038af834581584319d36e58c5fea151d68d40e4"}},{"ruleId":"D2","level":"warning","message":{"text":"RexBuilder.makeLiteral (cognitive 38): RexBuilder.makeLiteral has cognitive complexity 38 (threshold 15). Drivers by points: if/else 20, loops 8, ternaries 8, boolean chains 1, match/switch 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/rex/RexBuilder.java"},"region":{"startLine":1885}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fb2515cade4f2df31b8f7c90776972050cf16b65cfdae8e5fee228a7df6d71b"}},{"ruleId":"D2","level":"warning","message":{"text":"RexUtil.isLosslessCast (cognitive 38): RexUtil.isLosslessCast has cognitive complexity 38 (threshold 15). Drivers by points: if/else 21, boolean chains 17 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/rex/RexUtil.java"},"region":{"startLine":1670}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc2d3cbe2ea5376f5162928ede7d104c45ca07749d2907e38cb7d6b7d19552a1"}},{"ruleId":"D2","level":"warning","message":{"text":"RelDecorrelator.decorrelateRel (cognitive 38): RelDecorrelator.decorrelateRel has cognitive complexity 38 (threshold 15). Drivers by points: if/else 18, loops 14, boolean chains 3, ternaries 3 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql2rel/RelDecorrelator.java"},"region":{"startLine":635}}}],"partialFingerprints":{"codehealthFindingId/v1":"90fc8f392d44654f1a5d32b8eb1baf1fbc098a1860d14581a0fbe04a5f8bf592"}},{"ruleId":"D2","level":"warning","message":{"text":"Record.updateBinaryRepresenation (cognitive 37): Record.updateBinaryRepresenation has cognitive complexity 37 (threshold 15). Drivers by points: if/else 27, loops 5, ternaries 3, error handling 2 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/Record.java"},"region":{"startLine":948}}}],"partialFingerprints":{"codehealthFindingId/v1":"a61c76b2bc21b625e446ac630b54186ec4535df3da85d28e1b0230c12e814997"}},{"ruleId":"D2","level":"warning","message":{"text":"OperationExecutor.executeOperation (cognitive 37): OperationExecutor.executeOperation has cognitive complexity 37 (threshold 15). Drivers by points: if/else 24, ternaries 9, boolean chains 4 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-sql-gateway/src/main/java/org/apache/flink/table/gateway/service/operation/OperationExecutor.java"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"98baf9d197cfa2d8ee3c1b9bab485c2850977eb0aff592fb42b02575964a509a"}},{"ruleId":"D2","level":"warning","message":{"text":"KeyedLookupJoinWrapper.processElement (cognitive 37): KeyedLookupJoinWrapper.processElement has cognitive complexity 37 (threshold 15). Drivers by points: if/else 31, loops 5, boolean chains 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/lookup/KeyedLookupJoinWrapper.java"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3d816af7239c61bba978d4767144142351f7b54001e3407be51f72b3df900cc"}},{"ruleId":"D2","level":"warning","message":{"text":"BinaryHashBucketArea.insertToBucket (cognitive 37): BinaryHashBucketArea.insertToBucket has cognitive complexity 37 (threshold 15). Drivers by points: if/else 34, ternaries 2, boolean chains 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/hashtable/BinaryHashBucketArea.java"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3124cf1357e4248ccec0c7c61addd27d678511e81f7dd2fecb67b0442ea90af"}},{"ruleId":"D2","level":"warning","message":{"text":"AnalyzeTableUtil.convertToColumnStatisticsData (cognitive 37): AnalyzeTableUtil.convertToColumnStatisticsData has cognitive complexity 37 (threshold 15). Drivers by points: ternaries 36, match/switch 1 (nesting depth added 18). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/api/internal/AnalyzeTableUtil.java"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"878df7b49f889bd2bb382a48a8e424d7503dc727b5190f264ae1b8dc1fa09fe2"}},{"ruleId":"D2","level":"warning","message":{"text":"StringUtf8Utils.firstInvalidUtf8ByteIndex (cognitive 37): StringUtf8Utils.firstInvalidUtf8ByteIndex has cognitive complexity 37 (threshold 15). Drivers by points: if/else 32, boolean chains 3, loops 2 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/data/binary/StringUtf8Utils.java"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b790a5b2217241084951031a0d680fa70bd0f9e2119c0030de12931eea8f039"}},{"ruleId":"D2","level":"warning","message":{"text":"LogicalTypeCasts.supportsCasting (cognitive 37): LogicalTypeCasts.supportsCasting has cognitive complexity 37 (threshold 15). Drivers by points: if/else 23, boolean chains 14 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/logical/utils/LogicalTypeCasts.java"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"391789a2fea0820476bc38ee3006dee1218d3b2c17fbc6fbfe4b0cb9512181f6"}},{"ruleId":"D2","level":"warning","message":{"text":"AbstractCsvInputFormat.findNextLineStartOffset (cognitive 37): AbstractCsvInputFormat.findNextLineStartOffset has cognitive complexity 37 (threshold 15). Drivers by points: if/else 28, loops 5, boolean chains 4 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-formats/flink-csv/src/main/java/org/apache/flink/formats/csv/AbstractCsvInputFormat.java"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"3496890d86643e836cac44cbc0915b51b199c7ba5a03681282b611b89a0bd916"}},{"ruleId":"D2","level":"warning","message":{"text":"TpchResultComparator.main (cognitive 36): TpchResultComparator.main has cognitive complexity 36 (threshold 15). Drivers by points: if/else 19, error handling 7, boolean chains 5, loops 5 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-end-to-end-tests/flink-tpch-test/src/main/java/org/apache/flink/table/tpch/TpchResultComparator.java"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"79fcd26b2e0a5870ed8ae7d646952b670042721ea3e3621e73f5bd60f69584ae"}},{"ruleId":"D2","level":"warning","message":{"text":"StringUtf8Utils.encodeUTF8 (cognitive 36): StringUtf8Utils.encodeUTF8 has cognitive complexity 36 (threshold 15). Drivers by points: if/else 33, loops 2, boolean chains 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/util/StringUtf8Utils.java"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"0165bd04bdff0d0c4d5cb14a5a934011c1ff632d956eb7e813a44110774bd195"}},{"ruleId":"D2","level":"warning","message":{"text":"EncodingUtils.escapeJavaStyleString (cognitive 36): EncodingUtils.escapeJavaStyleString has cognitive complexity 36 (threshold 15). Drivers by points: if/else 23, match/switch 12, loops 1 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/utils/EncodingUtils.java"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"47471ac30bcdf0c5d41f6511751bb34a5fc688f3129813b195b69605d2477845"}},{"ruleId":"D2","level":"warning","message":{"text":"SplitAggregateRule.onMatch (cognitive 36): SplitAggregateRule.onMatch has cognitive complexity 36 (threshold 15). Drivers by points: if/else 24, loops 11, ternaries 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/rules/logical/SplitAggregateRule.java"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"c04153dfac382865f168260ab1e45bd676867dba22b9bf35f92f8bcd66114d14"}},{"ruleId":"D2","level":"warning","message":{"text":"StringUtf8Utils.encodeUTF8 (cognitive 36): StringUtf8Utils.encodeUTF8 has cognitive complexity 36 (threshold 15). Drivers by points: if/else 33, loops 2, boolean chains 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/data/binary/StringUtf8Utils.java"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"03171b469eafecd144daa02e4aaa770d0173ed7956406ca775a633625ed0dd85"}},{"ruleId":"D2","level":"warning","message":{"text":"IterationHeadTask.run (cognitive 36): IterationHeadTask.run has cognitive complexity 36 (threshold 15). Drivers by points: if/else 34, boolean chains 1, loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/iterative/task/IterationHeadTask.java"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"eea1d126f77cb691f4d0645c482da60485e183008ceed4411a2ec2b82025dcf3"}},{"ruleId":"D2","level":"warning","message":{"text":"TypeExtractor.isValidPojoField (cognitive 35): TypeExtractor.isValidPojoField has cognitive complexity 35 (threshold 15). Drivers by points: if/else 19, boolean chains 11, ternaries 3, loops 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/java/typeutils/TypeExtractor.java"},"region":{"startLine":2057}}}],"partialFingerprints":{"codehealthFindingId/v1":"c03dcf695f6d100ae81cbc3500204f538f50709350c7cfdd4bf88bf6a0759d43"}},{"ruleId":"D2","level":"warning","message":{"text":"TypeExtractor.privateGetForClass (cognitive 35): TypeExtractor.privateGetForClass has cognitive complexity 35 (threshold 15). Drivers by points: if/else 33, error handling 1, ternaries 1 (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/java/typeutils/TypeExtractor.java"},"region":{"startLine":1884}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8fa288f47bd8997e1291bf4aa62b0ad79a840356bb916a065d02ea4e10fd156"}},{"ruleId":"D2","level":"warning","message":{"text":"FileInputFormat.createInputSplits (cognitive 35): FileInputFormat.createInputSplits has cognitive complexity 35 (threshold 15). Drivers by points: if/else 24, loops 10, ternaries 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/common/io/FileInputFormat.java"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"03378625afc69f885ae2bfec2fc5fab3bc8245d3a1dd4d06478ee6e69df4b084"}},{"ruleId":"D2","level":"warning","message":{"text":"FileSystem.initOutPathLocalFS (cognitive 35): FileSystem.initOutPathLocalFS has cognitive complexity 35 (threshold 15). Drivers by points: if/else 19, error handling 13, match/switch 2, boolean chains 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/core/fs/FileSystem.java"},"region":{"startLine":753}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7e6d4bbb9a1e1d80cb20f7c791714b708ee2548d928f496bbc37ea33f2d6e54"}},{"ruleId":"D2","level":"warning","message":{"text":"InputSortBuffer.processSortedTimestamps (cognitive 35): InputSortBuffer.processSortedTimestamps has cognitive complexity 35 (threshold 15). Drivers by points: if/else 21, loops 14 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/process/InputSortBuffer.java"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac3332dbd1ad22f31bde567085820e14f6abf57e7ce2445a59d7718a70577fec"}},{"ruleId":"D2","level":"warning","message":{"text":"FlinkAggregateExpandDistinctAggregatesRule.rewriteUsingGroupingSets (cognitive 35): FlinkAggregateExpandDistinctAggregatesRule.rewriteUsingGroupingSets has cognitive complexity 35 (threshold 15). Drivers by points: if/else 17, loops 10, match/switch 7, boolean chains 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/rules/logical/FlinkAggregateExpandDistinctAggregatesRule.java"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"bab159ed7ac6c468c6e1a949e4728435d2795f4590864343df475b266920ca10"}},{"ruleId":"D2","level":"warning","message":{"text":"LeaderConnectingAddressListener.findConnectingAddress (cognitive 35): LeaderConnectingAddressListener.findConnectingAddress has cognitive complexity 35 (threshold 15). Drivers by points: if/else 20, error handling 7, loops 4, match/switch 4 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/net/ConnectionUtils.java"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"38086f7b4c26d7969f89a5a9ca3bcec454768b213af0cf6c582b35b129d565ce"}},{"ruleId":"D2","level":"warning","message":{"text":"JsonRowSchemaConverter.convertType (cognitive 35): JsonRowSchemaConverter.convertType has cognitive complexity 35 (threshold 15). Drivers by points: if/else 20, boolean chains 7, loops 5, match/switch 3 (nesting depth added 9). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-formats/flink-json/src/main/java/org/apache/flink/formats/json/JsonRowSchemaConverter.java"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7df78873aea38c895cf8776304b79bb326b733dcf8ecf5fd6386e1dce4ee91d"}},{"ruleId":"D2","level":"warning","message":{"text":"SubQueryRemoveRule.rewriteIn (cognitive 35): SubQueryRemoveRule.rewriteIn has cognitive complexity 35 (threshold 15). Drivers by points: if/else 27, match/switch 8 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/rel/rules/SubQueryRemoveRule.java"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3e8784e8f3ee29972f2cb7f80cbe26a0d84643ac45d6b12fb07347188380fb4"}},{"ruleId":"D2","level":"warning","message":{"text":"ListMultipartUploadsHandler.doEndElement (cognitive 35): ListMultipartUploadsHandler.doEndElement has cognitive complexity 35 (threshold 15). Drivers by points: if/else 34, boolean chains 1 (nesting depth added 10). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-filesystems/flink-s3-fs-base/src/main/java/com/amazonaws/services/s3/model/transform/XmlResponsesSaxParser.java"},"region":{"startLine":1780}}}],"partialFingerprints":{"codehealthFindingId/v1":"64692c178ef756bf53c991fa6d7b57f51ee847d8c5915386381de786590f467d"}},{"ruleId":"D2","level":"warning","message":{"text":"TupleTypeInfoBase.getFlatFields (cognitive 34): TupleTypeInfoBase.getFlatFields has cognitive complexity 34 (threshold 15). Drivers by points: if/else 19, loops 14, boolean chains 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/java/typeutils/TupleTypeInfoBase.java"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"706ae4f02c16aded53ea9134aeec55388643f1f85f7239c94b98f6bc1bc2a43e"}},{"ruleId":"D2","level":"warning","message":{"text":"LongParser.parseField (cognitive 34): LongParser.parseField has cognitive complexity 34 (threshold 15). Drivers by points: if/else 23, boolean chains 6, ternaries 4, loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/parser/LongParser.java"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ddce6a46e237e11c97056d47066a671363861aae7b17c48f0fc5f2abfb9d71f"}},{"ruleId":"D2","level":"warning","message":{"text":"LongValueParser.parseField (cognitive 34): LongValueParser.parseField has cognitive complexity 34 (threshold 15). Drivers by points: if/else 23, boolean chains 6, ternaries 4, loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/parser/LongValueParser.java"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"da6e024a213f5b37fb493cb06516df87c5d40afc71d290324e3ead0bc12df56e"}},{"ruleId":"D2","level":"warning","message":{"text":"CompressionUtils.extractZipFileWithPermissions (cognitive 34): CompressionUtils.extractZipFileWithPermissions has cognitive complexity 34 (threshold 15). Drivers by points: if/else 29, error handling 4, loops 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/util/CompressionUtils.java"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef9a27e79d40c45e4053b406b3506cc20ea7acd2064b186fdb9e788c26ac5bdd"}},{"ruleId":"D2","level":"warning","message":{"text":"RowCsvInputFormat.parseRecord (cognitive 34): RowCsvInputFormat.parseRecord has cognitive complexity 34 (threshold 15). Drivers by points: if/else 27, boolean chains 6, loops 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-api-java-bridge/src/main/java/org/apache/flink/table/sources/format/RowCsvInputFormat.java"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"f17d4ebd499c0baaf2d6cf172d00c5fa0fe03f8d95f80fa9b49a73bff41ea19b"}},{"ruleId":"D2","level":"warning","message":{"text":"ForStStateBackend.setLocalDbStoragePaths (cognitive 34): ForStStateBackend.setLocalDbStoragePaths has cognitive complexity 34 (threshold 15). Drivers by points: if/else 25, error handling 5, loops 3, boolean chains 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-state-backends/flink-statebackend-forst/src/main/java/org/apache/flink/state/forst/ForStStateBackend.java"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"8be427ef1b0f829cef5106ea278f27435ffa5961b82c4a3c495975bbdb072831"}},{"ruleId":"D2","level":"warning","message":{"text":"EmbeddedRocksDBStateBackend.setDbStoragePaths (cognitive 34): EmbeddedRocksDBStateBackend.setDbStoragePaths has cognitive complexity 34 (threshold 15). Drivers by points: if/else 25, error handling 5, loops 3, boolean chains 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-state-backends/flink-statebackend-rocksdb/src/main/java/org/apache/flink/state/rocksdb/EmbeddedRocksDBStateBackend.java"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad64b30d92700d05f7c597a06e20393b0337e6b9a53c87ebd52f1c41375fdb97"}},{"ruleId":"D2","level":"warning","message":{"text":"ListBucketAnalyticsConfigurationHandler.doStartElement (cognitive 34): ListBucketAnalyticsConfigurationHandler.doStartElement has cognitive complexity 34 (threshold 15). Drivers by points: if/else 34 (nesting depth added 21). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-filesystems/flink-s3-fs-base/src/main/java/com/amazonaws/services/s3/model/transform/XmlResponsesSaxParser.java"},"region":{"startLine":2992}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbdb0c6fb4bb5b89753fbea3bb635c1d1cb5fcb5af5f8d6b4062d163c55c1a4a"}},{"ruleId":"D2","level":"warning","message":{"text":"BlobServerConnection.get (cognitive 33): BlobServerConnection.get has cognitive complexity 33 (threshold 15). Drivers by points: if/else 22, error handling 8, boolean chains 2, loops 1 (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/blob/BlobServerConnection.java"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"8270c09b121ef0c223837975c515546bf41de8957eab76ec0e3a3e18a335b3f6"}},{"ruleId":"D2","level":"warning","message":{"text":"AvroSchemaConverter.convertToDataType (cognitive 33): AvroSchemaConverter.convertToDataType has cognitive complexity 33 (threshold 15). Drivers by points: if/else 26, boolean chains 2, loops 2, ternaries 2, match/switch 1 (nesting depth added 9). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-formats/flink-avro/src/main/java/org/apache/flink/formats/avro/typeutils/AvroSchemaConverter.java"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"be8875601528a3c668fc81e604fa335863a51b45dd278ba59eb5659ba99ec530"}},{"ruleId":"D2","level":"warning","message":{"text":"SharedBufferAccessor.extractPatterns (cognitive 33): SharedBufferAccessor.extractPatterns has cognitive complexity 33 (threshold 15). Drivers by points: if/else 17, loops 10, ternaries 6 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-libraries/flink-cep/src/main/java/org/apache/flink/cep/nfa/sharedbuffer/SharedBufferAccessor.java"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"7733b2ae3f24c1b21e750a5d09c7072fc323d35a9e70db44870ecab590b62a32"}},{"ruleId":"D2","level":"warning","message":{"text":"Blackboard.lookupExp (cognitive 33): Blackboard.lookupExp has cognitive complexity 33 (threshold 15). Drivers by points: if/else 18, loops 13, boolean chains 2 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql2rel/SqlToRelConverter.java"},"region":{"startLine":5713}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3733941b9e0615c7845a58679e614c1e9cf125acab8e0886e68d8fa26e9fb49"}},{"ruleId":"D2","level":"warning","message":{"text":"AbstractStreamTaskNetworkInput.emitNext (cognitive 32): AbstractStreamTaskNetworkInput.emitNext has cognitive complexity 32 (threshold 15). Drivers by points: if/else 26, error handling 3, boolean chains 2, loops 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/runtime/io/AbstractStreamTaskNetworkInput.java"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcd3863cd51290348fa4295d6d318f6370853f0951858933bb3099c68a5e3e68"}},{"ruleId":"D2","level":"warning","message":{"text":"DynamicPathCollector.postVisit (cognitive 32): DynamicPathCollector.postVisit has cognitive complexity 32 (threshold 15). Drivers by points: if/else 23, loops 8, boolean chains 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/common/operators/CollectionExecutor.java"},"region":{"startLine":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dd6cb84074617dcb746f02b117caa9afbe31233643775b14a43401dfea77191"}},{"ruleId":"D2","level":"warning","message":{"text":"ExpressionKeys.\u003Cinit\u003E (cognitive 32): ExpressionKeys.\u003Cinit\u003E has cognitive complexity 32 (threshold 15). Drivers by points: if/else 24, loops 7, boolean chains 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/common/operators/Keys.java"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc4848db5df6b24a7f9309602b6427fc69a306c32a4740711c1e4a2f6b920a93"}},{"ruleId":"D2","level":"warning","message":{"text":"ResultFetcher.fetchResults (cognitive 32): ResultFetcher.fetchResults has cognitive complexity 32 (threshold 15). Drivers by points: if/else 29, loops 2, boolean chains 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-sql-gateway/src/main/java/org/apache/flink/table/gateway/service/result/ResultFetcher.java"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"022dd14f6695432851a08174c242cf90149acba316929c622222b6c8af152f35"}},{"ruleId":"D2","level":"warning","message":{"text":"BatchArrowPythonOverWindowAggregateFunctionOperator.invokeCurrentBatch (cognitive 32): BatchArrowPythonOverWindowAggregateFunctionOperator.invokeCurrentBatch has cognitive complexity 32 (threshold 15). Drivers by points: loops 22, if/else 9, boolean chains 1 (nesting depth added 21). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/table/runtime/operators/python/aggregate/arrow/batch/BatchArrowPythonOverWindowAggregateFunctionOperator.java"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"583e5f02b0dc00590c660bdde298c342eafbe64e73c23ae9aa5cbe8bacf3554c"}},{"ruleId":"D2","level":"warning","message":{"text":"AttributeBasedJoinKeyExtractor.validateKeyStructures (cognitive 32): AttributeBasedJoinKeyExtractor.validateKeyStructures has cognitive complexity 32 (threshold 15). Drivers by points: if/else 19, loops 8, ternaries 4, boolean chains 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/stream/keyselector/AttributeBasedJoinKeyExtractor.java"},"region":{"startLine":722}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7b6c5f3dee20a87afde4f5b0661dd6bd096c8769c8083aacb05195c04ef0574"}},{"ruleId":"D2","level":"warning","message":{"text":"Builder.deriveOutputType (cognitive 32): Builder.deriveOutputType has cognitive complexity 32 (threshold 15). Drivers by points: if/else 28, loops 3, boolean chains 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-test-utils/src/main/java/org/apache/flink/table/runtime/functions/ProcessTableFunctionTestHarness.java"},"region":{"startLine":1993}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b8af92f7d9552f6797a1f4b24d0b7f3a0974372080f67c8614d942c1087422b"}},{"ruleId":"D2","level":"warning","message":{"text":"RefreshThread.run (cognitive 32): RefreshThread.run has cognitive complexity 32 (threshold 15). Drivers by points: if/else 22, error handling 9, loops 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-sql-client/src/main/java/org/apache/flink/table/client/cli/CliResultView.java"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"72342b1e06ed642cafda717393b9c904dd69d2fb8db999d3a208a8e0743783c0"}},{"ruleId":"D2","level":"warning","message":{"text":"SchedulingPipelinedRegionComputeUtil.buildOutEdgesDesc (cognitive 32): SchedulingPipelinedRegionComputeUtil.buildOutEdgesDesc has cognitive complexity 32 (threshold 15). Drivers by points: if/else 16, loops 16 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/executiongraph/failover/SchedulingPipelinedRegionComputeUtil.java"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"67d5d94a3aa0f16faa55c8ba0183a5d285831dace60222d1e5c185d15f7cbe66"}},{"ruleId":"D2","level":"warning","message":{"text":"CreditBasedPartitionRequestClientHandler.decodeMsg (cognitive 32): CreditBasedPartitionRequestClientHandler.decodeMsg has cognitive complexity 32 (threshold 15). Drivers by points: if/else 24, error handling 6, boolean chains 2 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/io/network/netty/CreditBasedPartitionRequestClientHandler.java"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"66c761b6601f00504a2bdf88938f760b880178720b384677fcafce33325dcabc"}},{"ruleId":"D2","level":"warning","message":{"text":"MutableHashTable.insertBucketEntry (cognitive 32): MutableHashTable.insertBucketEntry has cognitive complexity 32 (threshold 15). Drivers by points: if/else 30, ternaries 2 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/operators/hash/MutableHashTable.java"},"region":{"startLine":1074}}}],"partialFingerprints":{"codehealthFindingId/v1":"682f80330511fa50070bfcee67632a33139cbbaeb8c88143dd908c2a8bef83de"}},{"ruleId":"D2","level":"warning","message":{"text":"BatchTask.closeLocalStrategiesAndCaches (cognitive 32): BatchTask.closeLocalStrategiesAndCaches has cognitive complexity 32 (threshold 15). Drivers by points: if/else 14, error handling 12, loops 6 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/operators/BatchTask.java"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e37652153b34e5d2e8d5b6e041a533242e671941848ef5bdc8996b8f9ea2d47"}},{"ruleId":"D2","level":"warning","message":{"text":"BatchTask.invoke (cognitive 32): BatchTask.invoke has cognitive complexity 32 (threshold 15). Drivers by points: if/else 25, loops 3, ternaries 3, error handling 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/operators/BatchTask.java"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdfe88b361829bc759ca797035d87f3a5159ef77de7f55455bd664ec5c8ecb42"}},{"ruleId":"D2","level":"warning","message":{"text":"OperatorStateRestoreOperation.restore (cognitive 32): OperatorStateRestoreOperation.restore has cognitive complexity 32 (threshold 15). Drivers by points: if/else 21, loops 7, boolean chains 2, ternaries 2 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/state/OperatorStateRestoreOperation.java"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"e898e519c540cb55637efea604a3b21ffbae6340d8ea2691d689e4673c73be27"}},{"ruleId":"D2","level":"warning","message":{"text":"RexSimplify.simplifyCast (cognitive 32): RexSimplify.simplifyCast has cognitive complexity 32 (threshold 15). Drivers by points: if/else 16, match/switch 6, boolean chains 5, ternaries 5 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/rex/RexSimplify.java"},"region":{"startLine":2567}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e12140ce121754730472cdd20da1aeb2ec007607fc43209d8072c781a3d2a9e"}},{"ruleId":"D2","level":"warning","message":{"text":"RexSimplify.verify (cognitive 32): RexSimplify.verify has cognitive complexity 32 (threshold 15). Drivers by points: if/else 23, boolean chains 3, loops 3, match/switch 3 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/rex/RexSimplify.java"},"region":{"startLine":2455}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f4cb9b932ad35e6cee0e7af7e8e6ba98f21e5fd616ea03cd8fb3267b8a29461"}},{"ruleId":"D2","level":"warning","message":{"text":"BucketCrossOriginConfigurationHandler.doStartElement (cognitive 32): BucketCrossOriginConfigurationHandler.doStartElement has cognitive complexity 32 (threshold 15). Drivers by points: if/else 32 (nesting depth added 21). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-filesystems/flink-s3-fs-base/src/main/java/com/amazonaws/services/s3/model/transform/XmlResponsesSaxParser.java"},"region":{"startLine":2496}}}],"partialFingerprints":{"codehealthFindingId/v1":"c08709616df5955d8ec2b175fbd6bdc0ce9863a1cf5b5d4858c810e521dfa308"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamTaskStateInitializerImpl.streamOperatorStateContext (cognitive 31): StreamTaskStateInitializerImpl.streamOperatorStateContext has cognitive complexity 31 (threshold 15). Drivers by points: if/else 28, boolean chains 1, error handling 1, ternaries 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/StreamTaskStateInitializerImpl.java"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"253da6d7885ab392284e978305d5baad75733f97c32538b03aa4d2c57942df1e"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamExecGroupWindowAggregate.createWindowOperator (cognitive 31): StreamExecGroupWindowAggregate.createWindowOperator has cognitive complexity 31 (threshold 15). Drivers by points: if/else 25, boolean chains 6 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/stream/StreamExecGroupWindowAggregate.java"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9b791e2d3d575ada353a59cdb5c38a71e49c09d0662005ff4c8fedf9eddf421"}},{"ruleId":"D2","level":"warning","message":{"text":"StaticFileServerHandler.respondToRequest (cognitive 31): StaticFileServerHandler.respondToRequest has cognitive complexity 31 (threshold 15). Drivers by points: if/else 25, error handling 4, boolean chains 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/rest/handler/legacy/files/StaticFileServerHandler.java"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6ad5555648395bccf2da2a286a3cfefd241c9a91c6fa9cbfab71fdae2eb459b"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeS3FileSystemFactory.create (cognitive 31): NativeS3FileSystemFactory.create has cognitive complexity 31 (threshold 15). Drivers by points: if/else 27, ternaries 4 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-filesystems/flink-s3-fs-native/src/main/java/org/apache/flink/fs/s3native/NativeS3FileSystemFactory.java"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"207b68e281397f099a95adde936999e9a17477ccfe54a5e646ea3f84e0fdb197"}},{"ruleId":"D2","level":"warning","message":{"text":"AvroSchemaConverter.convertToTypeInfo (cognitive 31): AvroSchemaConverter.convertToTypeInfo has cognitive complexity 31 (threshold 15). Drivers by points: if/else 21, boolean chains 7, loops 2, match/switch 1 (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-formats/flink-avro/src/main/java/org/apache/flink/formats/avro/typeutils/AvroSchemaConverter.java"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"75eae58da169a9abd39aef288aa4135cfed162d1006aa8499019607c93ec1251"}},{"ruleId":"D2","level":"warning","message":{"text":"GetBucketMetricsConfigurationHandler.doEndElement (cognitive 31): GetBucketMetricsConfigurationHandler.doEndElement has cognitive complexity 31 (threshold 15). Drivers by points: if/else 31 (nesting depth added 15). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-filesystems/flink-s3-fs-base/src/main/java/com/amazonaws/services/s3/model/transform/XmlResponsesSaxParser.java"},"region":{"startLine":2620}}}],"partialFingerprints":{"codehealthFindingId/v1":"469118aea6d8fd4f498cd0d9f6413d0aff3c665bf328e21dd0fe993c536e779d"}},{"ruleId":"D2","level":"warning","message":{"text":"PythonFunctionFactory.createPythonFunctionFactory (cognitive 30): PythonFunctionFactory.createPythonFunctionFactory has cognitive complexity 30 (threshold 15). Drivers by points: if/else 17, error handling 11, loops 2 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/client/python/PythonFunctionFactory.java"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"340c9b0abaa4e59ae3384b3d57964b390d665082e15cc9d0b1508157d69cdcfd"}},{"ruleId":"D2","level":"warning","message":{"text":"BeamMapStateHandler.handleIterate (cognitive 30): BeamMapStateHandler.handleIterate has cognitive complexity 30 (threshold 15). Drivers by points: if/else 23, loops 4, match/switch 3 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/streaming/api/runners/python/beam/state/BeamMapStateHandler.java"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"54042125106b4a92f25c699cd67d690a424d155dcc3c258d8f482b02de1fbd07"}},{"ruleId":"D2","level":"warning","message":{"text":"ClosureCleaner.clean (cognitive 30): ClosureCleaner.clean has cognitive complexity 30 (threshold 15). Drivers by points: if/else 20, error handling 5, ternaries 3, boolean chains 1, loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/java/ClosureCleaner.java"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"0300b00c09ff98862ac03d12c8f924727af210cf9986a65f7563d644809a0b95"}},{"ruleId":"D2","level":"warning","message":{"text":"FileSystem.getUnguardedFileSystem (cognitive 30): FileSystem.getUnguardedFileSystem has cognitive complexity 30 (threshold 15). Drivers by points: if/else 19, error handling 9, boolean chains 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/core/fs/FileSystem.java"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"215af8b7ea75e5c7b91796c963a59b0091c6dcea0e28bfd620ee2ae144e4efc3"}},{"ruleId":"D2","level":"warning","message":{"text":"TopNBuffer.removeLast (cognitive 30): TopNBuffer.removeLast has cognitive complexity 30 (threshold 15). Drivers by points: if/else 30 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/rank/TopNBuffer.java"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c9d28364f18d43967df9a3d1e4a3216ced4ab9bcd5fff164cff7a4d873a3dfb"}},{"ruleId":"D2","level":"warning","message":{"text":"FunctionTemplate.createArgumentTemplate (cognitive 30): FunctionTemplate.createArgumentTemplate has cognitive complexity 30 (threshold 15). Drivers by points: if/else 18, error handling 6, ternaries 4, boolean chains 2 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/extraction/FunctionTemplate.java"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"49678771140783bc017b7850e2b30b451df0b58ecf397b1639eec88f94f1fea4"}},{"ruleId":"D2","level":"warning","message":{"text":"ConnectionUtils.findAddressUsingStrategy (cognitive 30): ConnectionUtils.findAddressUsingStrategy has cognitive complexity 30 (threshold 15). Drivers by points: if/else 22, loops 3, match/switch 3, error handling 2 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/net/ConnectionUtils.java"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"32a86ce06decb8f59f9c9664ef87dde28ce14a7f6432a689ca37dadb0e2ac0e7"}},{"ruleId":"D2","level":"warning","message":{"text":"ReduceDriver.run (cognitive 30): ReduceDriver.run has cognitive complexity 30 (threshold 15). Drivers by points: if/else 18, loops 10, boolean chains 2 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/operators/ReduceDriver.java"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"419d0387ba07a1e83abc27f9728316663406502db52c9f42eb5a892f2f2ecad7"}},{"ruleId":"D2","level":"warning","message":{"text":"DebeziumJsonDeserializationSchema.deserialize (cognitive 30): DebeziumJsonDeserializationSchema.deserialize has cognitive complexity 30 (threshold 15). Drivers by points: if/else 26, boolean chains 2, error handling 1, loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-formats/flink-json/src/main/java/org/apache/flink/formats/json/debezium/DebeziumJsonDeserializationSchema.java"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"456cdb36ada70a8a6baea8ba60729fede2210108d48dee48bff23394d18b06a8"}},{"ruleId":"D2","level":"warning","message":{"text":"YarnTestBase.runWithArgs (cognitive 30): YarnTestBase.runWithArgs has cognitive complexity 30 (threshold 15). Drivers by points: if/else 13, error handling 8, loops 6, boolean chains 3 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-yarn-tests/src/test/java/org/apache/flink/yarn/YarnTestBase.java"},"region":{"startLine":1000}}}],"partialFingerprints":{"codehealthFindingId/v1":"152a367267764d093e501177f72273d6c14f4ea1e0a44f5c7c89b31ad86f3430"}},{"ruleId":"D2","level":"warning","message":{"text":"PojoTypeInfo.getFlatFields (cognitive 29): PojoTypeInfo.getFlatFields has cognitive complexity 29 (threshold 15). Drivers by points: if/else 16, loops 12, boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/java/typeutils/PojoTypeInfo.java"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"58abc127d9290056eeba53579179d84b39226aeb599c40de136a7c29e54a1c87"}},{"ruleId":"D2","level":"warning","message":{"text":"OneInputWindowProcessOperator.processElement (cognitive 29): OneInputWindowProcessOperator.processElement has cognitive complexity 29 (threshold 15). Drivers by points: if/else 24, loops 4, boolean chains 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/window/operators/OneInputWindowProcessOperator.java"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1ee0e38aef1d055848b89544869557441aad12513ac525f804df3e2bd01bbf9"}},{"ruleId":"D2","level":"warning","message":{"text":"TwoInputNonBroadcastWindowProcessOperator.processElement1 (cognitive 29): TwoInputNonBroadcastWindowProcessOperator.processElement1 has cognitive complexity 29 (threshold 15). Drivers by points: if/else 24, loops 4, boolean chains 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/window/operators/TwoInputNonBroadcastWindowProcessOperator.java"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"43315c11c966dedd12fcb2a020a5da062ebdba09cdc886bf02f4d745eeececa3"}},{"ruleId":"D2","level":"warning","message":{"text":"TwoInputNonBroadcastWindowProcessOperator.processElement2 (cognitive 29): TwoInputNonBroadcastWindowProcessOperator.processElement2 has cognitive complexity 29 (threshold 15). Drivers by points: if/else 24, loops 4, boolean chains 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/window/operators/TwoInputNonBroadcastWindowProcessOperator.java"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"50c892fb47d8b69ed14021fb577ff760914efc3e5e353c7f4afa401d87dfed81"}},{"ruleId":"D2","level":"warning","message":{"text":"TwoOutputWindowProcessOperator.processElement (cognitive 29): TwoOutputWindowProcessOperator.processElement has cognitive complexity 29 (threshold 15). Drivers by points: if/else 24, loops 4, boolean chains 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/window/operators/TwoOutputWindowProcessOperator.java"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"b36dfa09d04a2e273186d9715866e5dc21e02f1cfedb62faaade0abe8a92626b"}},{"ruleId":"D2","level":"warning","message":{"text":"RowDataLocalTimeZoneConverter.checkTimeZoneType (cognitive 29): RowDataLocalTimeZoneConverter.checkTimeZoneType has cognitive complexity 29 (threshold 15). Drivers by points: if/else 28, loops 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-sql-gateway/src/main/java/org/apache/flink/table/gateway/rest/util/RowDataLocalTimeZoneConverter.java"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"62a3d87946c97a11bbedc48edd4fd712c3e567c967337a864b61382d13842738"}},{"ruleId":"D2","level":"warning","message":{"text":"SortingThread.go (cognitive 29): SortingThread.go has cognitive complexity 29 (threshold 15). Drivers by points: if/else 24, boolean chains 2, error handling 2, loops 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/sort/BinaryExternalSorter.java"},"region":{"startLine":830}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea7809e9c5af3f9d51d334da4ffc629512fd64fcb94343fe5348c9b6e392574a"}},{"ruleId":"D2","level":"warning","message":{"text":"TableEnvironmentImpl.executeInternal (cognitive 29): TableEnvironmentImpl.executeInternal has cognitive complexity 29 (threshold 15). Drivers by points: if/else 23, ternaries 5, loops 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/api/internal/TableEnvironmentImpl.java"},"region":{"startLine":1059}}}],"partialFingerprints":{"codehealthFindingId/v1":"31000f5558fe1c71a65dc9415e2e7c193e98d95b6ec9caf04e348364d1a9ec12"}},{"ruleId":"D2","level":"warning","message":{"text":"TypeStringUtils.tokenize (cognitive 29): TypeStringUtils.tokenize has cognitive complexity 29 (threshold 15). Drivers by points: if/else 15, boolean chains 7, loops 7 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/legacy/utils/TypeStringUtils.java"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a4c6ba47fc1a576667eceabeef5a3553f12742ea4d2cabb111af3e22082d2d9"}},{"ruleId":"D2","level":"warning","message":{"text":"FlinkBushyJoinReorderRule.getJoinConditions (cognitive 29): FlinkBushyJoinReorderRule.getJoinConditions has cognitive complexity 29 (threshold 15). Drivers by points: if/else 18, loops 9, boolean chains 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/rules/logical/FlinkBushyJoinReorderRule.java"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"b67bf9441e1da43afb54b28a4d737aea4ddc3ac5c8ac0b2ba5f9ae3ac0d211b6"}},{"ruleId":"D2","level":"warning","message":{"text":"ItemAtIndexArgumentTypeStrategy.inferArgumentType (cognitive 29): ItemAtIndexArgumentTypeStrategy.inferArgumentType has cognitive complexity 29 (threshold 15). Drivers by points: if/else 27, boolean chains 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/inference/strategies/ItemAtIndexArgumentTypeStrategy.java"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"e292a9342036add0b8d183731587a9e23089afcd67562eb8b4fd215b7a6eebb0"}},{"ruleId":"D2","level":"warning","message":{"text":"TypeInferenceUtil.inferInputTypes (cognitive 29): TypeInferenceUtil.inferInputTypes has cognitive complexity 29 (threshold 15). Drivers by points: if/else 29 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/inference/TypeInferenceUtil.java"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"65e93db4362babfa0aa11f6e74c3b8a9976af58571aeac675380b42c2f1350b3"}},{"ruleId":"D2","level":"warning","message":{"text":"JsonPlanGenerator.generatePlan (cognitive 29): JsonPlanGenerator.generatePlan has cognitive complexity 29 (threshold 15). Drivers by points: if/else 14, ternaries 8, loops 4, boolean chains 2, error handling 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/jobgraph/jsonplan/JsonPlanGenerator.java"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"16c9eec87663c1f456b1fcfc61bfb09b57c73a6139dbc80aba66be34630a308e"}},{"ruleId":"D2","level":"warning","message":{"text":"Task.cancelOrFailAndCancelInvokableInternal (cognitive 29): Task.cancelOrFailAndCancelInvokableInternal has cognitive complexity 29 (threshold 15). Drivers by points: if/else 25, boolean chains 3, loops 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/taskmanager/Task.java"},"region":{"startLine":1231}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fdc447cbb32372c9a9411e3f8751931ee4d524c858cb87ef8696b51eb210914"}},{"ruleId":"D2","level":"warning","message":{"text":"MessageWriter.createMessageWriter (cognitive 29): MessageWriter.createMessageWriter has cognitive complexity 29 (threshold 15). Drivers by points: if/else 27, boolean chains 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-formats/flink-parquet/src/main/java/org/apache/flink/formats/parquet/protobuf/PatchedProtoWriteSupport.java"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"19f66a028b2ca60af14580b6d96094e3d6602b4655be65b634f426b2ef62856b"}},{"ruleId":"D2","level":"warning","message":{"text":"StatePathExtractor.flatMap (cognitive 29): StatePathExtractor.flatMap has cognitive complexity 29 (threshold 15). Drivers by points: if/else 20, loops 9 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-libraries/flink-state-processing-api/src/main/java/org/apache/flink/state/api/output/StatePathExtractor.java"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a985b2b2dd12cf468e22e217b8a0a96dccb87804f1efcb772a42f45afdb10b6"}},{"ruleId":"D2","level":"warning","message":{"text":"YarnApplicationFileUploader.registerMultipleLocalResources (cognitive 29): YarnApplicationFileUploader.registerMultipleLocalResources has cognitive complexity 29 (threshold 15). Drivers by points: if/else 19, loops 10 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-yarn/src/main/java/org/apache/flink/yarn/YarnApplicationFileUploader.java"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"0484700646cc98f9bb735223a574ed9b40d4c9441fc72a920bbb8c39b50bc498"}},{"ruleId":"D2","level":"warning","message":{"text":"RexSimplify.residue (cognitive 29): RexSimplify.residue has cognitive complexity 29 (threshold 15). Drivers by points: if/else 21, match/switch 6, boolean chains 1, loops 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/rex/RexSimplify.java"},"region":{"startLine":2241}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac67bd28629ab82580527a265879a37a380d04ce8663f4558e26bb8a84fb1517"}},{"ruleId":"D2","level":"warning","message":{"text":"InternalTimerServiceImpl.startTimerService (cognitive 28): InternalTimerServiceImpl.startTimerService has cognitive complexity 28 (threshold 15). Drivers by points: if/else 17, ternaries 6, boolean chains 5 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/InternalTimerServiceImpl.java"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"830aefb73df8713856e757e38f99fc80d4ea90a64bed8b8ae30833177ad1f717"}},{"ruleId":"D2","level":"warning","message":{"text":"TypeExtractor.analyzePojo (cognitive 28): TypeExtractor.analyzePojo has cognitive complexity 28 (threshold 15). Drivers by points: if/else 19, boolean chains 4, error handling 3, loops 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/java/typeutils/TypeExtractor.java"},"region":{"startLine":2128}}}],"partialFingerprints":{"codehealthFindingId/v1":"9323601106f05bc32043f9eded40f8b1f566f86a74c11ab18e125a65f78ddbf7"}},{"ruleId":"D2","level":"warning","message":{"text":"LongParser.parseField (cognitive 28): LongParser.parseField has cognitive complexity 28 (threshold 15). Drivers by points: if/else 19, boolean chains 4, ternaries 4, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/parser/LongParser.java"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"85efaed106de066ee0dcbbb3eecc0186b6827dbcd36922baa94c65b1b069abd2"}},{"ruleId":"D2","level":"warning","message":{"text":"FullOuterWindowJoinProcessor.doJoin (cognitive 28): FullOuterWindowJoinProcessor.doJoin has cognitive complexity 28 (threshold 15). Drivers by points: if/else 17, loops 10, boolean chains 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/window/utils/WindowJoinHelper.java"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"b86bf303d3832f19c8d4a51a611591d0b595ea39831e744b149b5f256a6ced62"}},{"ruleId":"D2","level":"warning","message":{"text":"WindowTableFunctionUtil.createWindowAssigner (cognitive 28): WindowTableFunctionUtil.createWindowAssigner has cognitive complexity 28 (threshold 15). Drivers by points: if/else 28 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/utils/WindowTableFunctionUtil.java"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5e6e355d8446fc77cbcb120e58a3c45041e2ea4a9b70c0911ca4d02c115f5b8"}},{"ruleId":"D2","level":"warning","message":{"text":"AbstractRecordReader.getNextRecord (cognitive 28): AbstractRecordReader.getNextRecord has cognitive complexity 28 (threshold 15). Drivers by points: if/else 25, loops 3 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/io/network/api/reader/AbstractRecordReader.java"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"62422b7d58c904dd80db51b7fc762840165f0fe758091734391c8d8240266c42"}},{"ruleId":"D2","level":"warning","message":{"text":"NonReusingBuildFirstHashJoinIterator.callWithNextKey (cognitive 28): NonReusingBuildFirstHashJoinIterator.callWithNextKey has cognitive complexity 28 (threshold 15). Drivers by points: if/else 15, loops 8, boolean chains 5 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/operators/hash/NonReusingBuildFirstHashJoinIterator.java"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd50ab94fd91a898610bf56b32159c46ec19355bf585f866a0487671c4e77d9d"}},{"ruleId":"D2","level":"warning","message":{"text":"NonReusingBuildSecondHashJoinIterator.callWithNextKey (cognitive 28): NonReusingBuildSecondHashJoinIterator.callWithNextKey has cognitive complexity 28 (threshold 15). Drivers by points: if/else 15, loops 8, boolean chains 5 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/operators/hash/NonReusingBuildSecondHashJoinIterator.java"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"fee673a05dd91175c9888ffa8749cfe8cb3a4c490ab61486250506a77f51d8af"}},{"ruleId":"D2","level":"warning","message":{"text":"JoinWithSolutionSetFirstDriver.run (cognitive 28): JoinWithSolutionSetFirstDriver.run has cognitive complexity 28 (threshold 15). Drivers by points: loops 14, if/else 10, boolean chains 4 (nesting depth added 12). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/operators/JoinWithSolutionSetFirstDriver.java"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddde48177c8e99653548c4de0103102de2dc26b74ff57cf789339bd34a4a5d79"}},{"ruleId":"D2","level":"warning","message":{"text":"JoinWithSolutionSetSecondDriver.run (cognitive 28): JoinWithSolutionSetSecondDriver.run has cognitive complexity 28 (threshold 15). Drivers by points: loops 14, if/else 10, boolean chains 4 (nesting depth added 12). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/operators/JoinWithSolutionSetSecondDriver.java"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd5a60495cd62044b976d0d48c4c159585df8c1e2c194fdd409dbc6c0d9fcc50"}},{"ruleId":"D2","level":"warning","message":{"text":"TupleComparator.compare (cognitive 28): TupleComparator.compare has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12, ternaries 11, loops 3, boolean chains 2 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-test-utils-parent/flink-test-utils/src/main/java/org/apache/flink/test/util/TestBaseUtils.java"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd88297db42a13696f3415760489852cfb73c475e0b22a0c8831b49f5064e7f8"}},{"ruleId":"D2","level":"warning","message":{"text":"AvroRowSerializationSchema.convertFlinkType (cognitive 28): AvroRowSerializationSchema.convertFlinkType has cognitive complexity 28 (threshold 15). Drivers by points: if/else 21, loops 4, boolean chains 2, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/formats/avro/AvroRowSerializationSchema.java"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfba63e528ea0b3afc3238686a81afa1033853574ce1e31c93647a250885c467"}},{"ruleId":"D2","level":"warning","message":{"text":"MaxwellJsonDeserializationSchema.deserialize (cognitive 28): MaxwellJsonDeserializationSchema.deserialize has cognitive complexity 28 (threshold 15). Drivers by points: if/else 21, loops 4, boolean chains 2, error handling 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-formats/flink-json/src/main/java/org/apache/flink/formats/json/maxwell/MaxwellJsonDeserializationSchema.java"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"630a5292466822b1dfad57212759e51eacc19f9860a2b929e0b4653b7fe43a8b"}},{"ruleId":"D2","level":"warning","message":{"text":"PbToRowTypeUtil.generateFieldTypeInformation (cognitive 28): PbToRowTypeUtil.generateFieldTypeInformation has cognitive complexity 28 (threshold 15). Drivers by points: if/else 28 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-formats/flink-protobuf/src/main/java/org/apache/flink/formats/protobuf/util/PbToRowTypeUtil.java"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a208292e994c55e8344677ef120cee38816eedc79929f3043e9a83b6d9969c7"}},{"ruleId":"D2","level":"warning","message":{"text":"TritonInferenceModelFunction.handleErrorResponseWithRetry (cognitive 28): TritonInferenceModelFunction.handleErrorResponseWithRetry has cognitive complexity 28 (threshold 15). Drivers by points: if/else 22, boolean chains 4, error handling 1, ternaries 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-models/flink-model-triton/src/main/java/org/apache/flink/model/triton/TritonInferenceModelFunction.java"},"region":{"startLine":727}}}],"partialFingerprints":{"codehealthFindingId/v1":"735896dfc63d4aaa75322f0fa9b657eab6e23e7cad1cd8d1490fb81d4b8ca740"}},{"ruleId":"D2","level":"warning","message":{"text":"NavigationExpander.visit (cognitive 28): NavigationExpander.visit has cognitive complexity 28 (threshold 15). Drivers by points: if/else 20, ternaries 4, boolean chains 2, loops 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql/validate/SqlValidatorImpl.java"},"region":{"startLine":8008}}}],"partialFingerprints":{"codehealthFindingId/v1":"7da30375bdf4c2e83447477e21e635c5b0da4c995d2c76f536a24196ede3be18"}},{"ruleId":"D2","level":"warning","message":{"text":"RelDecorrelator.isFieldNotNullRecursive (cognitive 28): RelDecorrelator.isFieldNotNullRecursive has cognitive complexity 28 (threshold 15). Drivers by points: if/else 26, boolean chains 2 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql2rel/RelDecorrelator.java"},"region":{"startLine":3540}}}],"partialFingerprints":{"codehealthFindingId/v1":"46ec9bdc5f4ad24dd0ca7fcd5825434f062abd6a4744a2fda25c0848114e4776"}},{"ruleId":"D2","level":"warning","message":{"text":"ListPartsHandler.doEndElement (cognitive 28): ListPartsHandler.doEndElement has cognitive complexity 28 (threshold 15). Drivers by points: if/else 27, boolean chains 1 (nesting depth added 6). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-filesystems/flink-s3-fs-base/src/main/java/com/amazonaws/services/s3/model/transform/XmlResponsesSaxParser.java"},"region":{"startLine":1903}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c888c7ab21a40b36d19f8dcfb86c12ad60f0e60c2eb3a0bce0ca967228041cc"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamExecPythonGroupWindowAggregate.generateWindowAssignerAndTrigger (cognitive 27): StreamExecPythonGroupWindowAggregate.generateWindowAssignerAndTrigger has cognitive complexity 27 (threshold 15). Drivers by points: if/else 21, boolean chains 6 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/stream/StreamExecPythonGroupWindowAggregate.java"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"6878b3333968be8e8892ae10537442d878c442ea9c42ca30912aaed9ca5f807d"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamExecRank.translateToPlanInternal (cognitive 27): StreamExecRank.translateToPlanInternal has cognitive complexity 27 (threshold 15). Drivers by points: if/else 25, boolean chains 1, match/switch 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/stream/StreamExecRank.java"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"88eae268c06bec7fbdaeba657d28a99036d39806ff3095dd46059384659bcb9d"}},{"ruleId":"D2","level":"warning","message":{"text":"FlinkAggregateExpandDistinctAggregatesRule.onMatch (cognitive 27): FlinkAggregateExpandDistinctAggregatesRule.onMatch has cognitive complexity 27 (threshold 15). Drivers by points: if/else 18, loops 4, match/switch 3, boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/rules/logical/FlinkAggregateExpandDistinctAggregatesRule.java"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c4fb56bb077040176491cd81a4be8ccc7d51f2c1a163db082a83e6323f8b43e"}},{"ruleId":"D2","level":"warning","message":{"text":"LogicalJoinToLateralSnapshotJoinRule.onMatch (cognitive 27): LogicalJoinToLateralSnapshotJoinRule.onMatch has cognitive complexity 27 (threshold 15). Drivers by points: if/else 18, ternaries 5, boolean chains 2, loops 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/rules/logical/LogicalJoinToLateralSnapshotJoinRule.java"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"7097d3c228fc29388028acf20575b9e225d97736cb424a028507ddf13b62e5c9"}},{"ruleId":"D2","level":"warning","message":{"text":"SubQueryRelDecorrelator.decorrelateRel (cognitive 27): SubQueryRelDecorrelator.decorrelateRel has cognitive complexity 27 (threshold 15). Drivers by points: if/else 14, loops 11, ternaries 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/rules/logical/SubQueryDecorrelator.java"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"176f7829d23afe85ffa0065ea8672266607653bec493b5016ea8f6f10e141dfb"}},{"ruleId":"D2","level":"warning","message":{"text":"JobVertexTaskManagersHandler.createJobVertexTaskManagersInfo (cognitive 27): JobVertexTaskManagersHandler.createJobVertexTaskManagersInfo has cognitive complexity 27 (threshold 15). Drivers by points: if/else 13, loops 8, ternaries 6 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/rest/handler/job/JobVertexTaskManagersHandler.java"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"bca0d77c1545cd684fb65d2060e2113ccd64c44ddf19aaed29f355899d0f3482"}},{"ruleId":"D2","level":"warning","message":{"text":"HadoopFsFactory.create (cognitive 27): HadoopFsFactory.create has cognitive complexity 27 (threshold 15). Drivers by points: if/else 19, error handling 8 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-filesystems/flink-hadoop-fs/src/main/java/org/apache/flink/runtime/fs/hdfs/HadoopFsFactory.java"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"e03b979e64d506fee446cf8262ccf1e171f40c9ceed0e1b9625eb7c652330a49"}},{"ruleId":"D2","level":"warning","message":{"text":"CreditBasedPartitionRequestClientHandler.decodeBufferOrEvent (cognitive 27): CreditBasedPartitionRequestClientHandler.decodeBufferOrEvent has cognitive complexity 27 (threshold 15). Drivers by points: if/else 13, ternaries 5, error handling 4, loops 4, boolean chains 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/io/network/netty/CreditBasedPartitionRequestClientHandler.java"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca19d5eff2d32d9b644c8f4d3f1b84c18e3305aec5a775f567d85c85a50fa9ac"}},{"ruleId":"D2","level":"warning","message":{"text":"CrossDriver.runBlockedOuterSecond (cognitive 27): CrossDriver.runBlockedOuterSecond has cognitive complexity 27 (threshold 15). Drivers by points: loops 18, boolean chains 6, if/else 3 (nesting depth added 12). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/operators/CrossDriver.java"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"3da6864d0ef3aeafe873aa7171453af542257bbdd4b815d8c8a495db6c90c56a"}},{"ruleId":"D2","level":"warning","message":{"text":"AvroRowDeserializationSchema.convertAvroType (cognitive 27): AvroRowDeserializationSchema.convertAvroType has cognitive complexity 27 (threshold 15). Drivers by points: if/else 21, boolean chains 3, loops 2, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/formats/avro/AvroRowDeserializationSchema.java"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"f93556c79f7ba0fa9bccb89aea7de704450961ff47a6b7cee439f8eba04bcc76"}},{"ruleId":"D2","level":"warning","message":{"text":"OggJsonDeserializationSchema.deserialize (cognitive 27): OggJsonDeserializationSchema.deserialize has cognitive complexity 27 (threshold 15). Drivers by points: if/else 24, boolean chains 1, error handling 1, loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-formats/flink-json/src/main/java/org/apache/flink/formats/json/ogg/OggJsonDeserializationSchema.java"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"db47a2301e6b5e8b6f909d50fc9d2420d89783c3029799bf97684403249a206f"}},{"ruleId":"D2","level":"warning","message":{"text":"ColumnPredicate.castLiteral (cognitive 27): ColumnPredicate.castLiteral has cognitive complexity 27 (threshold 15). Drivers by points: if/else 26, match/switch 1 (nesting depth added 7). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-formats/flink-orc/src/main/java/org/apache/flink/orc/OrcFilters.java"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"c24baeb9cfd257ca5b1d1f78b290cffbf068286cfc191e937c6edfa500df0a3d"}},{"ruleId":"D2","level":"warning","message":{"text":"PreviousSnapshot.pruneFirstCheckpointSstFiles (cognitive 27): PreviousSnapshot.pruneFirstCheckpointSstFiles has cognitive complexity 27 (threshold 15). Drivers by points: if/else 18, loops 6, boolean chains 2, ternaries 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-state-backends/flink-statebackend-forst/src/main/java/org/apache/flink/state/forst/snapshot/ForStSnapshotStrategyBase.java"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"c548bdcbade56ba317a59fe4b884eb360fb16da2f6c4335dc2bf157818205b96"}},{"ruleId":"D2","level":"warning","message":{"text":"ForStNativeMetricOptions.configurePropertyMetrics (cognitive 27): ForStNativeMetricOptions.configurePropertyMetrics has cognitive complexity 27 (threshold 15). Drivers by points: if/else 27. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-state-backends/flink-statebackend-forst/src/main/java/org/apache/flink/state/forst/ForStNativeMetricOptions.java"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3cc3782f8961675afcaa57d84208e313caa94a0d97d2bafa834361d7908ad84"}},{"ruleId":"D2","level":"warning","message":{"text":"PreviousSnapshot.pruneFirstCheckpointSstFiles (cognitive 27): PreviousSnapshot.pruneFirstCheckpointSstFiles has cognitive complexity 27 (threshold 15). Drivers by points: if/else 18, loops 6, boolean chains 2, ternaries 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-state-backends/flink-statebackend-rocksdb/src/main/java/org/apache/flink/state/rocksdb/snapshot/RocksDBSnapshotStrategyBase.java"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3f3e6871b01fca90ebe1075121a35959ecdc759b3c35827521ce4736e0fd4aa"}},{"ruleId":"D2","level":"warning","message":{"text":"RocksDBNativeMetricOptions.configurePropertyMetrics (cognitive 27): RocksDBNativeMetricOptions.configurePropertyMetrics has cognitive complexity 27 (threshold 15). Drivers by points: if/else 27. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-state-backends/flink-statebackend-rocksdb/src/main/java/org/apache/flink/state/rocksdb/RocksDBNativeMetricOptions.java"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa5e2b4049bfc80c272bce4fdd45fc886f6f9baf2a1d4e088c0edf7728fdcaa8"}},{"ruleId":"D2","level":"warning","message":{"text":"RexBuilder.makeCast (cognitive 27): RexBuilder.makeCast has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11, match/switch 11, boolean chains 5 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/rex/RexBuilder.java"},"region":{"startLine":710}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8cd59abb4cdc0c28b42c0d6d5ba4e47732a418fc5e72d34712cbd3e75c707eb"}},{"ruleId":"D2","level":"warning","message":{"text":"TypeInfoToProtoConverter.getTypeName (cognitive 26): TypeInfoToProtoConverter.getTypeName has cognitive complexity 26 (threshold 15). Drivers by points: if/else 26. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/streaming/api/utils/PythonTypeUtils.java"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4c445a7d8e72ee6ccd1f26a97db2ed0853d5b498cf74a7191258cec90b5303f"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamGraph.createJobCheckpointingSettingsInternal (cognitive 26): StreamGraph.createJobCheckpointingSettingsInternal has cognitive complexity 26 (threshold 15). Drivers by points: if/else 16, error handling 6, ternaries 2, boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/graph/StreamGraph.java"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"16cb230b33c0c4f78ebbcfebbcf2699603f4e5a67963e60daa317746e70742c7"}},{"ruleId":"D2","level":"warning","message":{"text":"StringParser.parseField (cognitive 26): StringParser.parseField has cognitive complexity 26 (threshold 15). Drivers by points: if/else 17, boolean chains 5, loops 4 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/parser/StringParser.java"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"5faf1e7bdf4bb4044a408d8dca2cb6f548300e0a95635dff91b67c6d65ced816"}},{"ruleId":"D2","level":"warning","message":{"text":"StringValueParser.parseField (cognitive 26): StringValueParser.parseField has cognitive complexity 26 (threshold 15). Drivers by points: if/else 17, boolean chains 5, loops 4 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/parser/StringValueParser.java"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"9087c88f92c02b38aa56d2e71d6bef535d8eb6c3dda76e0ddf6152813a877c29"}},{"ruleId":"D2","level":"warning","message":{"text":"ResultIterator.prefetch (cognitive 26): ResultIterator.prefetch has cognitive complexity 26 (threshold 15). Drivers by points: if/else 17, boolean chains 4, match/switch 2, ternaries 2, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-sql-gateway/src/main/java/org/apache/flink/table/gateway/service/application/ScriptExecutor.java"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0c037ff09ed13e971d60d99039d8981829634cc2e99e8c31038bacfbea9d64c"}},{"ruleId":"D2","level":"warning","message":{"text":"AbstractStreamArrowPythonBoundedRowsOperator.triggerWindowProcess (cognitive 26): AbstractStreamArrowPythonBoundedRowsOperator.triggerWindowProcess has cognitive complexity 26 (threshold 15). Drivers by points: loops 17, if/else 7, boolean chains 2 (nesting depth added 13). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/table/runtime/operators/python/aggregate/arrow/stream/AbstractStreamArrowPythonBoundedRowsOperator.java"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"447c4f1f6f0c5a95287b1ca579fc3186d895fd1db22648c8587f07b0ffd8567f"}},{"ruleId":"D2","level":"warning","message":{"text":"RowTimeRangeBoundedPrecedingFunction.onTimer (cognitive 26): RowTimeRangeBoundedPrecedingFunction.onTimer has cognitive complexity 26 (threshold 15). Drivers by points: loops 13, if/else 12, boolean chains 1 (nesting depth added 14). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/over/RowTimeRangeBoundedPrecedingFunction.java"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"e52ca24eb329165e3bf1545241ebe58542bf392444a57f9ba16c570682a9b5d8"}},{"ruleId":"D2","level":"warning","message":{"text":"Builder.buildArgumentInfo (cognitive 26): Builder.buildArgumentInfo has cognitive complexity 26 (threshold 15). Drivers by points: if/else 22, boolean chains 2, ternaries 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-test-utils/src/main/java/org/apache/flink/table/runtime/functions/ProcessTableFunctionTestHarness.java"},"region":{"startLine":1805}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfb9bbceb93336af4cbd7b7f35a5cc55415abcfab5e24ea09efafa0288da911a"}},{"ruleId":"D2","level":"warning","message":{"text":"SqlLikeUtils.sqlToRegexLike (cognitive 26): SqlLikeUtils.sqlToRegexLike has cognitive complexity 26 (threshold 15). Drivers by points: if/else 23, boolean chains 2, loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/functions/SqlLikeUtils.java"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"60ca10c4d4927abb251aee6606b8b493824ea227c222a8591336d92e4d24c2a2"}},{"ruleId":"D2","level":"warning","message":{"text":"CommonExecTableSourceScan.translateToPlanInternal (cognitive 26): CommonExecTableSourceScan.translateToPlanInternal has cognitive complexity 26 (threshold 15). Drivers by points: if/else 22, ternaries 3, boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/common/CommonExecTableSourceScan.java"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3ebedc319f340bdfd3714adc19e624e49be95193133179913129c1f261f8cea"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamNonDeterministicUpdatePlanVisitor.visit (cognitive 26): StreamNonDeterministicUpdatePlanVisitor.visit has cognitive complexity 26 (threshold 15). Drivers by points: if/else 24, boolean chains 2. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/optimize/StreamNonDeterministicUpdatePlanVisitor.java"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"26fbfcc0c2b524819000b20c51616c5cae186da3933dd89ed89df35864b6b962"}},{"ruleId":"D2","level":"warning","message":{"text":"EnvironmentInformation.logEnvironmentInfo (cognitive 26): EnvironmentInformation.logEnvironmentInfo has cognitive complexity 26 (threshold 15). Drivers by points: if/else 17, loops 6, ternaries 2, boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/util/EnvironmentInformation.java"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf5976ca51f2dc0008c9f14a83c1b228ee7f61c061360742d8e9d3288aa0ee6a"}},{"ruleId":"D2","level":"warning","message":{"text":"Checkpoints.loadAndValidateCheckpoint (cognitive 26): Checkpoints.loadAndValidateCheckpoint has cognitive complexity 26 (threshold 15). Drivers by points: if/else 17, loops 8, boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/Checkpoints.java"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"07f8435f7042b8b6176aaf24f32489a73c167ac9c49ae2ec58189e008e593d35"}},{"ruleId":"D2","level":"warning","message":{"text":"RoundRobinOperatorStateRepartitioner.repartitionSplitState (cognitive 26): RoundRobinOperatorStateRepartitioner.repartitionSplitState has cognitive complexity 26 (threshold 15). Drivers by points: if/else 18, loops 8 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/RoundRobinOperatorStateRepartitioner.java"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"7692932bc59ad187e51dc5e092af0737eb0969f52ca0947b7e134ae6b6a723f7"}},{"ruleId":"D2","level":"warning","message":{"text":"TestBaseUtils.compareResult (cognitive 26): TestBaseUtils.compareResult has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 12, if/else 8, loops 6 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-test-utils-parent/flink-test-utils/src/main/java/org/apache/flink/test/util/TestBaseUtils.java"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d78203cd83cacb32c681c6e97b42553836a3642a048f0f724b763a710643c6a"}},{"ruleId":"D2","level":"warning","message":{"text":"ParquetSplitReaderUtil.createWritableColumnVector (cognitive 26): ParquetSplitReaderUtil.createWritableColumnVector has cognitive complexity 26 (threshold 15). Drivers by points: if/else 16, boolean chains 7, loops 2, match/switch 1 (nesting depth added 9). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-formats/flink-parquet/src/main/java/org/apache/flink/formats/parquet/vector/ParquetSplitReaderUtil.java"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"201bfb13c5c788fedf247a937a389d6a27ea2cdc1536255bed096237ca78f07b"}},{"ruleId":"D2","level":"warning","message":{"text":"TritonInferenceModelFunction.parseInferenceResponse (cognitive 26): TritonInferenceModelFunction.parseInferenceResponse has cognitive complexity 26 (threshold 15). Drivers by points: if/else 21, boolean chains 3, loops 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-models/flink-model-triton/src/main/java/org/apache/flink/model/triton/TritonInferenceModelFunction.java"},"region":{"startLine":1020}}}],"partialFingerprints":{"codehealthFindingId/v1":"c760603ba431c44139913e90b1732229fa37506ad4fd038cf2de14f2dceff8fa"}},{"ruleId":"D2","level":"warning","message":{"text":"GetBucketAnalyticsConfigurationHandler.doStartElement (cognitive 26): GetBucketAnalyticsConfigurationHandler.doStartElement has cognitive complexity 26 (threshold 15). Drivers by points: if/else 26 (nesting depth added 15). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-filesystems/flink-s3-fs-base/src/main/java/com/amazonaws/services/s3/model/transform/XmlResponsesSaxParser.java"},"region":{"startLine":2840}}}],"partialFingerprints":{"codehealthFindingId/v1":"87341e43d431c60f6a704257f972be04f9823582420c535168ef8935fb744fc8"}},{"ruleId":"D2","level":"warning","message":{"text":"SocketClientSink.invoke (cognitive 25): SocketClientSink.invoke has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11, error handling 10, boolean chains 2, loops 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/functions/sink/legacy/SocketClientSink.java"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c2bfe1645c29c68fe491502e1e87f14d77793ec9c898ce08e70cc759594f37a"}},{"ruleId":"D2","level":"warning","message":{"text":"TypeInfoToSerializerConverter.typeInfoSerializerConverter (cognitive 25): TypeInfoToSerializerConverter.typeInfoSerializerConverter has cognitive complexity 25 (threshold 15). Drivers by points: if/else 22, loops 3 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/streaming/api/utils/PythonTypeUtils.java"},"region":{"startLine":732}}}],"partialFingerprints":{"codehealthFindingId/v1":"98057c9dd32c8294b98815588d27aec8181013b1452f1db6a3a696d87b2800d9"}},{"ruleId":"D2","level":"warning","message":{"text":"TypeExtractor.createSubTypesInfo (cognitive 25): TypeExtractor.createSubTypesInfo has cognitive complexity 25 (threshold 15). Drivers by points: if/else 19, error handling 3, loops 2, boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/java/typeutils/TypeExtractor.java"},"region":{"startLine":1256}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6d55f223b98180fc4e86f86a1c5eda2419bed9d73562fc1716ee6bae413294c"}},{"ruleId":"D2","level":"warning","message":{"text":"BinaryVariantInternalBuilder.finishWritingObject (cognitive 25): BinaryVariantInternalBuilder.finishWritingObject has cognitive complexity 25 (threshold 15). Drivers by points: if/else 15, loops 8, ternaries 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/variant/BinaryVariantInternalBuilder.java"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b1603209478e2b4ba85b2ecaae91de441c297faaf4af5431b4e0852c33d1caf"}},{"ruleId":"D2","level":"warning","message":{"text":"AbstractPagedInputView.readUTF (cognitive 25): AbstractPagedInputView.readUTF has cognitive complexity 25 (threshold 15). Drivers by points: if/else 18, boolean chains 3, loops 2, match/switch 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/core/memory/AbstractPagedInputView.java"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e59fe4057c8dc4452c7ea310cf15a50b771ba04094f07c9c7e23d219b39803b"}},{"ruleId":"D2","level":"warning","message":{"text":"HashJoinType.of (cognitive 25): HashJoinType.of has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 18, if/else 6, boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/HashJoinType.java"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a0b3b1d0dd6ab3ec8cdc21ab26a04a4cd193dab06a548275648ea973b0b1201"}},{"ruleId":"D2","level":"warning","message":{"text":"SortUtil.compareBinary (cognitive 25): SortUtil.compareBinary has cognitive complexity 25 (threshold 15). Drivers by points: if/else 18, ternaries 4, loops 2, boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/sort/SortUtil.java"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"30db4951d1ea8fb16bfe1c3759acd6d7cf28fe95b923ef72bf1aca9b78876474"}},{"ruleId":"D2","level":"warning","message":{"text":"DateTimeUtils.julianDateFloor (cognitive 25): DateTimeUtils.julianDateFloor has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10, ternaries 8, boolean chains 6, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/utils/DateTimeUtils.java"},"region":{"startLine":1390}}}],"partialFingerprints":{"codehealthFindingId/v1":"32f9962573431d01a742732a9e4fe5803185c214401fc699f41b538d17843558"}},{"ruleId":"D2","level":"warning","message":{"text":"TableFactoryService.filterByContext (cognitive 25): TableFactoryService.filterByContext has cognitive complexity 25 (threshold 15). Drivers by points: if/else 20, loops 3, boolean chains 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/factories/TableFactoryService.java"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"0959bb3cffe09813ff57f3565a4be4dfe98bf3e38aa75a3e9c355078b20279ce"}},{"ruleId":"D2","level":"warning","message":{"text":"SqlLikeUtils.sqlToRegexSimilar (cognitive 25): SqlLikeUtils.sqlToRegexSimilar has cognitive complexity 25 (threshold 15). Drivers by points: if/else 20, match/switch 3, boolean chains 1, loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/functions/SqlLikeUtils.java"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc375e3336e2a7de77f8deec1170aad383f8069c9e62984b8d684d432c4d9cf0"}},{"ruleId":"D2","level":"warning","message":{"text":"FlinkCalciteSqlValidator.performUnconditionalRewrites (cognitive 25): FlinkCalciteSqlValidator.performUnconditionalRewrites has cognitive complexity 25 (threshold 15). Drivers by points: if/else 22, loops 2, boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/calcite/FlinkCalciteSqlValidator.java"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"42c9999eca832383b4e14175a068049d4ce1db108d2b8a71f3e47baeaaad2995"}},{"ruleId":"D2","level":"warning","message":{"text":"FlinkRewriteSubQueryRule.getSupportedScalarQuery (cognitive 25): FlinkRewriteSubQueryRule.getSupportedScalarQuery has cognitive complexity 25 (threshold 15). Drivers by points: if/else 20, boolean chains 4, match/switch 1 (nesting depth added 12). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/rules/logical/FlinkRewriteSubQueryRule.java"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bb3b384a4c794e317d378d9bbbafe1451b78add18c09b742246675d9e1c49b8"}},{"ruleId":"D2","level":"warning","message":{"text":"NonSpanningWrapper.readUTF (cognitive 25): NonSpanningWrapper.readUTF has cognitive complexity 25 (threshold 15). Drivers by points: if/else 18, boolean chains 3, loops 2, match/switch 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/io/network/api/serialization/NonSpanningWrapper.java"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"4795079cb2c72c2097baaed445b8db56a9c2eac40bbb965519f6c01025f21928"}},{"ruleId":"D2","level":"warning","message":{"text":"CrossDriver.runBlockedOuterFirst (cognitive 25): CrossDriver.runBlockedOuterFirst has cognitive complexity 25 (threshold 15). Drivers by points: loops 18, boolean chains 4, if/else 3 (nesting depth added 12). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/operators/CrossDriver.java"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"8643edbaf739728b2066c61c3f5b906149dfef1f3f5197627f9b92563ba33d97"}},{"ruleId":"D2","level":"warning","message":{"text":"FsCheckpointStateOutputStream.closeAndGetHandle (cognitive 25): FsCheckpointStateOutputStream.closeAndGetHandle has cognitive complexity 25 (threshold 15). Drivers by points: error handling 10, if/else 10, ternaries 3, boolean chains 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/state/filesystem/FsCheckpointStreamFactory.java"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"d40e9872e7329bc7458c88b265da3881dbf4beb7ac77539bc8f816d6d6415c97"}},{"ruleId":"D2","level":"warning","message":{"text":"RescalingITCase.testSavepointRescalingPartitionedOperatorState (cognitive 25): RescalingITCase.testSavepointRescalingPartitionedOperatorState has cognitive complexity 25 (threshold 15). Drivers by points: loops 17, if/else 5, ternaries 2, boolean chains 1 (nesting depth added 10). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-tests/src/test/java/org/apache/flink/test/checkpointing/RescalingITCase.java"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4b5a57f5826603b3e5a5b37774bffb95b333bc1604f2a53b144344f90496564"}},{"ruleId":"D2","level":"warning","message":{"text":"FixedLenBytesColumnReader.readBatch (cognitive 25): FixedLenBytesColumnReader.readBatch has cognitive complexity 25 (threshold 15). Drivers by points: if/else 17, loops 8 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-formats/flink-parquet/src/main/java/org/apache/flink/formats/parquet/vector/reader/FixedLenBytesColumnReader.java"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"20675e6f7b807dd01a3aa2d704f229757e87553c392e99080200a8122618d00a"}},{"ruleId":"D2","level":"warning","message":{"text":"NFAFactoryCompiler.copyWithoutTransitiveNots (cognitive 25): NFAFactoryCompiler.copyWithoutTransitiveNots has cognitive complexity 25 (threshold 15). Drivers by points: if/else 16, loops 5, ternaries 3, boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-libraries/flink-cep/src/main/java/org/apache/flink/cep/nfa/compiler/NFACompiler.java"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"05c691f92684f4b592347781e0d496f1a30ea04e3c85b063e138eedb767e760f"}},{"ruleId":"D2","level":"warning","message":{"text":"AbstractTritonModelFunction.close (cognitive 25): AbstractTritonModelFunction.close has cognitive complexity 25 (threshold 15). Drivers by points: if/else 18, error handling 7 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-models/flink-model-triton/src/main/java/org/apache/flink/model/triton/AbstractTritonModelFunction.java"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"914cc99cba2e0cdde196079d3abb29cdaad80225db3f260fa3600ac8652d23fa"}},{"ruleId":"D2","level":"warning","message":{"text":"SqlTypeUtil.isComparable (cognitive 25): SqlTypeUtil.isComparable has cognitive complexity 25 (threshold 15). Drivers by points: if/else 16, boolean chains 7, loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql/type/SqlTypeUtil.java"},"region":{"startLine":1652}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc939e79a42f978fc23c8fc0bb87e508e86254500672132ccc7b658caf850331"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoveCorrelationForScalarProjectRule.onMatch (cognitive 25): RemoveCorrelationForScalarProjectRule.onMatch has cognitive complexity 25 (threshold 15). Drivers by points: if/else 20, boolean chains 3, loops 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql2rel/RelDecorrelator.java"},"region":{"startLine":2457}}}],"partialFingerprints":{"codehealthFindingId/v1":"95c97de351ec213f9775c448f2bda98ee5f366be9e2f986cedd081a0ce60d53e"}},{"ruleId":"D2","level":"warning","message":{"text":"ServerThread.run (cognitive 24): ServerThread.run has cognitive complexity 24 (threshold 15). Drivers by points: if/else 15, loops 5, boolean chains 2, error handling 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/collect/CollectSinkFunction.java"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ab607230c9de75269d55d50ba01afa243736023959d8ea6f3e9ad0dc57e1807"}},{"ruleId":"D2","level":"warning","message":{"text":"ByteParser.parseField (cognitive 24): ByteParser.parseField has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13, boolean chains 6, ternaries 4, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/parser/ByteParser.java"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"0aef6efa2c5ad8a030b93b4b55ffddf23020174acbe3e27c58ff82eb78c3ed79"}},{"ruleId":"D2","level":"warning","message":{"text":"ByteValueParser.parseField (cognitive 24): ByteValueParser.parseField has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13, boolean chains 6, ternaries 4, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/parser/ByteValueParser.java"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"9df2a9d1b4da4ea89b7b20a9e2c9353e3215c2bb37c40cf1f41476fc2862fc27"}},{"ruleId":"D2","level":"warning","message":{"text":"IntParser.parseField (cognitive 24): IntParser.parseField has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13, boolean chains 6, ternaries 4, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/parser/IntParser.java"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"43185c7036acc0f52fa8739c7068bac3505c97ee5ed7b34a44cac11418172ae7"}},{"ruleId":"D2","level":"warning","message":{"text":"IntValueParser.parseField (cognitive 24): IntValueParser.parseField has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13, boolean chains 6, ternaries 4, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/parser/IntValueParser.java"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd6917d07299f138b9716fc2ef2a14843411d005d1f29fe3e1f1f3f57885a95e"}},{"ruleId":"D2","level":"warning","message":{"text":"ShortParser.parseField (cognitive 24): ShortParser.parseField has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13, boolean chains 6, ternaries 4, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/parser/ShortParser.java"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"07be476ec9289fbfcb14d11bc0a621e9342f4e1365f4104a6bd304d13568fb79"}},{"ruleId":"D2","level":"warning","message":{"text":"ShortValueParser.parseField (cognitive 24): ShortValueParser.parseField has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13, boolean chains 6, ternaries 4, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/parser/ShortValueParser.java"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f0e0d2dceb3ace453a4ba162bb8cc706e70609ddee863a3df14d055133770df"}},{"ruleId":"D2","level":"warning","message":{"text":"LongValueSequenceIterator.split (cognitive 24): LongValueSequenceIterator.split has cognitive complexity 24 (threshold 15). Drivers by points: if/else 20, loops 4 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/util/LongValueSequenceIterator.java"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"935d6abd7788d79c151f52ef08997fb6634c2f113882a84303ea009a2c85f6aa"}},{"ruleId":"D2","level":"warning","message":{"text":"NumberSequenceIterator.split (cognitive 24): NumberSequenceIterator.split has cognitive complexity 24 (threshold 15). Drivers by points: if/else 20, loops 4 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/util/NumberSequenceIterator.java"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"7560732361659f28c196011527a333f945ad911b8c68410cc0a2bc946d253c54"}},{"ruleId":"D2","level":"warning","message":{"text":"AbstractRowTimeUnboundedPrecedingOver.onTimer (cognitive 24): AbstractRowTimeUnboundedPrecedingOver.onTimer has cognitive complexity 24 (threshold 15). Drivers by points: if/else 20, loops 4 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/over/AbstractRowTimeUnboundedPrecedingOver.java"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f4df6085882432ed50e2885c8cc30096f65ef6a62ee266f92d4f36e55afc36c"}},{"ruleId":"D2","level":"warning","message":{"text":"AbstractBitmapBuildWithRetractAggFunction.merge (cognitive 24): AbstractBitmapBuildWithRetractAggFunction.merge has cognitive complexity 24 (threshold 15). Drivers by points: if/else 16, loops 3, ternaries 3, boolean chains 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/aggregate/AbstractBitmapBuildWithRetractAggFunction.java"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"073a31cfd0a60087c21e98de7eb62e258316e88bb9bbdc354b26684088f11130"}},{"ruleId":"D2","level":"warning","message":{"text":"AbstractBitmapOrWithRetractAggFunction.merge (cognitive 24): AbstractBitmapOrWithRetractAggFunction.merge has cognitive complexity 24 (threshold 15). Drivers by points: if/else 16, loops 3, ternaries 3, boolean chains 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/aggregate/AbstractBitmapOrWithRetractAggFunction.java"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d85c9501fe4b17c6d1e665261d3398f82756d1f1476b4d29c1c79511e6631d0"}},{"ruleId":"D2","level":"warning","message":{"text":"BinaryHashBucketArea.buildBloomFilterAndFree (cognitive 24): BinaryHashBucketArea.buildBloomFilterAndFree has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12, loops 12 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/hashtable/BinaryHashBucketArea.java"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"9826b32814b1bb31a7654d6db599da57812be8edd37f1a5b34db825dba21155c"}},{"ruleId":"D2","level":"warning","message":{"text":"LongHybridHashTable.tryDenseMode (cognitive 24): LongHybridHashTable.tryDenseMode has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14, loops 8, boolean chains 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/hashtable/LongHybridHashTable.java"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"87969191b249ac54cdd1a50aadfa2ccb6e6b46a8c830aef07572b3e58ef65a6b"}},{"ruleId":"D2","level":"warning","message":{"text":"CommonPythonUtil.getBuiltInPythonAggregateFunction (cognitive 24): CommonPythonUtil.getBuiltInPythonAggregateFunction has cognitive complexity 24 (threshold 15). Drivers by points: if/else 24. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/utils/CommonPythonUtil.java"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"f658a00e22e8edf7b74becc06dcf08c3ae4fced83a67f3947536d51a969cea1a"}},{"ruleId":"D2","level":"warning","message":{"text":"FlinkBushyJoinReorderRule.foundNextLevel (cognitive 24): FlinkBushyJoinReorderRule.foundNextLevel has cognitive complexity 24 (threshold 15). Drivers by points: if/else 17, loops 6, boolean chains 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/rules/logical/FlinkBushyJoinReorderRule.java"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"564d405a589aa2ff061eb77f2f66866c7fea27ae6a2ad488d91911141d245e78"}},{"ruleId":"D2","level":"warning","message":{"text":"MaterializedTableUtils.validateAndExtractColumnChanges (cognitive 24): MaterializedTableUtils.validateAndExtractColumnChanges has cognitive complexity 24 (threshold 15). Drivers by points: if/else 15, boolean chains 3, loops 3, ternaries 3 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/utils/MaterializedTableUtils.java"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"553c5ded56f0d5708591bb3047b1668a4a559f58cbbb1e638a8c7d235e6e5bb3"}},{"ruleId":"D2","level":"warning","message":{"text":"BlobServerConnection.put (cognitive 24): BlobServerConnection.put has cognitive complexity 24 (threshold 15). Drivers by points: if/else 18, error handling 4, boolean chains 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/blob/BlobServerConnection.java"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7e59d9418f5c61296df0c9deb280ae3fafaf562d9d70d02551983bc99ebdbad"}},{"ruleId":"D2","level":"warning","message":{"text":"ReaderThread.run (cognitive 24): ReaderThread.run has cognitive complexity 24 (threshold 15). Drivers by points: error handling 9, ternaries 6, if/else 5, loops 3, boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/io/disk/iomanager/IOManagerAsync.java"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"f57969b060a183db0ea247bd553251e859da859662a13673a67e272ea2bbd5c4"}},{"ruleId":"D2","level":"warning","message":{"text":"WriterThread.run (cognitive 24): WriterThread.run has cognitive complexity 24 (threshold 15). Drivers by points: error handling 9, ternaries 6, if/else 5, loops 3, boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/io/disk/iomanager/IOManagerAsync.java"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab130328dd0f795190a927eb30266f515e93a78664718ca1a7d09062ad9717d5"}},{"ruleId":"D2","level":"warning","message":{"text":"SingleInputGate.updateInputChannel (cognitive 24): SingleInputGate.updateInputChannel has cognitive complexity 24 (threshold 15). Drivers by points: if/else 16, loops 8 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/consumer/SingleInputGate.java"},"region":{"startLine":656}}}],"partialFingerprints":{"codehealthFindingId/v1":"311fa002a080930dde70358147c9425a6698c1870b71806dcdb6619dcbea922b"}},{"ruleId":"D2","level":"warning","message":{"text":"ActiveResourceManager.checkResourceDeclarations (cognitive 24): ActiveResourceManager.checkResourceDeclarations has cognitive complexity 24 (threshold 15). Drivers by points: if/else 18, loops 6 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/resourcemanager/active/ActiveResourceManager.java"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"94cfd256ffb33f196a75624e9d5f15f4d648284cde7d430ac32c240370453ab0"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskExecutor.handleAcceptedSlotOffers (cognitive 24): TaskExecutor.handleAcceptedSlotOffers has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11, loops 9, error handling 4 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/taskexecutor/TaskExecutor.java"},"region":{"startLine":1776}}}],"partialFingerprints":{"codehealthFindingId/v1":"54306341f1bb4f55ff03809aa8992da014b24fb239c0318c2247939de7d1da18"}},{"ruleId":"D2","level":"warning","message":{"text":"RowCsvInputFormat.createRuntimeConverter (cognitive 24): RowCsvInputFormat.createRuntimeConverter has cognitive complexity 24 (threshold 15). Drivers by points: if/else 23, boolean chains 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-formats/flink-csv/src/main/java/org/apache/flink/formats/csv/RowCsvInputFormat.java"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"546b0468c8cb42dc97164ccbf6bfebbc688797d3f4874fdc2e529a7be5a9ac38"}},{"ruleId":"D2","level":"warning","message":{"text":"CsvRowDeserializationSchema.createRuntimeConverter (cognitive 24): CsvRowDeserializationSchema.createRuntimeConverter has cognitive complexity 24 (threshold 15). Drivers by points: if/else 23, boolean chains 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/formats/csv/CsvRowDeserializationSchema.java"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"df2aaec4d012882094faf7e7b01f5dcbdd3c688d9e3648663d5b69b329729695"}},{"ruleId":"D2","level":"warning","message":{"text":"CsvRowSerializationSchema.createRuntimeConverter (cognitive 24): CsvRowSerializationSchema.createRuntimeConverter has cognitive complexity 24 (threshold 15). Drivers by points: if/else 23, boolean chains 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/formats/csv/CsvRowSerializationSchema.java"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"d183b5abeb7c0de4e24753ab5800eeb3e328840f16f211c7a74c53592fb87231"}},{"ruleId":"D2","level":"warning","message":{"text":"FlinkYarnSessionCli.run (cognitive 24): FlinkYarnSessionCli.run has cognitive complexity 24 (threshold 15). Drivers by points: error handling 12, if/else 12 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-yarn/src/main/java/org/apache/flink/yarn/cli/FlinkYarnSessionCli.java"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"07c5f7569e827d5ddc4bea921ba7208e48923c980012d1a6e52628013832971f"}},{"ruleId":"D2","level":"warning","message":{"text":"SinkTestSuiteBase.checkGetEnoughRecordsWithSemantic (cognitive 23): SinkTestSuiteBase.checkGetEnoughRecordsWithSemantic has cognitive complexity 23 (threshold 15). Drivers by points: if/else 16, loops 7 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-test-utils-parent/flink-connector-test-utils/src/main/java/org/apache/flink/connector/testframe/testsuites/SinkTestSuiteBase.java"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"65e53b33a33603d107ba48c507dfe9400b1847b4006ef115330603284f037b20"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamOperatorStateHandler.snapshotState (cognitive 23): StreamOperatorStateHandler.snapshotState has cognitive complexity 23 (threshold 15). Drivers by points: if/else 15, error handling 5, boolean chains 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/StreamOperatorStateHandler.java"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"19345f3e86008a4f00a34c9590de1228d61e587c05d8fc3c79de70760d5960d8"}},{"ruleId":"D2","level":"warning","message":{"text":"SinkExpander.adjustTransformations (cognitive 23): SinkExpander.adjustTransformations has cognitive complexity 23 (threshold 15). Drivers by points: if/else 17, boolean chains 5, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/runtime/translators/SinkTransformationTranslator.java"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"b884fb32f55b611eee4f2b2be59466954b0e67dbb763743db725de73eadca87e"}},{"ruleId":"D2","level":"warning","message":{"text":"KeyMap.traverseMaps (cognitive 23): KeyMap.traverseMaps has cognitive complexity 23 (threshold 15). Drivers by points: loops 12, if/else 10, boolean chains 1 (nesting depth added 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/KeyMap.java"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fb19dd83265a3ffa5f2c2756f62eac6262dec72b8a2792c2cbf7720b6a3d1a1"}},{"ruleId":"D2","level":"warning","message":{"text":"PojoSerializer.copy (cognitive 23): PojoSerializer.copy has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12, error handling 5, loops 5, boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/java/typeutils/runtime/PojoSerializer.java"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"36d12e32a80a8a1dd7960e1005aec5111d15e7d4a9a8fd4d2d3c733903542b3f"}},{"ruleId":"D2","level":"warning","message":{"text":"PojoSerializer.deserialize (cognitive 23): PojoSerializer.deserialize has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11, ternaries 6, loops 4, error handling 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/java/typeutils/runtime/PojoSerializer.java"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5822bcde0363284a9ae99f3cbc66ac89ef47dbebbf8307f61d6b39a9938cb2d"}},{"ruleId":"D2","level":"warning","message":{"text":"RowTypeInfo.getFlatFields (cognitive 23): RowTypeInfo.getFlatFields has cognitive complexity 23 (threshold 15). Drivers by points: if/else 18, loops 4, boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/java/typeutils/RowTypeInfo.java"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eacb23d3308d52fa78da9221150b3541d396483a9d0666469d3869ce748b831"}},{"ruleId":"D2","level":"warning","message":{"text":"Configuration.equals (cognitive 23): Configuration.equals has cognitive complexity 23 (threshold 15). Drivers by points: if/else 20, loops 3 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/configuration/Configuration.java"},"region":{"startLine":649}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bd3929248bba2eefd89648d7237c1ae3cf01d0e90a43eca775277a6025eb557"}},{"ruleId":"D2","level":"warning","message":{"text":"MiniBatchGlobalGroupAggFunction.finishBundle (cognitive 23): MiniBatchGlobalGroupAggFunction.finishBundle has cognitive complexity 23 (threshold 15). Drivers by points: if/else 21, boolean chains 1, loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/aggregate/MiniBatchGlobalGroupAggFunction.java"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"dce1ab8290cfcd59101c991c427327e9d945d720dab4e912a4e658f129b61bea"}},{"ruleId":"D2","level":"warning","message":{"text":"RetractableTopNFunction.emitRecordsWithoutRowNumber (cognitive 23): RetractableTopNFunction.emitRecordsWithoutRowNumber has cognitive complexity 23 (threshold 15). Drivers by points: if/else 20, boolean chains 2, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/rank/RetractableTopNFunction.java"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"b19a90cc08703023c72e6d3a72cf69fef1e3b70636fc9e0eb27a8ea0bbefb1b6"}},{"ruleId":"D2","level":"warning","message":{"text":"FirstValueWithRetractAggFunction.retract (cognitive 23): FirstValueWithRetractAggFunction.retract has cognitive complexity 23 (threshold 15). Drivers by points: if/else 19, loops 3, boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/aggregate/FirstValueWithRetractAggFunction.java"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"a92557fa5c0b8f00f5e5b8659cc3b722ae0f8d8bef08d64a41d47418122574a6"}},{"ruleId":"D2","level":"warning","message":{"text":"LastValueWithRetractAggFunction.retract (cognitive 23): LastValueWithRetractAggFunction.retract has cognitive complexity 23 (threshold 15). Drivers by points: if/else 19, loops 3, boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/aggregate/LastValueWithRetractAggFunction.java"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3e49f22328ec32764d37e2177d7caf7dc201a90cd068ae627d3de86b7c4c7b0"}},{"ruleId":"D2","level":"warning","message":{"text":"InetAtonFunction.ipToLong (cognitive 23): InetAtonFunction.ipToLong has cognitive complexity 23 (threshold 15). Drivers by points: if/else 16, loops 4, boolean chains 2, match/switch 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/scalar/InetAtonFunction.java"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f537f2dd265398468de5f582a689e7796c60d1ab7a0b6949ee22d55007965a1"}},{"ruleId":"D2","level":"warning","message":{"text":"FlinkSemiAntiJoinJoinTransposeRule.onMatch (cognitive 23): FlinkSemiAntiJoinJoinTransposeRule.onMatch has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14, boolean chains 6, loops 3 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/rules/logical/FlinkSemiAntiJoinJoinTransposeRule.java"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7e0885ea2b117ccb2d3fbd9481e05e7640c5c9d6cc01b0e47021895df79ec84"}},{"ruleId":"D2","level":"warning","message":{"text":"BinaryStringDataUtil.toInt (cognitive 23): BinaryStringDataUtil.toInt has cognitive complexity 23 (threshold 15). Drivers by points: if/else 18, boolean chains 3, loops 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/data/binary/BinaryStringDataUtil.java"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7183907fd01ca2e2ac9be738cb5a1c97e1e76c8b03fb196d4ea2008ee82a569"}},{"ruleId":"D2","level":"warning","message":{"text":"BinaryStringDataUtil.toLong (cognitive 23): BinaryStringDataUtil.toLong has cognitive complexity 23 (threshold 15). Drivers by points: if/else 18, boolean chains 3, loops 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/data/binary/BinaryStringDataUtil.java"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a866fe75145fbf2b0c7ce90f5bc1da018c5c54f69c972ef476732fbd48636d0"}},{"ruleId":"D2","level":"warning","message":{"text":"AbstractHistoryServerHandler.loadResource (cognitive 23): AbstractHistoryServerHandler.loadResource has cognitive complexity 23 (threshold 15). Drivers by points: if/else 17, ternaries 5, boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime-web/src/main/java/org/apache/flink/runtime/webmonitor/history/AbstractHistoryServerHandler.java"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb7cbb6a2d8751bf046cecebb27eb9289fe101e7c9f924a50ce6a0161c779f66"}},{"ruleId":"D2","level":"warning","message":{"text":"PartitionRequestQueue.writeAndFlushNextMessageIfPossible (cognitive 23): PartitionRequestQueue.writeAndFlushNextMessageIfPossible has cognitive complexity 23 (threshold 15). Drivers by points: if/else 17, ternaries 3, boolean chains 1, error handling 1, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/io/network/netty/PartitionRequestQueue.java"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"67f6f6edf6c8231563819e831342561d0b8bb4428f4b8605ba8116bc63151d7d"}},{"ruleId":"D2","level":"warning","message":{"text":"SingleInputGate.waitAndGetNextData (cognitive 23): SingleInputGate.waitAndGetNextData has cognitive complexity 23 (threshold 15). Drivers by points: if/else 19, match/switch 3, loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/consumer/SingleInputGate.java"},"region":{"startLine":885}}}],"partialFingerprints":{"codehealthFindingId/v1":"c19cce206796b570f8bcdc36270d66716d99609587b1c6acc87f3a5e79164be3"}},{"ruleId":"D2","level":"warning","message":{"text":"TieredStorageSortBuffer.getNextBuffer (cognitive 23): TieredStorageSortBuffer.getNextBuffer has cognitive complexity 23 (threshold 15). Drivers by points: if/else 17, boolean chains 4, loops 1, ternaries 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/hybrid/tiered/storage/TieredStorageSortBuffer.java"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8596a39410b40845c8686169368f729a96938d9ac7c676e3dcf4835d7b853fa"}},{"ruleId":"D2","level":"warning","message":{"text":"AbstractIterativeTask.verifyEndOfSuperstepState (cognitive 23): AbstractIterativeTask.verifyEndOfSuperstepState has cognitive complexity 23 (threshold 15). Drivers by points: if/else 16, loops 6, boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/iterative/task/AbstractIterativeTask.java"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"de7c6d8fdaf02a6ee84a75ea4b5ad49693043cb12cc1a4f48913b4f4485bc153"}},{"ruleId":"D2","level":"warning","message":{"text":"CompactingHashTable.insertBucketEntryFromStart (cognitive 23): CompactingHashTable.insertBucketEntryFromStart has cognitive complexity 23 (threshold 15). Drivers by points: if/else 20, ternaries 2, boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/operators/hash/CompactingHashTable.java"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"decef81f81c0ed6803f5f8b44e86b548bcabee423ce32877f4bcb2f0c9502170"}},{"ruleId":"D2","level":"warning","message":{"text":"ReusingBuildFirstHashJoinIterator.callWithNextKey (cognitive 23): ReusingBuildFirstHashJoinIterator.callWithNextKey has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11, loops 7, boolean chains 5 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/operators/hash/ReusingBuildFirstHashJoinIterator.java"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"6763c64a050dab95407aaf5ba67386f0c8a79e5ff936a0e3398ec806a191c38d"}},{"ruleId":"D2","level":"warning","message":{"text":"ReusingBuildSecondHashJoinIterator.callWithNextKey (cognitive 23): ReusingBuildSecondHashJoinIterator.callWithNextKey has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11, loops 7, boolean chains 5 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/operators/hash/ReusingBuildSecondHashJoinIterator.java"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"edc661b8177855affc35bc42db82d1f26ce3cedde94ffd7e3ba089da6aed29c6"}},{"ruleId":"D2","level":"warning","message":{"text":"JobLeaderIdListener.notifyLeaderAddress (cognitive 23): JobLeaderIdListener.notifyLeaderAddress has cognitive complexity 23 (threshold 15). Drivers by points: if/else 19, error handling 3, boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/resourcemanager/DefaultJobLeaderIdService.java"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"96f91665fb729cf61510db1f16e2994c56cbbf59efdb2da827368bd020a69216"}},{"ruleId":"D2","level":"warning","message":{"text":"PbSchemaValidationUtils.validateTypeMatch (cognitive 23): PbSchemaValidationUtils.validateTypeMatch has cognitive complexity 23 (threshold 15). Drivers by points: if/else 23 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-formats/flink-protobuf/src/main/java/org/apache/flink/formats/protobuf/util/PbSchemaValidationUtils.java"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce8a1199e19af507d37db8fd39816a9b8b4cc1d03c5f5b4782ea88d726e1d68e"}},{"ruleId":"D2","level":"warning","message":{"text":"NoticeFileChecker.checkNoticeFile (cognitive 23): NoticeFileChecker.checkNoticeFile has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13, loops 6, ternaries 4 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/ci/flink-ci-tools/src/main/java/org/apache/flink/tools/ci/licensecheck/NoticeFileChecker.java"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"26d33356b020bee20afa0a39219da779134f9a83aa5f42148d667d36e101a7df"}},{"ruleId":"D2","level":"warning","message":{"text":"RexBuilder.canRemoveCastFromLiteral (cognitive 23): RexBuilder.canRemoveCastFromLiteral has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8, boolean chains 7, match/switch 6, error handling 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/rex/RexBuilder.java"},"region":{"startLine":808}}}],"partialFingerprints":{"codehealthFindingId/v1":"50c6d8bd99b5f9f92a2b2f6a12a8bc0764fb183f36a845824e786b0fcdcc634b"}},{"ruleId":"D2","level":"warning","message":{"text":"DelimitedInputFormat.getStatistics (cognitive 22): DelimitedInputFormat.getStatistics has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13, boolean chains 3, loops 3, error handling 2, ternaries 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/common/io/DelimitedInputFormat.java"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dcca3e174019d783dcf4a38a03cee2eea7c1b0b49ddfc435eaf4b09f6c68ad9"}},{"ruleId":"D2","level":"warning","message":{"text":"OuterJoinListIterator.nextGroups (cognitive 22): OuterJoinListIterator.nextGroups has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13, loops 7, boolean chains 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/common/operators/base/OuterJoinOperatorBase.java"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a86f022e3e044eb4abf0fc1128526f39460e34be31c5666e8fa9336991e4ba6"}},{"ruleId":"D2","level":"warning","message":{"text":"ClassLoaderUtil.formatURL (cognitive 22): ClassLoaderUtil.formatURL has cognitive complexity 22 (threshold 15). Drivers by points: if/else 17, error handling 5 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/util/ClassLoaderUtil.java"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"30be4b76ccfff06d31ead8d27052710f5678c6f21557aa44c40cb140c3183d9d"}},{"ruleId":"D2","level":"warning","message":{"text":"NetUtils.getIPv6UrlRepresentation (cognitive 22): NetUtils.getIPv6UrlRepresentation has cognitive complexity 22 (threshold 15). Drivers by points: if/else 17, loops 3, boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/util/NetUtils.java"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"c320dee0e9c8579b7a2e01013ade80d215c70081aae7befec0bae8f7e86b3c0b"}},{"ruleId":"D2","level":"warning","message":{"text":"BatchArrowPythonOverWindowAggregateFunctionOperator.createUserDefinedFunctionsProto (cognitive 22): BatchArrowPythonOverWindowAggregateFunctionOperator.createUserDefinedFunctionsProto has cognitive complexity 22 (threshold 15). Drivers by points: if/else 20, loops 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/table/runtime/operators/python/aggregate/arrow/batch/BatchArrowPythonOverWindowAggregateFunctionOperator.java"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"719174684a0a9067e15356c4465614ddf1d1ff1216ecc02064d472f2604288fc"}},{"ruleId":"D2","level":"warning","message":{"text":"GroupAggHelper.processElement (cognitive 22): GroupAggHelper.processElement has cognitive complexity 22 (threshold 15). Drivers by points: if/else 21, boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/aggregate/utils/GroupAggHelper.java"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"39b1940338be7aa2b01fe63213680ce82b6b79d0f1fd7002e0dbdec832e3bc1c"}},{"ruleId":"D2","level":"warning","message":{"text":"CascadedLookupHandler.finish (cognitive 22): CascadedLookupHandler.finish has cognitive complexity 22 (threshold 15). Drivers by points: if/else 16, loops 6 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/deltajoin/CascadedLookupHandler.java"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c6cf26a5256e1d4ecea53831487a338db00331bb55b79aaaf323172fbef887e"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamingSemiAntiJoinOperator.processElement2 (cognitive 22): StreamingSemiAntiJoinOperator.processElement2 has cognitive complexity 22 (threshold 15). Drivers by points: if/else 18, loops 4 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/stream/StreamingSemiAntiJoinOperator.java"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"44e7aa23dd42dbdbbf72d8d783b634c8db1af59fc7380d3ac6a4f5fd0db41b4b"}},{"ruleId":"D2","level":"warning","message":{"text":"LookupBucketIterator.advanceNext (cognitive 22): LookupBucketIterator.advanceNext has cognitive complexity 22 (threshold 15). Drivers by points: if/else 15, error handling 4, loops 3 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/hashtable/LookupBucketIterator.java"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"239a8c640f98f0aca73b363ec497e1f50cd3dfe3853b32d5fe0a0aa29775d755"}},{"ruleId":"D2","level":"warning","message":{"text":"CommonExecLegacySink.translateToPlanInternal (cognitive 22): CommonExecLegacySink.translateToPlanInternal has cognitive complexity 22 (threshold 15). Drivers by points: if/else 22 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/common/CommonExecLegacySink.java"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"11379ed9e3732dce47bb788eff0e964a541290a6bf26c44741b76706d40b5484"}},{"ruleId":"D2","level":"warning","message":{"text":"QueryHintsResolver.validateAndGetNewHints (cognitive 22): QueryHintsResolver.validateAndGetNewHints has cognitive complexity 22 (threshold 15). Drivers by points: if/else 20, boolean chains 1, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/optimize/QueryHintsResolver.java"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"d68e5b4aad5adde13f1f2267942fab9476d93ae3d7d6e83025f9d89a9fe9b152"}},{"ruleId":"D2","level":"warning","message":{"text":"ScanReuser.reuseDuplicatedScan (cognitive 22): ScanReuser.reuseDuplicatedScan has cognitive complexity 22 (threshold 15). Drivers by points: loops 11, if/else 9, boolean chains 2 (nesting depth added 11). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/reuse/ScanReuser.java"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b0b1023969d091f874ba30fbf74d2663def95202407d553ccf520893787a70e"}},{"ruleId":"D2","level":"warning","message":{"text":"JoinToMultiJoinForReorderRule.buildInputNullGenFieldList (cognitive 22): JoinToMultiJoinForReorderRule.buildInputNullGenFieldList has cognitive complexity 22 (threshold 15). Drivers by points: loops 17, if/else 5 (nesting depth added 13). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/rules/logical/JoinToMultiJoinForReorderRule.java"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"87f439dd76e85ac72a8b8f96132dce933b636f6c4852c82d416a52b19a44746c"}},{"ruleId":"D2","level":"warning","message":{"text":"DuplicateChangesInferRule.onMatch (cognitive 22): DuplicateChangesInferRule.onMatch has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14, ternaries 5, boolean chains 2, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/rules/physical/stream/DuplicateChangesInferRule.java"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"fabfcb20df618ff417e0672f5dd6d65466f307ada37c752c267100ff6362358f"}},{"ruleId":"D2","level":"warning","message":{"text":"ZooKeeperUtils.writeLeaderInformationToZooKeeper (cognitive 22): ZooKeeperUtils.writeLeaderInformationToZooKeeper has cognitive complexity 22 (threshold 15). Drivers by points: error handling 11, if/else 9, boolean chains 1, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/util/ZooKeeperUtils.java"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fea2730ce9555769923744245bfd295a117684fca2a1b766fa80b3b31c133d6"}},{"ruleId":"D2","level":"warning","message":{"text":"JarListHandler.handleRequest (cognitive 22): JarListHandler.handleRequest has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11, error handling 7, loops 3, boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime-web/src/main/java/org/apache/flink/runtime/webmonitor/handlers/JarListHandler.java"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"f159aa6e9dd521c7c45334d2a278f5c26f725637ae57b934d32bfe80832f3c10"}},{"ruleId":"D2","level":"warning","message":{"text":"GateFilterHandler.filterAndRewrite (cognitive 22): GateFilterHandler.filterAndRewrite has cognitive complexity 22 (threshold 15). Drivers by points: if/else 16, loops 3, boolean chains 2, error handling 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/channel/ChannelStateFilteringHandler.java"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"c25fa3c08145e27e1d19440e7565f76552f54b9be65e0ae03a39e3a5448bd48c"}},{"ruleId":"D2","level":"warning","message":{"text":"Execution.cancel (cognitive 22): Execution.cancel has cognitive complexity 22 (threshold 15). Drivers by points: if/else 18, boolean chains 3, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/executiongraph/Execution.java"},"region":{"startLine":853}}}],"partialFingerprints":{"codehealthFindingId/v1":"763ccbf461ca16627688e01d02bf08751b884d7460a7eff19fa7f95b6a783916"}},{"ruleId":"D2","level":"warning","message":{"text":"HashBucketIterator.next (cognitive 22): HashBucketIterator.next has cognitive complexity 22 (threshold 15). Drivers by points: if/else 15, error handling 4, loops 3 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/operators/hash/MutableHashTable.java"},"region":{"startLine":1762}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8bc95fc11311a03975f4d5589dcf3d437e557984887b3cce526fae8ca3ac843"}},{"ruleId":"D2","level":"warning","message":{"text":"HashBucketIterator.next (cognitive 22): HashBucketIterator.next has cognitive complexity 22 (threshold 15). Drivers by points: if/else 15, error handling 4, loops 3 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/operators/hash/MutableHashTable.java"},"region":{"startLine":1701}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce6ec67f886a697edaefdc5296bc8213b106eeb758eacadb78cf44af5ece39d9"}},{"ruleId":"D2","level":"warning","message":{"text":"BatchTask.run (cognitive 22): BatchTask.run has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11, error handling 10, boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/operators/BatchTask.java"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d8e54169d6f6a8bf641912a6a0a442aceb2696800ea52ea6939fae3c2f23b57"}},{"ruleId":"D2","level":"warning","message":{"text":"CheckpointStorageLoader.load (cognitive 22): CheckpointStorageLoader.load has cognitive complexity 22 (threshold 15). Drivers by points: if/else 21, ternaries 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/state/CheckpointStorageLoader.java"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2243741474e97ae7c21063199bf527461e4fbd4e0ec43bc1beaefd73b4ae332"}},{"ruleId":"D2","level":"warning","message":{"text":"BucketConfigProvider.parseBucketConfigs (cognitive 22): BucketConfigProvider.parseBucketConfigs has cognitive complexity 22 (threshold 15). Drivers by points: if/else 18, loops 4 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-filesystems/flink-s3-fs-native/src/main/java/org/apache/flink/fs/s3native/BucketConfigProvider.java"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"45a4e365fce06d1da67a04da6780dcbc90652a2700b150c8d35c35cc91a3f75a"}},{"ruleId":"D2","level":"warning","message":{"text":"SnapshotFileMergingCompatibilityITCase.verifyCheckpointExistOrWaitDeleted (cognitive 22): SnapshotFileMergingCompatibilityITCase.verifyCheckpointExistOrWaitDeleted has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11, boolean chains 4, error handling 4, loops 3 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-tests/src/test/java/org/apache/flink/test/checkpointing/SnapshotFileMergingCompatibilityITCase.java"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd00b79c6a5125a9d1ba278f3df3064d9b6faa5875309d251b8e8be2b002ce85"}},{"ruleId":"D2","level":"warning","message":{"text":"AbstractColumnReader.readToVector (cognitive 22): AbstractColumnReader.readToVector has cognitive complexity 22 (threshold 15). Drivers by points: if/else 18, boolean chains 3, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-formats/flink-parquet/src/main/java/org/apache/flink/formats/parquet/vector/reader/AbstractColumnReader.java"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff0149e02629951e506a8b4f919bd224859e7ae698514131123c05ad4a87fd1e"}},{"ruleId":"D2","level":"warning","message":{"text":"FixedLenBytesColumnReader.readBatchFromDictionaryIds (cognitive 22): FixedLenBytesColumnReader.readBatchFromDictionaryIds has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14, loops 8 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-formats/flink-parquet/src/main/java/org/apache/flink/formats/parquet/vector/reader/FixedLenBytesColumnReader.java"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4a8d2aae16522c5478472aae50fbd790855eaed3b67cfe5d38efd30ff3884a5"}},{"ruleId":"D2","level":"warning","message":{"text":"NFA.doProcess (cognitive 22): NFA.doProcess has cognitive complexity 22 (threshold 15). Drivers by points: if/else 15, loops 6, boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-libraries/flink-cep/src/main/java/org/apache/flink/cep/nfa/NFA.java"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"746f65a0d47cc98b8f8110c88c30c2882dda25646096bff5e9041ebf1d4479fa"}},{"ruleId":"D2","level":"warning","message":{"text":"Utils.createTaskExecutorContext (cognitive 22): Utils.createTaskExecutorContext has cognitive complexity 22 (threshold 15). Drivers by points: if/else 16, boolean chains 2, error handling 2, loops 2 (nesting depth added 4). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-yarn/src/main/java/org/apache/flink/yarn/Utils.java"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"6524ccd5703b11b8fc3b211fbbe0f8f0805659c3cbf7399e9f5657db86744d7f"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultJobBundleFactory.close (cognitive 22): DefaultJobBundleFactory.close has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13, error handling 5, loops 4 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/beam/runners/fnexecution/control/DefaultJobBundleFactory.java"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"46be1ff2e4ccf9f347bf73e67bae92278a1cf88abe39b8bb0bc161d7b39cf07b"}},{"ruleId":"D2","level":"warning","message":{"text":"AccessControlListHandler.doEndElement (cognitive 22): AccessControlListHandler.doEndElement has cognitive complexity 22 (threshold 15). Drivers by points: if/else 22 (nesting depth added 10). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-filesystems/flink-s3-fs-base/src/main/java/com/amazonaws/services/s3/model/transform/XmlResponsesSaxParser.java"},"region":{"startLine":977}}}],"partialFingerprints":{"codehealthFindingId/v1":"b07967f435bb7568c84ec067e20e0f74be0a114fb1aa22360d5396a8ccf6d898"}},{"ruleId":"D2","level":"warning","message":{"text":"SocketTextStreamFunction.run (cognitive 21): SocketTextStreamFunction.run has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11, loops 6, boolean chains 4 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/functions/source/legacy/SocketTextStreamFunction.java"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a487e1cf8ae7a6728f3bc4c928a011f30660d4164cfcde427195272b17bd10f"}},{"ruleId":"D2","level":"warning","message":{"text":"ClassLeakCleaner.clearCache (cognitive 21): ClassLeakCleaner.clearCache has cognitive complexity 21 (threshold 15). Drivers by points: if/else 14, loops 7 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/streaming/api/utils/ClassLeakCleaner.java"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e3e12eff3f800aa353e44df5e6ad2686718f7453e4450d055690fe3740708f4"}},{"ruleId":"D2","level":"warning","message":{"text":"PojoSerializer.copy (cognitive 21): PojoSerializer.copy has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11, error handling 5, loops 5 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/java/typeutils/runtime/PojoSerializer.java"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"39e0f8caa07ad76a4edc9c212bd850af876db689381776ae52110f300b49f09d"}},{"ruleId":"D2","level":"warning","message":{"text":"PojoSerializer.serialize (cognitive 21): PojoSerializer.serialize has cognitive complexity 21 (threshold 15). Drivers by points: if/else 14, ternaries 3, error handling 2, loops 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/java/typeutils/runtime/PojoSerializer.java"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"11aa18a9a1cccd848342b658fd2eb67784ba5f2fd94e691704aa52f06fe66a42"}},{"ruleId":"D2","level":"warning","message":{"text":"TypeExtractionUtils.checkAndExtractLambda (cognitive 21): TypeExtractionUtils.checkAndExtractLambda has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11, loops 5, error handling 3, boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/java/typeutils/TypeExtractionUtils.java"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"af1f772369f278eccf6d4dadbf1a956c681230213eb3ece9a0a3ce1d936d0826"}},{"ruleId":"D2","level":"warning","message":{"text":"TypeExtractor.privateGetForObject (cognitive 21): TypeExtractor.privateGetForObject has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13, loops 8 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/java/typeutils/TypeExtractor.java"},"region":{"startLine":2354}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec3f13bcc4efb75ac31b70d8b55e19bb74c8d6cc4f07a996284f9898982168eb"}},{"ruleId":"D2","level":"warning","message":{"text":"CoGroupSortListIterator.next (cognitive 21): CoGroupSortListIterator.next has cognitive complexity 21 (threshold 15). Drivers by points: if/else 18, boolean chains 3 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/common/operators/base/CoGroupOperatorBase.java"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae0dd99458a8de5a956397d1ca46280ad338e2aaf594777155ba5a0f17fa8ea4"}},{"ruleId":"D2","level":"warning","message":{"text":"OuterJoinListIterator.nextGroups (cognitive 21): OuterJoinListIterator.nextGroups has cognitive complexity 21 (threshold 15). Drivers by points: if/else 18, boolean chains 3 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/common/operators/base/OuterJoinOperatorBase.java"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5354f02508f87749958449836b18b1e7c39c9779eee8c3d2cbb29428ac1d446"}},{"ruleId":"D2","level":"warning","message":{"text":"UserCodeObjectWrapper.\u003Cinit\u003E (cognitive 21): UserCodeObjectWrapper.\u003Cinit\u003E has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11, error handling 4, boolean chains 3, loops 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/common/operators/util/UserCodeObjectWrapper.java"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd6532d191f62c04900067ae820e7e20fa12408c4cbd7406d05bcb5be796acd6"}},{"ruleId":"D2","level":"warning","message":{"text":"CollectionExecutor.executeDeltaIteration (cognitive 21): CollectionExecutor.executeDeltaIteration has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11, loops 9, boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/common/operators/CollectionExecutor.java"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"2268a2ed42cfb5e0052c796d51a11b2b77a9fef3395d3081a6e5f324858930c6"}},{"ruleId":"D2","level":"warning","message":{"text":"ColumnInfo.fromLogicalType (cognitive 21): ColumnInfo.fromLogicalType has cognitive complexity 21 (threshold 15). Drivers by points: if/else 21. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-sql-jdbc-driver/src/main/java/org/apache/flink/table/jdbc/ColumnInfo.java"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b2d43c6329d044ef46de5ce5b0cac61266010688ef8154e2fc50103fc49a80e"}},{"ruleId":"D2","level":"warning","message":{"text":"SortMergeInnerJoinIterator.nextInnerJoin (cognitive 21): SortMergeInnerJoinIterator.nextInnerJoin has cognitive complexity 21 (threshold 15). Drivers by points: if/else 18, loops 2, boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/SortMergeInnerJoinIterator.java"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f4fd8c632879652bd5e17e1316ae5ddb378adcb9800fba7b17d9bcc072130f3"}},{"ruleId":"D2","level":"warning","message":{"text":"ProcTimeRowsBoundedPrecedingFunction.processElement (cognitive 21): ProcTimeRowsBoundedPrecedingFunction.processElement has cognitive complexity 21 (threshold 15). Drivers by points: if/else 17, loops 3, boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/over/ProcTimeRowsBoundedPrecedingFunction.java"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"db7ed464b801a778f6492952e2ca262da7e1f906c942c5c6ce4536cacb4621ff"}},{"ruleId":"D2","level":"warning","message":{"text":"MergingThread.go (cognitive 21): MergingThread.go has cognitive complexity 21 (threshold 15). Drivers by points: if/else 14, loops 3, boolean chains 2, error handling 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/sort/BinaryExternalSorter.java"},"region":{"startLine":1095}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf31764593b585ab9d01046cb91500875e9fb62aab81f0947a3372555cd05149"}},{"ruleId":"D2","level":"warning","message":{"text":"CliClient.getAndExecuteStatements (cognitive 21): CliClient.getAndExecuteStatements has cognitive complexity 21 (threshold 15). Drivers by points: error handling 8, if/else 7, ternaries 4, boolean chains 1, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-sql-client/src/main/java/org/apache/flink/table/client/cli/CliClient.java"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2d981cfcfc622bf6138d8a98a0f47928638b2e40038e3dfc42860742338b6ba"}},{"ruleId":"D2","level":"warning","message":{"text":"DescriptorProperties.getOptionalTableSchema (cognitive 21): DescriptorProperties.getOptionalTableSchema has cognitive complexity 21 (threshold 15). Drivers by points: if/else 16, loops 3, boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/descriptors/DescriptorProperties.java"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbb074cf7a0417e79738388cfccf9e9638e9b861d554903f57d1aa5e975f9372"}},{"ruleId":"D2","level":"warning","message":{"text":"SqlLikeUtils.similarEscapeRuleChecking (cognitive 21): SqlLikeUtils.similarEscapeRuleChecking has cognitive complexity 21 (threshold 15). Drivers by points: if/else 18, loops 2, boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/functions/SqlLikeUtils.java"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a1d274c852a6c217636871632524d5986bf72411aa85299833ad77ac1e5efdb"}},{"ruleId":"D2","level":"warning","message":{"text":"LegacyUserDefinedFunctionInference.parameterClassEquals (cognitive 21): LegacyUserDefinedFunctionInference.parameterClassEquals has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 21. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/functions/LegacyUserDefinedFunctionInference.java"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"67673f2afcd87f939fd06fd70f869632516c0983a21f7339598b2c5cc2536a5b"}},{"ruleId":"D2","level":"warning","message":{"text":"BatchExecPythonOverAggregate.translateToPlanInternal (cognitive 21): BatchExecPythonOverAggregate.translateToPlanInternal has cognitive complexity 21 (threshold 15). Drivers by points: if/else 18, loops 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/batch/BatchExecPythonOverAggregate.java"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a36490d2e63f534ad0d8830ead77ccb408b0241e440949a5850160b351fa6ff"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamExecOverAggregate.translateToPlanInternal (cognitive 21): StreamExecOverAggregate.translateToPlanInternal has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13, boolean chains 4, ternaries 3, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/stream/StreamExecOverAggregate.java"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"a94a4ed7b561b6c65cb4fd27b99a51e55e37de69b2f99b1493bce24c09a689f6"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamPhysicalMultiJoin.formatInputUniqueKeysWithFieldNames (cognitive 21): StreamPhysicalMultiJoin.formatInputUniqueKeysWithFieldNames has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12, loops 8, boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/physical/stream/StreamPhysicalMultiJoin.java"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"0aa0811a9cb610f0300f89f78b434fa7b71cee9ef3a67001cdb9a4a2bb4eb065"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamNonDeterministicUpdatePlanVisitor.visitTableSourceScan (cognitive 21): StreamNonDeterministicUpdatePlanVisitor.visitTableSourceScan has cognitive complexity 21 (threshold 15). Drivers by points: if/else 15, loops 4, boolean chains 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/optimize/StreamNonDeterministicUpdatePlanVisitor.java"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"8baf1a477be515e717552e5b8e1a0cc7d0c728f31c6bae5e22231d691544cb1b"}},{"ruleId":"D2","level":"warning","message":{"text":"DecomposeGroupingSetsRule.onMatch (cognitive 21): DecomposeGroupingSetsRule.onMatch has cognitive complexity 21 (threshold 15). Drivers by points: if/else 16, loops 5 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/rules/logical/DecomposeGroupingSetsRule.java"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"19d36058e7b0737cbb7d4d7f4d6ccb8a8b9cf3ffa3c2f74ebb6cea64fe4c338d"}},{"ruleId":"D2","level":"warning","message":{"text":"RankProcessStrategy.analyzeRankProcessStrategies (cognitive 21): RankProcessStrategy.analyzeRankProcessStrategies has cognitive complexity 21 (threshold 15). Drivers by points: if/else 15, boolean chains 6 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/utils/RankProcessStrategy.java"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"99182332eb1cad64c409cccb3a012699f9f2e26613411d605e1472aaabc99456"}},{"ruleId":"D2","level":"warning","message":{"text":"ExtractionUtils.isInvokable (cognitive 21): ExtractionUtils.isInvokable has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9, boolean chains 7, loops 5 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/extraction/ExtractionUtils.java"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"30aef62a360fe012983b19419e11eca5e37edec642c76bfb4aa608465aa3b216"}},{"ruleId":"D2","level":"warning","message":{"text":"ThreadDumpInfo.stringifyThreadInfo (cognitive 21): ThreadDumpInfo.stringifyThreadInfo has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11, loops 5, match/switch 3, boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/rest/messages/ThreadDumpInfo.java"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"848b8aefa32a87e948420907646aa4a9f8b3a10411d4c5aba6a4a1a22618e8d6"}},{"ruleId":"D2","level":"warning","message":{"text":"BlobServer.close (cognitive 21): BlobServer.close has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11, error handling 7, loops 3 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/blob/BlobServer.java"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e20a203f316aef5738b3bbfa7cec27ebf597ec99a19003464242b6bd619c5aa"}},{"ruleId":"D2","level":"warning","message":{"text":"BroadcastVariableMaterialization.materializeVariable (cognitive 21): BroadcastVariableMaterialization.materializeVariable has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13, loops 6, boolean chains 1, error handling 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/broadcast/BroadcastVariableMaterialization.java"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdfacdc2aa80893a1ded874af564c7422037294c6c2d1a646196367b3ea10b72"}},{"ruleId":"D2","level":"warning","message":{"text":"CheckpointCoordinator.receiveAcknowledgeMessage (cognitive 21): CheckpointCoordinator.receiveAcknowledgeMessage has cognitive complexity 21 (threshold 15). Drivers by points: if/else 16, boolean chains 3, match/switch 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/CheckpointCoordinator.java"},"region":{"startLine":1205}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3be53e315f85c8f0c5c2db00523952e2d4ad670c7e9c3721127e56f16a3f0d4"}},{"ruleId":"D2","level":"warning","message":{"text":"CheckpointStatsHistory.replacePendingCheckpointById (cognitive 21): CheckpointStatsHistory.replacePendingCheckpointById has cognitive complexity 21 (threshold 15). Drivers by points: if/else 14, boolean chains 4, loops 2, ternaries 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/CheckpointStatsHistory.java"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"e95a497bb227bc0b9eb3ccdc7e025af5c437f0eca0fa8431b6074685c557b25a"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultCheckpointPlanCalculator.calculateAfterTasksFinished (cognitive 21): DefaultCheckpointPlanCalculator.calculateAfterTasksFinished has cognitive complexity 21 (threshold 15). Drivers by points: if/else 15, loops 6 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/DefaultCheckpointPlanCalculator.java"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"3433151d5937a7f3396c791db7fd061ebac1696d0d543a12f79ac4572a33a20d"}},{"ruleId":"D2","level":"warning","message":{"text":"Execution.transitionState (cognitive 21): Execution.transitionState has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13, error handling 7, boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/executiongraph/Execution.java"},"region":{"startLine":1670}}}],"partialFingerprints":{"codehealthFindingId/v1":"f53bf30e8f01dd6af9111c0e82a21b6ece552d576d4a52ca418275cd15a67784"}},{"ruleId":"D2","level":"warning","message":{"text":"Execution.updatePartitionConsumers (cognitive 21): Execution.updatePartitionConsumers has cognitive complexity 21 (threshold 15). Drivers by points: if/else 14, loops 6, boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/executiongraph/Execution.java"},"region":{"startLine":943}}}],"partialFingerprints":{"codehealthFindingId/v1":"53c0988c5487ae505b646ae0b1e84259b6ee5267238c0dfd4d8319c99521257c"}},{"ruleId":"D2","level":"warning","message":{"text":"PipelinedSubpartition.pollBuffer (cognitive 21): PipelinedSubpartition.pollBuffer has cognitive complexity 21 (threshold 15). Drivers by points: if/else 16, boolean chains 3, loops 1, ternaries 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/PipelinedSubpartition.java"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"641a49031bb2c18be81a77951826a13782e3c721d6456bd9f5b6141c40f6971e"}},{"ruleId":"D2","level":"warning","message":{"text":"ResultPartitionFactory.create (cognitive 21): ResultPartitionFactory.create has cognitive complexity 21 (threshold 15). Drivers by points: if/else 14, boolean chains 5, loops 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/ResultPartitionFactory.java"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bfca3fc958f53e4cbefe6db6df000f120e5410f3029341985c93db10288f893"}},{"ruleId":"D2","level":"warning","message":{"text":"JobResourceRequirements.validate (cognitive 21): JobResourceRequirements.validate has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12, ternaries 6, loops 2, boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/jobgraph/JobResourceRequirements.java"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cff87b8ac514abcdd428c4a2b98d1fa5adc26dadb917f55a9623ef023ba00dc"}},{"ruleId":"D2","level":"warning","message":{"text":"ConnectionUtils.findConnectingAddress (cognitive 21): ConnectionUtils.findConnectingAddress has cognitive complexity 21 (threshold 15). Drivers by points: if/else 15, error handling 3, loops 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/net/ConnectionUtils.java"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"6161d008915a9af398218b17a750a090b74e0c52575be0707782b97ddb888337"}},{"ruleId":"D2","level":"warning","message":{"text":"CompactingHashTable.compactPartition (cognitive 21): CompactingHashTable.compactPartition has cognitive complexity 21 (threshold 15). Drivers by points: loops 10, if/else 8, boolean chains 3 (nesting depth added 11). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/operators/hash/CompactingHashTable.java"},"region":{"startLine":1132}}}],"partialFingerprints":{"codehealthFindingId/v1":"221a6cfa8b57c22f71b2f005d4eed3775acc40ec48eb7719345ac01b1dfffe1b"}},{"ruleId":"D2","level":"warning","message":{"text":"NonReusingSortMergeCoGroupIterator.next (cognitive 21): NonReusingSortMergeCoGroupIterator.next has cognitive complexity 21 (threshold 15). Drivers by points: if/else 18, boolean chains 3 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/operators/sort/NonReusingSortMergeCoGroupIterator.java"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"98a90276e34e32f9a8e391f3462a7d72f5630d81d5f43cb4befc5fa86542ee19"}},{"ruleId":"D2","level":"warning","message":{"text":"ReusingSortMergeCoGroupIterator.next (cognitive 21): ReusingSortMergeCoGroupIterator.next has cognitive complexity 21 (threshold 15). Drivers by points: if/else 18, boolean chains 3 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/operators/sort/ReusingSortMergeCoGroupIterator.java"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f73c0eee7fdd082ca622bf636658464073409b7fc9111696517b4789ab8f719"}},{"ruleId":"D2","level":"warning","message":{"text":"TestJobDataFlowValidator.checkDataFlow (cognitive 21): TestJobDataFlowValidator.checkDataFlow has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13, loops 7, boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-tests/src/test/java/org/apache/flink/runtime/operators/lifecycle/validation/TestJobDataFlowValidator.java"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"707816c309e085d9f5b1e7f892a963e944200aded8b3ade93e25aa6c71bad2df"}},{"ruleId":"D2","level":"warning","message":{"text":"BatchTask.initInputLocalStrategy (cognitive 21): BatchTask.initInputLocalStrategy has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12, ternaries 4, error handling 3, match/switch 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/operators/BatchTask.java"},"region":{"startLine":994}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6f345320f009a9308009d995f7247f0b839167b2068ed282b630c677d8fa86d"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskManagerServices.checkTempDirs (cognitive 21): TaskManagerServices.checkTempDirs has cognitive complexity 21 (threshold 15). Drivers by points: if/else 19, boolean chains 1, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/taskexecutor/TaskManagerServices.java"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"d67fd48c9ae09997ae25be9b0b4ffc9126b109f91f09966906798edc790edd04"}},{"ruleId":"D2","level":"warning","message":{"text":"PythonOperatorChainingOptimizer.replaceInput (cognitive 21): PythonOperatorChainingOptimizer.replaceInput has cognitive complexity 21 (threshold 15). Drivers by points: if/else 18, boolean chains 2, error handling 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/python/chain/PythonOperatorChainingOptimizer.java"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"a74b329eff4ceb306dcfc609c73840cace50def565a109e7f2fd0e23a2d845c1"}},{"ruleId":"D2","level":"warning","message":{"text":"JsonRowDataDeserializationSchema.deserialize (cognitive 21): JsonRowDataDeserializationSchema.deserialize has cognitive complexity 21 (threshold 15). Drivers by points: if/else 14, error handling 4, loops 2, boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-formats/flink-json/src/main/java/org/apache/flink/formats/json/JsonRowDataDeserializationSchema.java"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b63e034336a20bdec4c960d5ba644b7f9e31893aee6500b61e5e7755ecd5e79"}},{"ruleId":"D2","level":"warning","message":{"text":"BooleanColumnReader.readBatch (cognitive 21): BooleanColumnReader.readBatch has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11, loops 8, match/switch 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-formats/flink-parquet/src/main/java/org/apache/flink/formats/parquet/vector/reader/BooleanColumnReader.java"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"84e60c2bc55555f7aaa2e92e8ee414c9e668ef46ae32e2f1f4b1c73f7822326f"}},{"ruleId":"D2","level":"warning","message":{"text":"ShortColumnReader.readBatch (cognitive 21): ShortColumnReader.readBatch has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11, loops 8, match/switch 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-formats/flink-parquet/src/main/java/org/apache/flink/formats/parquet/vector/reader/ShortColumnReader.java"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd732e1556e21e7e85e819d4079d6b245d04ed2cd3e56242b4d1497cb830a3ee"}},{"ruleId":"D2","level":"warning","message":{"text":"ParquetSplitReaderUtil.constructField (cognitive 21): ParquetSplitReaderUtil.constructField has cognitive complexity 21 (threshold 15). Drivers by points: if/else 15, loops 6 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-formats/flink-parquet/src/main/java/org/apache/flink/formats/parquet/vector/ParquetSplitReaderUtil.java"},"region":{"startLine":584}}}],"partialFingerprints":{"codehealthFindingId/v1":"5acdf0d592a81272918a8fb71935e9228c877be7fa1d9e667ef574e944c3eda5"}},{"ruleId":"D2","level":"warning","message":{"text":"OrcFormatStatisticsReportUtil.convertToColumnStats (cognitive 21): OrcFormatStatisticsReportUtil.convertToColumnStats has cognitive complexity 21 (threshold 15). Drivers by points: if/else 20, match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-formats/flink-orc/src/main/java/org/apache/flink/orc/util/OrcFormatStatisticsReportUtil.java"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ec01534cf18080175f76fa3c462f52983062d9f60bc83bbd610c025c7a826cf"}},{"ruleId":"D2","level":"warning","message":{"text":"ForStGeneralMultiGetOperation.process (cognitive 21): ForStGeneralMultiGetOperation.process has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10, error handling 5, loops 5, boolean chains 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-state-backends/flink-statebackend-forst/src/main/java/org/apache/flink/state/forst/ForStGeneralMultiGetOperation.java"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"b558b442908ef103706d220e79ca12267a6ab8347e10a29ebd8f3f35283c7a22"}},{"ruleId":"D2","level":"warning","message":{"text":"SqlTypeUtil.sameNamedType (cognitive 21): SqlTypeUtil.sameNamedType has cognitive complexity 21 (threshold 15). Drivers by points: if/else 16, boolean chains 3, loops 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql/type/SqlTypeUtil.java"},"region":{"startLine":733}}}],"partialFingerprints":{"codehealthFindingId/v1":"5469c5890ad381db5a97d45fa69b9d6134ac6c541e87ad356d0f6ea0554e3c78"}},{"ruleId":"D2","level":"warning","message":{"text":"DeriveTypeVisitor.visit (cognitive 21): DeriveTypeVisitor.visit has cognitive complexity 21 (threshold 15). Drivers by points: if/else 15, loops 5, boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql/validate/SqlValidatorImpl.java"},"region":{"startLine":7194}}}],"partialFingerprints":{"codehealthFindingId/v1":"bddb87ebb85b603b824001f50ef264cf8083a05f8c11d382ceb01f7bc7b9beb9"}},{"ruleId":"D2","level":"warning","message":{"text":"Permute.\u003Cinit\u003E (cognitive 21): Permute.\u003Cinit\u003E has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8, loops 7, boolean chains 5, match/switch 1 (nesting depth added 9). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql/validate/SqlValidatorImpl.java"},"region":{"startLine":8308}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2246710e6cef09cda3a50fef8ba16a9ab0ad5562f707498e6e070d447f8e022"}},{"ruleId":"D2","level":"warning","message":{"text":"RexUtil.canAssignFrom (cognitive 21): RexUtil.canAssignFrom has cognitive complexity 21 (threshold 15). Drivers by points: if/else 15, boolean chains 4, match/switch 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/rex/RexUtil.java"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f1acd703a0851e9cabab8bb7dd8c1d50d40211cc4a6cac800c450f5cbabceec"}},{"ruleId":"D2","level":"warning","message":{"text":"RelDecorrelator.decorrelateInputWithValueGenerator (cognitive 21): RelDecorrelator.decorrelateInputWithValueGenerator has cognitive complexity 21 (threshold 15). Drivers by points: if/else 15, error handling 3, loops 2, boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql2rel/RelDecorrelator.java"},"region":{"startLine":1444}}}],"partialFingerprints":{"codehealthFindingId/v1":"2010a40583bad8d3b70ea662cf0fecd2a0f59e998e6dfba29bd16dfc35bf9cca"}},{"ruleId":"D2","level":"warning","message":{"text":"CompleteMultipartUploadHandler.doEndElement (cognitive 21): CompleteMultipartUploadHandler.doEndElement has cognitive complexity 21 (threshold 15). Drivers by points: if/else 21 (nesting depth added 8). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-filesystems/flink-s3-fs-base/src/main/java/com/amazonaws/services/s3/model/transform/XmlResponsesSaxParser.java"},"region":{"startLine":1628}}}],"partialFingerprints":{"codehealthFindingId/v1":"330ddb7dd4dd620fd35b35f35ca856d1a7f5dd4a720fe0ec67402ac6bdbbe518"}},{"ruleId":"D2","level":"warning","message":{"text":"TypeInfoToDataConverter.typeInfoDataConverter (cognitive 20): TypeInfoToDataConverter.typeInfoDataConverter has cognitive complexity 20 (threshold 15). Drivers by points: if/else 20 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/streaming/api/utils/PythonTypeUtils.java"},"region":{"startLine":1362}}}],"partialFingerprints":{"codehealthFindingId/v1":"8627a6390753d7f8817b98f7fc763ee368db056a1ac85a9b3e9b92f51eeb4b89"}},{"ruleId":"D2","level":"warning","message":{"text":"DemultiplexingRecordDeserializer.getNextRecord (cognitive 20): DemultiplexingRecordDeserializer.getNextRecord has cognitive complexity 20 (threshold 15). Drivers by points: if/else 18, boolean chains 1, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/runtime/io/recovery/DemultiplexingRecordDeserializer.java"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc288236c705771987dd20e14759fa7e9edf5515770560b57abf19a3b5c8e797"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamMultipleInputProcessorFactory.create (cognitive 20): StreamMultipleInputProcessorFactory.create has cognitive complexity 20 (threshold 15). Drivers by points: if/else 15, loops 4, ternaries 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/runtime/io/StreamMultipleInputProcessorFactory.java"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dea7db9e8bf6e8b8f1ac63d4bb1ebd1b291449c404fbf51975f2c551d6928df"}},{"ruleId":"D2","level":"warning","message":{"text":"TypeExtractor.getBinaryOperatorReturnType (cognitive 20): TypeExtractor.getBinaryOperatorReturnType has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13, ternaries 3, boolean chains 2, error handling 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/java/typeutils/TypeExtractor.java"},"region":{"startLine":684}}}],"partialFingerprints":{"codehealthFindingId/v1":"0004a7aedc17896847a3dec3807561535b153db4751a991b7d71d6a26bccc236"}},{"ruleId":"D2","level":"warning","message":{"text":"ClassLoaderObjectInputStream.resolveProxyClass (cognitive 20): ClassLoaderObjectInputStream.resolveProxyClass has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14, error handling 2, loops 2, ternaries 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/util/InstantiationUtil.java"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd236ec20fa3f76337232a0491358dc317aa543ae17665b75015801a1084908f"}},{"ruleId":"D2","level":"warning","message":{"text":"FsStateChangelogWriter.handleUploadSuccess (cognitive 20): FsStateChangelogWriter.handleUploadSuccess has cognitive complexity 20 (threshold 15). Drivers by points: if/else 17, loops 2, boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-dstl/flink-dstl-dfs/src/main/java/org/apache/flink/changelog/fs/FsStateChangelogWriter.java"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea98bad47aac9877bf753d790039842a87fd730905869780e03bb0a1d6e593be"}},{"ruleId":"D2","level":"warning","message":{"text":"MiniBatchStreamingJoinOperator.processSingleSideBundles (cognitive 20): MiniBatchStreamingJoinOperator.processSingleSideBundles has cognitive complexity 20 (threshold 15). Drivers by points: loops 17, if/else 3 (nesting depth added 12). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/stream/MiniBatchStreamingJoinOperator.java"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6f443f3e9a87b9eb55066ac5757088c845f2e6270014ce95dc262d2ddc871a4"}},{"ruleId":"D2","level":"warning","message":{"text":"NestedRowConstraint.enforce (cognitive 20): NestedRowConstraint.enforce has cognitive complexity 20 (threshold 15). Drivers by points: if/else 15, loops 4, ternaries 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/sink/constraint/NestedRowConstraint.java"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"97aa581c0cb230d3d9e53921c8acaa2dbc0b91ff329707085629ffe196c15450"}},{"ruleId":"D2","level":"warning","message":{"text":"MergingWindowSet.addWindow (cognitive 20): MergingWindowSet.addWindow has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14, boolean chains 3, loops 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/window/groupwindow/internal/MergingWindowSet.java"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"acd01994417f64da473d687c18765ff6e59de18d18689247fa4e5847b50f18c4"}},{"ruleId":"D2","level":"warning","message":{"text":"IntHashSet.contains (cognitive 20): IntHashSet.contains has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14, loops 5, boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/util/collections/IntHashSet.java"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"60dc8922bb4d071f1d8d6569f450273ba603f0efbff9d022e8e550851c40a51c"}},{"ruleId":"D2","level":"warning","message":{"text":"LongHashSet.contains (cognitive 20): LongHashSet.contains has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14, loops 5, boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/util/collections/LongHashSet.java"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa17c49e786a7edbb4a24b5b33111730559c90acbf862361d5b4d9684437f3dc"}},{"ruleId":"D2","level":"warning","message":{"text":"ShortHashSet.contains (cognitive 20): ShortHashSet.contains has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14, loops 5, boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/util/collections/ShortHashSet.java"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f052f17e6a7e73b935b394f1c9f898999538973a4c37c79be9fe598613faf2f"}},{"ruleId":"D2","level":"warning","message":{"text":"DateTimeUtils.parseDate (cognitive 20): DateTimeUtils.parseDate has cognitive complexity 20 (threshold 15). Drivers by points: if/else 20 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/utils/DateTimeUtils.java"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ef50a2f84f0125049a785bcaa7ad81638a82a946c501f54a895778386ac29a7"}},{"ruleId":"D2","level":"warning","message":{"text":"ValuesOperationFactory.convertToExpectedType (cognitive 20): ValuesOperationFactory.convertToExpectedType has cognitive complexity 20 (threshold 15). Drivers by points: if/else 16, boolean chains 4 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/utils/ValuesOperationFactory.java"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc9a9ff3f8f91956b063a3a923b1db691e2ddf88f7aa19dfdd4bf88447451bae"}},{"ruleId":"D2","level":"warning","message":{"text":"GenericInMemoryCatalog.renameTable (cognitive 20): GenericInMemoryCatalog.renameTable has cognitive complexity 20 (threshold 15). Drivers by points: if/else 20 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/catalog/GenericInMemoryCatalog.java"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eecac6668f7196cbbaa2c7bec09cb3bdb44f51db0bc123258e9ffe7492f3ec7"}},{"ruleId":"D2","level":"warning","message":{"text":"RelTimeIndicatorConverter.visit (cognitive 20): RelTimeIndicatorConverter.visit has cognitive complexity 20 (threshold 15). Drivers by points: if/else 17, boolean chains 3. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/calcite/RelTimeIndicatorConverter.java"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fb25065f0beb480b68af0918defd0f184e409b04e46af252eb00875617d5d39"}},{"ruleId":"D2","level":"warning","message":{"text":"DynamicSinkUtils.getRequireColumnsIndexAndExtraMetaCols (cognitive 20): DynamicSinkUtils.getRequireColumnsIndexAndExtraMetaCols has cognitive complexity 20 (threshold 15). Drivers by points: if/else 19, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/connectors/DynamicSinkUtils.java"},"region":{"startLine":656}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b11448d9b527cfc885ebcdbebf9f60fc9bbe66ae9f810d5ee7ad5214fc12fbc"}},{"ruleId":"D2","level":"warning","message":{"text":"1.visitNode (cognitive 20): 1.visitNode has cognitive complexity 20 (threshold 15). Drivers by points: if/else 18, boolean chains 1, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/processor/ForwardHashExchangeProcessor.java"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"a097bfc946386ff4f1b84a31ca77d26e24f0b154cde486062d79e43dc50c6e70"}},{"ruleId":"D2","level":"warning","message":{"text":"ExecNodeStringTreeBuilder.visit (cognitive 20): ExecNodeStringTreeBuilder.visit has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11, boolean chains 6, ternaries 3 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/utils/ExecNodePlanDumper.java"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a440e2e7d0a39a01adf845d434ec338efec946afd600086bb997c11318ee1b4"}},{"ruleId":"D2","level":"warning","message":{"text":"FlinkRecomputeStatisticsProgram.recomputeStatistics (cognitive 20): FlinkRecomputeStatisticsProgram.recomputeStatistics has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14, boolean chains 4, ternaries 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/optimize/program/FlinkRecomputeStatisticsProgram.java"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"617dc26512e5eb3aa85da2db4e67e694fca6127bab4a8c6177f101dbcc5dcd04"}},{"ruleId":"D2","level":"warning","message":{"text":"FlinkAggregateExpandDistinctAggregatesRule.convertSingletonDistinct (cognitive 20): FlinkAggregateExpandDistinctAggregatesRule.convertSingletonDistinct has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13, loops 7 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/rules/logical/FlinkAggregateExpandDistinctAggregatesRule.java"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f0f389a6883f89db807168e94e629b8f812bbc986d9b669bde490959b5696a2"}},{"ruleId":"D2","level":"warning","message":{"text":"FlinkFilterJoinRule.pushFiltersToAnotherSide (cognitive 20): FlinkFilterJoinRule.pushFiltersToAnotherSide has cognitive complexity 20 (threshold 15). Drivers by points: if/else 18, boolean chains 1, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/rules/logical/FlinkFilterJoinRule.java"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ae5d73fef45a9ca3d3bdb5c23908e3704412c7c7cbd3757fcbd67a24e95f858"}},{"ruleId":"D2","level":"warning","message":{"text":"PushLocalAggIntoScanRuleBase.canPushDown (cognitive 20): PushLocalAggIntoScanRuleBase.canPushDown has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13, boolean chains 6, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/rules/physical/batch/PushLocalAggIntoScanRuleBase.java"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfb9f8ce4ce0235514ed394603948b9d647691243b2b3cb7f331e3417811f8e1"}},{"ruleId":"D2","level":"warning","message":{"text":"MaterializedTableUtils.buildSchemaTableChanges (cognitive 20): MaterializedTableUtils.buildSchemaTableChanges has cognitive complexity 20 (threshold 15). Drivers by points: if/else 15, loops 4, boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/utils/MaterializedTableUtils.java"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"15a18477431fa9bddf5a4083a8efbc32ee99ae2b0b87ad3d2e6d7ca2b07bb9bf"}},{"ruleId":"D2","level":"warning","message":{"text":"ToTimestampLtzTypeStrategy.inferType (cognitive 20): ToTimestampLtzTypeStrategy.inferType has cognitive complexity 20 (threshold 15). Drivers by points: if/else 16, boolean chains 3, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/inference/strategies/ToTimestampLtzTypeStrategy.java"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"2548696056c6f46750a433b461779de5fb6abd3bdbb3459dd85115beb8b5d008"}},{"ruleId":"D2","level":"warning","message":{"text":"LegacyTypeInfoDataTypeConverter.toLegacyTypeInfo (cognitive 20): LegacyTypeInfoDataTypeConverter.toLegacyTypeInfo has cognitive complexity 20 (threshold 15). Drivers by points: if/else 16, boolean chains 4. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/utils/LegacyTypeInfoDataTypeConverter.java"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"38aac4e3e225a9de96277491283945e34832fc2519a7d76e53b534d734f7df3d"}},{"ruleId":"D2","level":"warning","message":{"text":"MetadataV2V3SerializerBase.serializeStreamStateHandle (cognitive 20): MetadataV2V3SerializerBase.serializeStreamStateHandle has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12, loops 7, boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/metadata/MetadataV2V3SerializerBase.java"},"region":{"startLine":736}}}],"partialFingerprints":{"codehealthFindingId/v1":"e610220aeb77e4ee6c4bd51c74b5a8550f13aa4ed3d529b274af329cf61ef582"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultCompletedCheckpointStore.shutdown (cognitive 20): DefaultCompletedCheckpointStore.shutdown has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13, error handling 4, loops 3 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/DefaultCompletedCheckpointStore.java"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"b52ff5b50aefded68a51710e28ae175fb266328434657b7f1242628473f4245e"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultDispatcherResourceManagerComponentFactory.create (cognitive 20): DefaultDispatcherResourceManagerComponentFactory.create has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10, error handling 9, ternaries 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/entrypoint/component/DefaultDispatcherResourceManagerComponentFactory.java"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"29e973ccd76e7fc1e729c4f979257e288e236b09dc2f6621f3f85e4f3477c593"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalInputChannel.getNextBuffer (cognitive 20): LocalInputChannel.getNextBuffer has cognitive complexity 20 (threshold 15). Drivers by points: if/else 15, loops 3, boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/consumer/LocalInputChannel.java"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfb219725f9316fc0e02e6832719a7db17870b3ba05d3904c98b14e70b742cdf"}},{"ruleId":"D2","level":"warning","message":{"text":"IterationSynchronizationSinkTask.invoke (cognitive 20): IterationSynchronizationSinkTask.invoke has cognitive complexity 20 (threshold 15). Drivers by points: if/else 15, loops 5 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/iterative/task/IterationSynchronizationSinkTask.java"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cf6f4d44b12857d5d366a19d10b8a92bce7964f679a354eebb00aa8d76d27ec"}},{"ruleId":"D2","level":"warning","message":{"text":"JobGraph.addNodesThatHaveNoNewPredecessors (cognitive 20): JobGraph.addNodesThatHaveNoNewPredecessors has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14, loops 6 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/jobgraph/JobGraph.java"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"7405664a653672e77f6b2643c6907f6eba34a612d17e44ec03ceed6da16922b2"}},{"ruleId":"D2","level":"warning","message":{"text":"RetryingRegistration.register (cognitive 20): RetryingRegistration.register has cognitive complexity 20 (threshold 15). Drivers by points: if/else 18, boolean chains 1, error handling 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/registration/RetryingRegistration.java"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a5b6dce6bfc84855e65ac9d5316de4d06d6a28c6046a16f74a31bb87bcea485"}},{"ruleId":"D2","level":"warning","message":{"text":"SharedBufferAccessor.releaseNode (cognitive 20): SharedBufferAccessor.releaseNode has cognitive complexity 20 (threshold 15). Drivers by points: if/else 17, loops 3 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-libraries/flink-cep/src/main/java/org/apache/flink/cep/nfa/sharedbuffer/SharedBufferAccessor.java"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"88afb19ac010aaeb48a7b489c9a79bd7d2e4f1ad98b6d072bee83e07f4f930a1"}},{"ruleId":"D2","level":"warning","message":{"text":"NFA.computeNextStates (cognitive 20): NFA.computeNextStates has cognitive complexity 20 (threshold 15). Drivers by points: if/else 17, match/switch 2, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-libraries/flink-cep/src/main/java/org/apache/flink/cep/nfa/NFA.java"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"90a27b745d4d75afbab5164342eb17430e17322b96c5907a63470bd1968df315"}},{"ruleId":"D2","level":"warning","message":{"text":"ForStStateBackend.\u003Cinit\u003E (cognitive 20): ForStStateBackend.\u003Cinit\u003E has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10, error handling 4, ternaries 4, boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-state-backends/flink-statebackend-forst/src/main/java/org/apache/flink/state/forst/ForStStateBackend.java"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"892f15ec2e8940777be39199efdef5612467cad44cdfc3488b48bfff9a22827e"}},{"ruleId":"D2","level":"warning","message":{"text":"RocksMultiStateKeysIterator.calculateSmallestKeyFromLocalData (cognitive 20): RocksMultiStateKeysIterator.calculateSmallestKeyFromLocalData has cognitive complexity 20 (threshold 15). Drivers by points: if/else 16, loops 3, boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-state-backends/flink-statebackend-rocksdb/src/main/java/org/apache/flink/state/rocksdb/iterator/RocksMultiStateKeysIterator.java"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"f44d6c2658c302d25700585b43c4764d1f726d5253a64b184fb2a1e3db5fce24"}},{"ruleId":"D2","level":"warning","message":{"text":"RocksDBKeyedStateBackendBuilder.build (cognitive 20): RocksDBKeyedStateBackendBuilder.build has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13, error handling 3, loops 2, ternaries 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-state-backends/flink-statebackend-rocksdb/src/main/java/org/apache/flink/state/rocksdb/RocksDBKeyedStateBackendBuilder.java"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c8160bcf6326e6ccad151f06414c30f9849582878ec6cd829ffeb86350a9746"}},{"ruleId":"D2","level":"warning","message":{"text":"TritonTypeMapper.deserializeFromJson (cognitive 20): TritonTypeMapper.deserializeFromJson has cognitive complexity 20 (threshold 15). Drivers by points: if/else 19, boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-models/flink-model-triton/src/main/java/org/apache/flink/model/triton/TritonTypeMapper.java"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"6965977c76da0de8f4a6f28b4a1f303df3430162e7994a6f30100d948ee76379"}},{"ruleId":"D2","level":"warning","message":{"text":"CompareFromBothSides.visit (cognitive 20): CompareFromBothSides.visit has cognitive complexity 20 (threshold 15). Drivers by points: if/else 17, loops 2, boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql/validate/SqlValidatorImpl.java"},"region":{"startLine":3874}}}],"partialFingerprints":{"codehealthFindingId/v1":"e75a7ad41892bc5331732dc102a417fb57e4636789d01a9e6e92af9820cdaa1d"}},{"ruleId":"D2","level":"warning","message":{"text":"BucketReplicationConfigurationHandler.doStartElement (cognitive 20): BucketReplicationConfigurationHandler.doStartElement has cognitive complexity 20 (threshold 15). Drivers by points: if/else 20 (nesting depth added 10). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-filesystems/flink-s3-fs-base/src/main/java/com/amazonaws/services/s3/model/transform/XmlResponsesSaxParser.java"},"region":{"startLine":2018}}}],"partialFingerprints":{"codehealthFindingId/v1":"119de0d175bdf6c5769a55ba201200f17260c8de8a9c32e365d672981f5d3bac"}},{"ruleId":"D2","level":"warning","message":{"text":"CollectResultFetcher.next (cognitive 19): CollectResultFetcher.next has cognitive complexity 19 (threshold 15). Drivers by points: if/else 15, error handling 3, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/collect/CollectResultFetcher.java"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e866ac1ef75e3433082cbbb4b05cda92409d0247787f81fe83c285aaabbf2ed"}},{"ruleId":"D2","level":"warning","message":{"text":"CheckpointBarrierTracker.processBarrier (cognitive 19): CheckpointBarrierTracker.processBarrier has cognitive complexity 19 (threshold 15). Drivers by points: if/else 14, loops 4, boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/runtime/io/checkpointing/CheckpointBarrierTracker.java"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"83c4392718ddd517a68ccc4a971332b7972998c5d66cb344bbaababd6d547562"}},{"ruleId":"D2","level":"warning","message":{"text":"PojoComparator.\u003Cinit\u003E (cognitive 19): PojoComparator.\u003Cinit\u003E has cognitive complexity 19 (threshold 15). Drivers by points: if/else 17, loops 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/java/typeutils/runtime/PojoComparator.java"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e8764221738453eea039bad826098028e47c0eb57e779fd3781375374c43e71"}},{"ruleId":"D2","level":"warning","message":{"text":"GenericCsvInputFormat.initializeSplit (cognitive 19): GenericCsvInputFormat.initializeSplit has cognitive complexity 19 (threshold 15). Drivers by points: if/else 14, boolean chains 4, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/common/io/GenericCsvInputFormat.java"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"a80d6ceeb516b1a49e0f353300e88e3c7c45045afbba23e9d73fc684e2086dde"}},{"ruleId":"D2","level":"warning","message":{"text":"InnerJoinOperatorBase.executeOnCollections (cognitive 19): InnerJoinOperatorBase.executeOnCollections has cognitive complexity 19 (threshold 15). Drivers by points: if/else 14, loops 5 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/common/operators/base/InnerJoinOperatorBase.java"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"68ba60141cf7c04bf8da237377d7834da03cfd6d0d7d49e51ccf44fe10efa1e2"}},{"ruleId":"D2","level":"warning","message":{"text":"StringComparator.putNormalizedKey (cognitive 19): StringComparator.putNormalizedKey has cognitive complexity 19 (threshold 15). Drivers by points: if/else 16, loops 2, boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/common/typeutils/base/StringComparator.java"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"51562aa486ff71cb7b240bedd1da3ab979460dded7a00188a43c99c0d028f9ac"}},{"ruleId":"D2","level":"warning","message":{"text":"ByteParser.parseField (cognitive 19): ByteParser.parseField has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10, boolean chains 4, ternaries 4, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/parser/ByteParser.java"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"458ecf2d3d0436cf44c271400d98e3dc7dea62f5b7667ac44cd31c45cf08a9a7"}},{"ruleId":"D2","level":"warning","message":{"text":"IntParser.parseField (cognitive 19): IntParser.parseField has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10, boolean chains 4, ternaries 4, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/parser/IntParser.java"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc9409ea12d163a0fced5343d7a8378656bce887206b3bc2528244cd7f70189a"}},{"ruleId":"D2","level":"warning","message":{"text":"ShortParser.parseField (cognitive 19): ShortParser.parseField has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10, boolean chains 4, ternaries 4, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/parser/ShortParser.java"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc282feefc558c9f0fcce889d9d4fbf2ef001d0b7b6c03e03116a365207c9337"}},{"ruleId":"D2","level":"warning","message":{"text":"Record.copyFrom (cognitive 19): Record.copyFrom has cognitive complexity 19 (threshold 15). Drivers by points: if/else 14, loops 4, boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/Record.java"},"region":{"startLine":844}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccd55a634342eb536e1fbe3e76054930313c92183fcfcd107462a53cc366c964"}},{"ruleId":"D2","level":"warning","message":{"text":"InternalDeSerializer.readUTF (cognitive 19): InternalDeSerializer.readUTF has cognitive complexity 19 (threshold 15). Drivers by points: if/else 14, loops 2, match/switch 2, boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/Record.java"},"region":{"startLine":1455}}}],"partialFingerprints":{"codehealthFindingId/v1":"042dabc8fa766e631a3f29e895fab621af2f0c708cb021077fabfd2fd469b52b"}},{"ruleId":"D2","level":"warning","message":{"text":"StringValue.copyNormalizedKey (cognitive 19): StringValue.copyNormalizedKey has cognitive complexity 19 (threshold 15). Drivers by points: if/else 16, loops 2, boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/StringValue.java"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"25d36d8212aec9249c7f5dc6a40d93496a40298400ce59219d678bbfbf55a8a4"}},{"ruleId":"D2","level":"warning","message":{"text":"IOUtils.closeAll (cognitive 19): IOUtils.closeAll has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10, ternaries 4, error handling 3, loops 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/util/IOUtils.java"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fc884d1e61c4c9c3a746a87a71b25195b8f5ebced99a93890ba895a86f06245"}},{"ruleId":"D2","level":"warning","message":{"text":"AbstractPagedInputView.read (cognitive 19): AbstractPagedInputView.read has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9, error handling 7, loops 2, boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/core/memory/AbstractPagedInputView.java"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"2273d5c65d4cfa27a848e2705431fd85673f02a8b5864905c1e99c4237b8994a"}},{"ruleId":"D2","level":"warning","message":{"text":"AbstractPagedOutputView.writeUTF (cognitive 19): AbstractPagedOutputView.writeUTF has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12, boolean chains 4, loops 3 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/core/memory/AbstractPagedOutputView.java"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"8082f11d8b67d63516274696a4e1e2a05b4ead2cb6c73cfaee67c84a11fd0e16"}},{"ruleId":"D2","level":"warning","message":{"text":"DataInputDeserializer.readString (cognitive 19): DataInputDeserializer.readString has cognitive complexity 19 (threshold 15). Drivers by points: if/else 14, loops 2, match/switch 2, boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/core/memory/DataInputDeserializer.java"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"db6863362f3460f5d2ff84866cb66b4650f5a02a46f258dc582717113e7046df"}},{"ruleId":"D2","level":"warning","message":{"text":"DataProvider.visit (cognitive 19): DataProvider.visit has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8, loops 5, ternaries 5, boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/deltajoin/MultiInputRowDataBuffer.java"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"6640811bd68513f8f299ff1c2fa52ecc87df6c95ae6b6757af55c7346ff0b03a"}},{"ruleId":"D2","level":"warning","message":{"text":"MiniBatchStreamingJoinOperator.processElementWithSuppress (cognitive 19): MiniBatchStreamingJoinOperator.processElementWithSuppress has cognitive complexity 19 (threshold 15). Drivers by points: if/else 17, boolean chains 1, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/stream/MiniBatchStreamingJoinOperator.java"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae02408f07d0e7116ee55ce3c56b95c07f9ed552dba2accaa164215a0a112e32"}},{"ruleId":"D2","level":"warning","message":{"text":"SemiAntiWindowJoinProcessor.doJoin (cognitive 19): SemiAntiWindowJoinProcessor.doJoin has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13, loops 6 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/window/utils/WindowJoinHelper.java"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"08937e62648c854b0aa2d3f8408fc0c520d0828509e29516d3db6d5854f0a105"}},{"ruleId":"D2","level":"warning","message":{"text":"RetractableTopNFunction.emitRecordsWithRowNumber (cognitive 19): RetractableTopNFunction.emitRecordsWithRowNumber has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10, loops 6, boolean chains 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/rank/RetractableTopNFunction.java"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"473bd8e75fa801a252a09b52e380823b4b4dba6cf731d2110fc2cf989d0a0380"}},{"ruleId":"D2","level":"warning","message":{"text":"UpdatableTopNFunction.initHeapStates (cognitive 19): UpdatableTopNFunction.initHeapStates has cognitive complexity 19 (threshold 15). Drivers by points: loops 10, if/else 9 (nesting depth added 12). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/rank/UpdatableTopNFunction.java"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"f14a57d5af212801bb748bc4923152ea90f01d8a897efbd91f1c3f950b448ad3"}},{"ruleId":"D2","level":"warning","message":{"text":"ArrayUnionFunction.distinct (cognitive 19): ArrayUnionFunction.distinct has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13, loops 4, boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/scalar/ArrayUnionFunction.java"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"e92749c2693dc52f60e0e15cfa9943812109d2ff557a8e9b1908867a42d5b584"}},{"ruleId":"D2","level":"warning","message":{"text":"MapDataForMapUnion.\u003Cinit\u003E (cognitive 19): MapDataForMapUnion.\u003Cinit\u003E has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12, loops 5, boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/scalar/MapUnionFunction.java"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4ce9683681a1dfe5e929d7156f314f4a0ed57a943dd50c17d82367d2afa788d"}},{"ruleId":"D2","level":"warning","message":{"text":"HarnessCollector.prependPartitionKeys (cognitive 19): HarnessCollector.prependPartitionKeys has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10, loops 7, boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-test-utils/src/main/java/org/apache/flink/table/runtime/functions/ProcessTableFunctionTestHarness.java"},"region":{"startLine":936}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6646fe9254ad599c06f49e5f66a7e97593cdbed3c924491e1d200c8c123b421"}},{"ruleId":"D2","level":"warning","message":{"text":"PlannerTypeUtils.isAssignable (cognitive 19): PlannerTypeUtils.isAssignable has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13, loops 3, boolean chains 2, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/types/PlannerTypeUtils.java"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c13b432deecc799991ad34a73dfaae10d61188c1cb4404ee0f740d03aaa8408"}},{"ruleId":"D2","level":"warning","message":{"text":"IntHashSet.add (cognitive 19): IntHashSet.add has cognitive complexity 19 (threshold 15). Drivers by points: if/else 16, loops 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/util/collections/IntHashSet.java"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"934b1bafc42e80108679b29d73f1039cf59c15303b6413a8cea5b54929a2410c"}},{"ruleId":"D2","level":"warning","message":{"text":"LongHashSet.add (cognitive 19): LongHashSet.add has cognitive complexity 19 (threshold 15). Drivers by points: if/else 16, loops 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/util/collections/LongHashSet.java"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fcb3564407b9cbcb7deaed66ea96113dbca9d2168f8465c090bf42cb47f98d9"}},{"ruleId":"D2","level":"warning","message":{"text":"ShortHashSet.add (cognitive 19): ShortHashSet.add has cognitive complexity 19 (threshold 15). Drivers by points: if/else 16, loops 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/util/collections/ShortHashSet.java"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"d80975642aaa7c3a7c1ac2046ced90d0b4eaf7af1bdf4da5f14db6059498a969"}},{"ruleId":"D2","level":"warning","message":{"text":"DynamicSourceUtils.validateScanSourceForStreaming (cognitive 19): DynamicSourceUtils.validateScanSourceForStreaming has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12, boolean chains 7 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/connectors/DynamicSourceUtils.java"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"9724c4bf1aee3cc36348c9edf1e53081f960be82736687e1063c67fb924f59c6"}},{"ruleId":"D2","level":"warning","message":{"text":"FlinkFilterJoinRule.perform (cognitive 19): FlinkFilterJoinRule.perform has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11, boolean chains 7, ternaries 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/rules/logical/FlinkFilterJoinRule.java"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"449e50abca2d7bdb396c19b092d0af5cd5a17a72ed0a40aa6af5a2d6570e8a5c"}},{"ruleId":"D2","level":"warning","message":{"text":"WindowPropertiesRules.replaceGroupAuxiliaries (cognitive 19): WindowPropertiesRules.replaceGroupAuxiliaries has cognitive complexity 19 (threshold 15). Drivers by points: match/switch 11, if/else 8 (nesting depth added 10). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/rules/logical/WindowPropertiesRules.java"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2e30958a1250da1dc67ae74441a3eb43a9d47a7d2bdc55ea55b65980a71c5ff"}},{"ruleId":"D2","level":"warning","message":{"text":"ExpandWindowTableFunctionTransposeRule.buildNewExpand (cognitive 19): ExpandWindowTableFunctionTransposeRule.buildNewExpand has cognitive complexity 19 (threshold 15). Drivers by points: if/else 16, loops 3 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/rules/physical/stream/ExpandWindowTableFunctionTransposeRule.java"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd7d6d32daed88af6d398aac28d4099d55c5d24c316f0fffac0d74ff15d053a0"}},{"ruleId":"D2","level":"warning","message":{"text":"LookupJoinUtil.findLookupFunctionFromNewSource (cognitive 19): LookupJoinUtil.findLookupFunctionFromNewSource has cognitive complexity 19 (threshold 15). Drivers by points: if/else 19 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/utils/LookupJoinUtil.java"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"0345ea033ba9fe7c10594521b339cccbb399cb253e182808f967082adda932bd"}},{"ruleId":"D2","level":"warning","message":{"text":"ResourceManager.prepareStagingResources (cognitive 19): ResourceManager.prepareStagingResources has cognitive complexity 19 (threshold 15). Drivers by points: if/else 15, boolean chains 3, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/resource/ResourceManager.java"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fc220be42b613664b1459d80d85f8cb4bc94bbd841e73299247f5cc6686f7c9"}},{"ruleId":"D2","level":"warning","message":{"text":"MemberFieldReplaceVisitor.visitPrimary (cognitive 19): MemberFieldReplaceVisitor.visitPrimary has cognitive complexity 19 (threshold 15). Drivers by points: if/else 18, boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-code-splitter/src/main/java/org/apache/flink/table/codesplit/MemberFieldRewriter.java"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d7a546b9a6184e7fad4afe0a27034885ed6a18fc8600030bff3d8e2e2213e59"}},{"ruleId":"D2","level":"warning","message":{"text":"PathPattern.match (cognitive 19): PathPattern.match has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10, loops 6, boolean chains 3 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/rest/handler/router/PathPattern.java"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"11382e6701388dbcebc1a4d0a416d4d28e3ba86581a8ed66b23a73a2e39adedf"}},{"ruleId":"D2","level":"warning","message":{"text":"FileMergingSnapshotManagerBase.controlSpace (cognitive 19): FileMergingSnapshotManagerBase.controlSpace has cognitive complexity 19 (threshold 15). Drivers by points: if/else 15, loops 3, boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/filemerging/FileMergingSnapshotManagerBase.java"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"570914a5f34f060542502b07abd82d0158551dd3bfda794d4b536bb09893a7b4"}},{"ruleId":"D2","level":"warning","message":{"text":"MetadataV2V3SerializerBase.deserializeOperatorStateHandle (cognitive 19): MetadataV2V3SerializerBase.deserializeOperatorStateHandle has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7, loops 7, ternaries 4, boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/metadata/MetadataV2V3SerializerBase.java"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b2053938f7a52a5c7c0c3aa273780a372dbfb16c7df5f39410863f3c499caae"}},{"ruleId":"D2","level":"warning","message":{"text":"MetadataV2V3SerializerBase.deserializeStreamStateHandle (cognitive 19): MetadataV2V3SerializerBase.deserializeStreamStateHandle has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13, loops 6 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/metadata/MetadataV2V3SerializerBase.java"},"region":{"startLine":824}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf3204ae36fb39658b61b0c9a1e19b5f56f19843b5beac855c0b513848db96a1"}},{"ruleId":"D2","level":"warning","message":{"text":"SerializedUpdateBuffer.switchBuffers (cognitive 19): SerializedUpdateBuffer.switchBuffers has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9, loops 6, error handling 3, boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/iterative/io/SerializedUpdateBuffer.java"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"be0d5dcda83a1a9a7f1dcdb6be50444573d033fb106f986b3dbbf0ca19e12435"}},{"ruleId":"D2","level":"warning","message":{"text":"IterationSynchronizationSinkTask.checkForConvergence (cognitive 19): IterationSynchronizationSinkTask.checkForConvergence has cognitive complexity 19 (threshold 15). Drivers by points: if/else 19 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/iterative/task/IterationSynchronizationSinkTask.java"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"79778c556c2bfe17c254ee035b01d92eea0b17940164717d6934a1e8346479c0"}},{"ruleId":"D2","level":"warning","message":{"text":"ReOpenableMutableHashTable.reopenProbe (cognitive 19): ReOpenableMutableHashTable.reopenProbe has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11, loops 8 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/operators/hash/ReOpenableMutableHashTable.java"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"66647420943118ee5650f0670030bf5366f59baa4bf425ea92dca6d0dcc87fe4"}},{"ruleId":"D2","level":"warning","message":{"text":"SpillingThread.mergeOnDisk (cognitive 19): SpillingThread.mergeOnDisk has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10, loops 7, boolean chains 2 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/operators/sort/SpillingThread.java"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"bafa1903d87c199650a41be4fb29ffcbbe468c08e9f975b715ce6e370e01545d"}},{"ruleId":"D2","level":"warning","message":{"text":"AllGroupReduceDriver.run (cognitive 19): AllGroupReduceDriver.run has cognitive complexity 19 (threshold 15). Drivers by points: if/else 17, boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/operators/AllGroupReduceDriver.java"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7006ac88a94a1d03fb0be09ed6f3be68507a1ccff5ced633853fa317720db4a"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultBatchJobRecoveryHandler.finalizeReplay (cognitive 19): DefaultBatchJobRecoveryHandler.finalizeReplay has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9, loops 8, boolean chains 1, error handling 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/scheduler/adaptivebatch/DefaultBatchJobRecoveryHandler.java"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"98ecfdf046cb902286c3855cb140de5fbd24a88a0d14194fcd76183103a51c23"}},{"ruleId":"D2","level":"warning","message":{"text":"Task.transitionStateOnFailure (cognitive 19): Task.transitionStateOnFailure has cognitive complexity 19 (threshold 15). Drivers by points: if/else 17, boolean chains 1, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/taskmanager/Task.java"},"region":{"startLine":872}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a32a60bd23f47b6018b14f3e77e6a3e208940bae2a0f458bdce6620698f261e"}},{"ruleId":"D2","level":"warning","message":{"text":"PythonOperatorChainingOptimizer.chainWithInputIfPossible (cognitive 19): PythonOperatorChainingOptimizer.chainWithInputIfPossible has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11, loops 6, boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/python/chain/PythonOperatorChainingOptimizer.java"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"1141bdc0c3dff44204f5d29a4f62ea8c9742c20c7123176c78cbd8959dc91360"}},{"ruleId":"D2","level":"warning","message":{"text":"NotifyingDefiniteKeySource.run (cognitive 19): NotifyingDefiniteKeySource.run has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11, loops 7, boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-tests/src/test/java/org/apache/flink/test/checkpointing/RescaleCheckpointManuallyITCase.java"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3723cf6a0024cecd96fdf3fead4c190a9ed1697490ce0597e2568fd1aa731bc"}},{"ruleId":"D2","level":"warning","message":{"text":"JobManagerHAProcessFailureRecoveryITCase.testDispatcherProcessFailure (cognitive 19): JobManagerHAProcessFailureRecoveryITCase.testDispatcherProcessFailure has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11, loops 5, error handling 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-tests/src/test/java/org/apache/flink/test/recovery/JobManagerHAProcessFailureRecoveryITCase.java"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"09a98f835e93fc1e39c784745b69aaa91e2e9f7b9d146c0dcc98233940c9b480"}},{"ruleId":"D2","level":"warning","message":{"text":"MessageWriter.writeAllFields (cognitive 19): MessageWriter.writeAllFields has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12, loops 4, boolean chains 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-formats/flink-parquet/src/main/java/org/apache/flink/formats/parquet/protobuf/PatchedProtoWriteSupport.java"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"f40fa7d0cda212d354c3b5a2a9cbb7d70d73e452b5e83f018a9e87f4d59a1e9e"}},{"ruleId":"D2","level":"warning","message":{"text":"TritonInferenceModelFunction.handleFailureWithRetry (cognitive 19): TritonInferenceModelFunction.handleFailureWithRetry has cognitive complexity 19 (threshold 15). Drivers by points: if/else 15, boolean chains 2, error handling 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-models/flink-model-triton/src/main/java/org/apache/flink/model/triton/TritonInferenceModelFunction.java"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad3a0ad74b2d24a930a85d0fd4852e0532445432d5601ce08226a3b139e34ed3"}},{"ruleId":"D2","level":"warning","message":{"text":"AbstractServerBase.shutdownServer (cognitive 19): AbstractServerBase.shutdownServer has cognitive complexity 19 (threshold 15). Drivers by points: if/else 18, boolean chains 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-queryable-state/flink-queryable-state-client-java/src/main/java/org/apache/flink/queryablestate/network/AbstractServerBase.java"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4553ddbf6a3f789df4eb516330120c745c1cd5cdb0e728eb0309be5ab4be342"}},{"ruleId":"D2","level":"warning","message":{"text":"Expander.expandExprFromJoin (cognitive 19): Expander.expandExprFromJoin has cognitive complexity 19 (threshold 15). Drivers by points: if/else 15, loops 4 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql/validate/SqlValidatorImpl.java"},"region":{"startLine":7415}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b21b4d61f3be91c772ce0720345ebe6293172fcf3e64b8676e6961a14604eb7"}},{"ruleId":"D2","level":"warning","message":{"text":"SelectExpander.expandAliases (cognitive 19): SelectExpander.expandAliases has cognitive complexity 19 (threshold 15). Drivers by points: if/else 15, boolean chains 2, loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql/validate/SqlValidatorImpl.java"},"region":{"startLine":7662}}}],"partialFingerprints":{"codehealthFindingId/v1":"877902b99b2d69cdd087d7deb995868b648165e3b96b5891fb903114d88a1d8a"}},{"ruleId":"D2","level":"warning","message":{"text":"RexSimplify.simplifyNot (cognitive 19): RexSimplify.simplifyNot has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11, loops 6, boolean chains 1, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/rex/RexSimplify.java"},"region":{"startLine":991}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5c6059d1db7180a7d124097938b934f774391b2005039f183f02eb72e7afb9b"}},{"ruleId":"D2","level":"warning","message":{"text":"DeleteObjectsHandler.doEndElement (cognitive 19): DeleteObjectsHandler.doEndElement has cognitive complexity 19 (threshold 15). Drivers by points: if/else 19 (nesting depth added 6). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-filesystems/flink-s3-fs-base/src/main/java/com/amazonaws/services/s3/model/transform/XmlResponsesSaxParser.java"},"region":{"startLine":2257}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d877259e6d3abd3ee142e688675810e9d4fcb5dcadf698bc96428628fa5fc7f"}},{"ruleId":"D2","level":"warning","message":{"text":"CliFrontend.listJobs (cognitive 18): CliFrontend.listJobs has cognitive complexity 18 (threshold 15). Drivers by points: if/else 14, boolean chains 3, error handling 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-clients/src/main/java/org/apache/flink/client/cli/CliFrontend.java"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"49f21b274a5d845c6a5da67885d8a4a5971d15b5665fa89aa83efe29ea30be4f"}},{"ruleId":"D2","level":"warning","message":{"text":"PythonEnvUtils.preparePythonEnvironment (cognitive 18): PythonEnvUtils.preparePythonEnvironment has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11, error handling 4, boolean chains 2, loops 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/client/python/PythonEnvUtils.java"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"689cee7317d3f32a0b76d5b1bcdb2f0f18838b5a64ab087e296e1a1d6072fac2"}},{"ruleId":"D2","level":"warning","message":{"text":"HybridSourceSplitEnumerator.handleSourceEvent (cognitive 18): HybridSourceSplitEnumerator.handleSourceEvent has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11, loops 4, ternaries 3 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-connectors/flink-connector-base/src/main/java/org/apache/flink/connector/base/source/hybrid/HybridSourceSplitEnumerator.java"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"f645f9f313af6fa83d900e8fc44dcf2065e7fbbe3e4b43a65a3d4d4e7c92009b"}},{"ruleId":"D2","level":"warning","message":{"text":"PartitionLoader.moveFiles (cognitive 18): PartitionLoader.moveFiles has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9, loops 9 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-connectors/flink-connector-files/src/main/java/org/apache/flink/connector/file/table/PartitionLoader.java"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"df177a1fbd39ac10adb5429d15f0030824c5f848d8f633b496509581fea6a006"}},{"ruleId":"D2","level":"warning","message":{"text":"JSONGenerator.visit (cognitive 18): JSONGenerator.visit has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8, loops 5, ternaries 4, boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/graph/JSONGenerator.java"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"e895b9a20155eb92fcb9668c4d4564a4c8ba69cc39e2932e00937f3f6c558109"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamingJobGraphGenerator.preValidate (cognitive 18): StreamingJobGraphGenerator.preValidate has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13, boolean chains 3, loops 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/graph/StreamingJobGraphGenerator.java"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"9848ff4332aecef6204f55724fe67e701fb39db0ab96ce55cfe57fb8d82a3499"}},{"ruleId":"D2","level":"warning","message":{"text":"AbstractStreamTaskNetworkInput.processEvent (cognitive 18): AbstractStreamTaskNetworkInput.processEvent has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11, error handling 5, match/switch 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/runtime/io/AbstractStreamTaskNetworkInput.java"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"f43fe34b539803fe488620c4a96b13a64b9220e637810950c968a38f07bf75bb"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamTwoInputProcessorFactory.create (cognitive 18): StreamTwoInputProcessorFactory.create has cognitive complexity 18 (threshold 15). Drivers by points: if/else 15, ternaries 2, boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/runtime/io/StreamTwoInputProcessorFactory.java"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"e606e65a8c7cc1cf316154bb50e0b3ee1742ddf956e3ba488f17f42c9f9a1f53"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamTask.processInput (cognitive 18): StreamTask.processInput has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13, boolean chains 4, match/switch 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/runtime/tasks/StreamTask.java"},"region":{"startLine":678}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9b12385b0732f185efbda36a5f0cb1a9bf04bb92b0f213d400dd92611877030"}},{"ruleId":"D2","level":"warning","message":{"text":"GenericCsvInputFormat.skipFields (cognitive 18): GenericCsvInputFormat.skipFields has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9, boolean chains 5, loops 4 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/common/io/GenericCsvInputFormat.java"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"79d475aef0ce8931b95ecc8a9e42030c99391e900960045cea69291b32459fc5"}},{"ruleId":"D2","level":"warning","message":{"text":"ListKeyGroupedIterator.nextKey (cognitive 18): ListKeyGroupedIterator.nextKey has cognitive complexity 18 (threshold 15). Drivers by points: if/else 15, loops 2, boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/common/operators/util/ListKeyGroupedIterator.java"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"41c8d5a568b228d81a1324fbab95ac19b0060478a6a83fc5c88056c63dcecb33"}},{"ruleId":"D2","level":"warning","message":{"text":"InternalDeSerializer.writeUTF (cognitive 18): InternalDeSerializer.writeUTF has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12, boolean chains 3, loops 3 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/Record.java"},"region":{"startLine":1725}}}],"partialFingerprints":{"codehealthFindingId/v1":"72213fff251d4e2655aec122fda8e6949580e0693d32d548a3b9e07271413472"}},{"ruleId":"D2","level":"warning","message":{"text":"StringValue.find (cognitive 18): StringValue.find has cognitive complexity 18 (threshold 15). Drivers by points: if/else 14, loops 4 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/StringValue.java"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc3ae3333ae9d52f1840b39001dfc6ee9c6376ebf24df2e82341c7d489ca919d"}},{"ruleId":"D2","level":"warning","message":{"text":"LimitedConnectionsFileSystem.waitForAvailability (cognitive 18): LimitedConnectionsFileSystem.waitForAvailability has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8, boolean chains 4, loops 4, ternaries 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/core/fs/LimitedConnectionsFileSystem.java"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7f1f2449d3c9bac4827633f2c2396ffe6335e6011438f4c816f9378da869055"}},{"ruleId":"D2","level":"warning","message":{"text":"AbstractPagedInputView.skipBytes (cognitive 18): AbstractPagedInputView.skipBytes has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9, error handling 7, loops 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/core/memory/AbstractPagedInputView.java"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"464c2e4da957a5795d6a649bc3632a205a69be64395985022377b0d0bd75c13b"}},{"ruleId":"D2","level":"warning","message":{"text":"ExtendedSqlRowTypeNameSpec.unparse (cognitive 18): ExtendedSqlRowTypeNameSpec.unparse has cognitive complexity 18 (threshold 15). Drivers by points: if/else 14, boolean chains 2, loops 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-sql-parser/src/main/java/org/apache/flink/sql/parser/type/ExtendedSqlRowTypeNameSpec.java"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"5930799b17b78482a290aea599064bb39ad2fa4985955d48a1410f2191198237"}},{"ruleId":"D2","level":"warning","message":{"text":"DeduplicateFunctionHelper.processLastRowOnChangelogWithFilter (cognitive 18): DeduplicateFunctionHelper.processLastRowOnChangelogWithFilter has cognitive complexity 18 (threshold 15). Drivers by points: if/else 16, boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/deduplicate/utils/DeduplicateFunctionHelper.java"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"a20951caa520c640a0c6dde4afe1be98e3bdf48df8be11e6c32ab6dfa00d69f2"}},{"ruleId":"D2","level":"warning","message":{"text":"InputSideHasNoUniqueKeyBundle.foldRecord (cognitive 18): InputSideHasNoUniqueKeyBundle.foldRecord has cognitive complexity 18 (threshold 15). Drivers by points: if/else 14, boolean chains 3, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/stream/bundle/InputSideHasNoUniqueKeyBundle.java"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"033346c869196d381a5a87abb78a598882862da9b3651571e2b44e00b1883fe1"}},{"ruleId":"D2","level":"warning","message":{"text":"AssociatedRecords.fromSyncStateView (cognitive 18): AssociatedRecords.fromSyncStateView has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8, ternaries 6, loops 4 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/stream/utils/AssociatedRecords.java"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"61cc4cad2a93d8937aecc52774365c0c694b37eee18ebe7c5421879b834a751d"}},{"ruleId":"D2","level":"warning","message":{"text":"ProcTimeRangeBoundedPrecedingFunction.onTimer (cognitive 18): ProcTimeRangeBoundedPrecedingFunction.onTimer has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9, loops 8, boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/over/ProcTimeRangeBoundedPrecedingFunction.java"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"0349df6f627357505bde8206fbb792505c315952f7aa879570300490aefdf9da"}},{"ruleId":"D2","level":"warning","message":{"text":"SqlFunctionUtils.initcap (cognitive 18): SqlFunctionUtils.initcap has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11, boolean chains 6, loops 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/SqlFunctionUtils.java"},"region":{"startLine":1234}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f724f8492748e6836a1f25aa0d1b0cf9c13f08effde65ec7af4cb3097bed371"}},{"ruleId":"D2","level":"warning","message":{"text":"NumericPrimitiveCastRule.matches (cognitive 18): NumericPrimitiveCastRule.matches has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 13, if/else 5. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/functions/casting/NumericPrimitiveCastRule.java"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c13655c44c3d5c62d243f18371fa7f4039db13e96a9e8c4728363251a2fb911"}},{"ruleId":"D2","level":"warning","message":{"text":"FlinkRelMdCollation.project (cognitive 18): FlinkRelMdCollation.project has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10, loops 5, match/switch 2, boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/metadata/FlinkRelMdCollation.java"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fd0db86fe0f4670bf629f9da6a5edb3e9fc1d4031767a3a6a06726aceb8699f"}},{"ruleId":"D2","level":"warning","message":{"text":"LogicalTypeJsonDeserializer.deserializeStructuredTypeFromPlan (cognitive 18): LogicalTypeJsonDeserializer.deserializeStructuredTypeFromPlan has cognitive complexity 18 (threshold 15). Drivers by points: if/else 16, boolean chains 1, loops 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/serde/LogicalTypeJsonDeserializer.java"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"561395cb8ee620ff247f16a011f3b0a5b3c49f7b44686dbdd9478b4d03680e49"}},{"ruleId":"D2","level":"warning","message":{"text":"QueryHintsResolver.mergeQueryHintsIfNecessary (cognitive 18): QueryHintsResolver.mergeQueryHintsIfNecessary has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10, loops 7, boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/optimize/QueryHintsResolver.java"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c297bc39b1395801744c716580b9bc458553f9782bb9a78c2e77ec1899d4ac1"}},{"ruleId":"D2","level":"warning","message":{"text":"PushFilterIntoTableSourceScanRule.pushFilterIntoScan (cognitive 18): PushFilterIntoTableSourceScanRule.pushFilterIntoScan has cognitive complexity 18 (threshold 15). Drivers by points: if/else 14, boolean chains 3, loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/rules/logical/PushFilterIntoTableSourceScanRule.java"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"9670fc1222dea7e182291bd39ed97d1e1ee9d00d21d18b8f74c0a4e2c5416061"}},{"ruleId":"D2","level":"warning","message":{"text":"DeltaJoinUtil.collectNextLookupBinaryInputsWithCompositeSourceInputs (cognitive 18): DeltaJoinUtil.collectNextLookupBinaryInputsWithCompositeSourceInputs has cognitive complexity 18 (threshold 15). Drivers by points: if/else 15, loops 3 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/utils/DeltaJoinUtil.java"},"region":{"startLine":720}}}],"partialFingerprints":{"codehealthFindingId/v1":"671a0410e819bd9e267870866908e5fb4a7acfbdd50b980ed92848a63aa467f4"}},{"ruleId":"D2","level":"warning","message":{"text":"JobVertexBackPressureHandler.createSubtaskBackPressureInfo (cognitive 18): JobVertexBackPressureHandler.createSubtaskBackPressureInfo has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10, loops 4, ternaries 3, boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/rest/handler/job/JobVertexBackPressureHandler.java"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ef4d8d98fca394572e5dc9c783ba681970cd29034074ff2ae50f83d47b7172c"}},{"ruleId":"D2","level":"warning","message":{"text":"FencedPekkoRpcActor.handleRpcMessage (cognitive 18): FencedPekkoRpcActor.handleRpcMessage has cognitive complexity 18 (threshold 15). Drivers by points: if/else 18 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-rpc/flink-rpc-akka/src/main/java/org/apache/flink/runtime/rpc/pekko/FencedPekkoRpcActor.java"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a37b0ac113f0df0e84078397952fc0d41c30bfa8f470e29d2668c991bb7e4de"}},{"ruleId":"D2","level":"warning","message":{"text":"HistoryServerArchiveFetcher.lazyProcessJobArchive (cognitive 18): HistoryServerArchiveFetcher.lazyProcessJobArchive has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12, error handling 2, loops 2, boolean chains 1, ternaries 1 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime-web/src/main/java/org/apache/flink/runtime/webmonitor/history/HistoryServerArchiveFetcher.java"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"f253911b8807bbe5bc3c0142d942081ba977ba27a60fe262591a35d388a0046b"}},{"ruleId":"D2","level":"warning","message":{"text":"DataType.getDataType (cognitive 18): DataType.getDataType has cognitive complexity 18 (threshold 15). Drivers by points: if/else 18 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/io/network/buffer/Buffer.java"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"7de9836e4d512666fbf949e197151e94065d0a5019b9a4b0a0a599dcbfdb98ff"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalBufferPool.recycle (cognitive 18): LocalBufferPool.recycle has cognitive complexity 18 (threshold 15). Drivers by points: if/else 15, boolean chains 2, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/io/network/buffer/LocalBufferPool.java"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"20ce1cf006d7243cd05142279dda189b01f10e1b49b1280b7b2ad6872f7be30e"}},{"ruleId":"D2","level":"warning","message":{"text":"ReporterSetupBuilder.findEnabledReportersInConfiguration (cognitive 18): ReporterSetupBuilder.findEnabledReportersInConfiguration has cognitive complexity 18 (threshold 15). Drivers by points: if/else 16, boolean chains 1, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/metrics/ReporterSetupBuilder.java"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe6ff837c8a6877f0d0b4d56675ee3f40653504c4089cf7e89e8356d354addde"}},{"ruleId":"D2","level":"warning","message":{"text":"HashTableProber.getMatchFor (cognitive 18): HashTableProber.getMatchFor has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11, error handling 4, loops 3 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/operators/hash/CompactingHashTable.java"},"region":{"startLine":1424}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c34234fc1bdf910e50c655dc8fae1d138a351111234d1fc6e0827266cd87edb"}},{"ruleId":"D2","level":"warning","message":{"text":"HashTableProber.getMatchFor (cognitive 18): HashTableProber.getMatchFor has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11, error handling 4, loops 3 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/operators/hash/CompactingHashTable.java"},"region":{"startLine":1342}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e9964274df51ae5fe062174b566ae94fae95efffb754a173ef44caf25407942"}},{"ruleId":"D2","level":"warning","message":{"text":"MutableHashTable.buildTableFromSpilledPartition (cognitive 18): MutableHashTable.buildTableFromSpilledPartition has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10, loops 6, boolean chains 2 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/operators/hash/MutableHashTable.java"},"region":{"startLine":882}}}],"partialFingerprints":{"codehealthFindingId/v1":"36d364302057d38466b4fce7dd2865c51002a6934fdf12b8bd7c3d48207ba559"}},{"ruleId":"D2","level":"warning","message":{"text":"SpillingResettableIterator.hasNext (cognitive 18): SpillingResettableIterator.hasNext has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10, error handling 8 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/operators/resettable/SpillingResettableIterator.java"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7a7480187fa245984a94b13b7baee54fcedf0795742dbd3433a98a4d4bc7307"}},{"ruleId":"D2","level":"warning","message":{"text":"AbstractMergeInnerJoinIterator.callWithNextKey (cognitive 18): AbstractMergeInnerJoinIterator.callWithNextKey has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12, loops 5, boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/operators/sort/AbstractMergeInnerJoinIterator.java"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"329bf9cacf23502ab917fce243c0873e1e74cbf9d81b0dbabe87362ed8cc2f0c"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultResourceAllocationStrategy.tryReconcileClusterResources (cognitive 18): DefaultResourceAllocationStrategy.tryReconcileClusterResources has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13, boolean chains 3, loops 2 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/resourcemanager/slotmanager/DefaultResourceAllocationStrategy.java"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9d1db40b6b8c93f876f1c7e9a0ce75048a56a05078e7a79a3fd3391a78844b7"}},{"ruleId":"D2","level":"warning","message":{"text":"PipelinedRegionSchedulingStrategy.isDownstreamOfCrossRegionConsumedPartitionSchedulable (cognitive 18): PipelinedRegionSchedulingStrategy.isDownstreamOfCrossRegionConsumedPartitionSchedulable has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12, loops 4, boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/scheduler/strategy/PipelinedRegionSchedulingStrategy.java"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"984ec70561711069909327f1d462f933b80a66668cf57db7f3903f7b1557ace2"}},{"ruleId":"D2","level":"warning","message":{"text":"StateUtil.discardStateFuture (cognitive 18): StateUtil.discardStateFuture has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10, error handling 7, boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/state/StateUtil.java"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cddb3a79cca52b90390a5f3a382b22b15c2ecb4390f8cfbd8895cf53be9db74"}},{"ruleId":"D2","level":"warning","message":{"text":"StringGeneratingSourceFunction.run (cognitive 18): StringGeneratingSourceFunction.run has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11, loops 5, boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-tests/src/test/java/org/apache/flink/test/checkpointing/RegionFailoverITCase.java"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"50957377058845598b95515d96e89db1ee56b118dee7104002aca855f696970a"}},{"ruleId":"D2","level":"warning","message":{"text":"HashTableRecordWidthCombinations.main (cognitive 18): HashTableRecordWidthCombinations.main has cognitive complexity 18 (threshold 15). Drivers by points: loops 10, error handling 4, if/else 4 (nesting depth added 11). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-tests/src/test/java/org/apache/flink/test/manual/HashTableRecordWidthCombinations.java"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"a05a8e8ba87d4e014e41a6664101b5ade91f67a7e78dc47b381b2db328d45eb2"}},{"ruleId":"D2","level":"warning","message":{"text":"AvroToVariantDataConverters.createAvroToVariantConverter (cognitive 18): AvroToVariantDataConverters.createAvroToVariantConverter has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13, loops 3, boolean chains 1, match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-formats/flink-avro/src/main/java/org/apache/flink/formats/avro/AvroToVariantDataConverters.java"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"44e0337f3a72b3a6d3faf7c7a2f206bc8afbd56d7989410a444207e3d67e2b42"}},{"ruleId":"D2","level":"warning","message":{"text":"JsonRowDeserializationSchema.createConverterForSimpleType (cognitive 18): JsonRowDeserializationSchema.createConverterForSimpleType has cognitive complexity 18 (threshold 15). Drivers by points: if/else 18. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/formats/json/JsonRowDeserializationSchema.java"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3abbc4b9fe7fbffcfdb624bea12b049312277e98ebfffe37f0ef443fde71850"}},{"ruleId":"D2","level":"warning","message":{"text":"JsonRowSerializationSchema.createConverterForSimpleType (cognitive 18): JsonRowSerializationSchema.createConverterForSimpleType has cognitive complexity 18 (threshold 15). Drivers by points: if/else 18. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/formats/json/JsonRowSerializationSchema.java"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"88ec95a9d2810b59679b1bcb4a5efe13c249d9dced6cbf42c913b2bf7605f7f1"}},{"ruleId":"D2","level":"warning","message":{"text":"RexUtil.requiresDecimalExpansion (cognitive 18): RexUtil.requiresDecimalExpansion has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12, boolean chains 3, loops 2, match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/rex/RexUtil.java"},"region":{"startLine":960}}}],"partialFingerprints":{"codehealthFindingId/v1":"81b4d71b263cf9d70b114e7cc8a33721465276794dc49d76e1fc5f16d6c1e8f9"}},{"ruleId":"D2","level":"warning","message":{"text":"Blackboard.register (cognitive 18): Blackboard.register has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10, loops 6, boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql2rel/SqlToRelConverter.java"},"region":{"startLine":5562}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5b1f9cb752231ed83a2fca74bfaf410af7e4ae7f24d3050e18141586c277978"}},{"ruleId":"D2","level":"warning","message":{"text":"HistogramShuttle.visitCall (cognitive 18): HistogramShuttle.visitCall has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11, ternaries 6, boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql2rel/SqlToRelConverter.java"},"region":{"startLine":6570}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b67109dcfa9f876e62b84cec22dda2e5a3cad32c41a162a9d0e958f5766ef8a"}},{"ruleId":"D2","level":"warning","message":{"text":"BucketTaggingConfigurationHandler.doEndElement (cognitive 18): BucketTaggingConfigurationHandler.doEndElement has cognitive complexity 18 (threshold 15). Drivers by points: if/else 17, boolean chains 1 (nesting depth added 9). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-filesystems/flink-s3-fs-base/src/main/java/com/amazonaws/services/s3/model/transform/XmlResponsesSaxParser.java"},"region":{"startLine":2131}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f9737ce8babf6a9b5db950486554dc01918572a63abaad24f702938264027f6"}},{"ruleId":"D2","level":"warning","message":{"text":"LocatableSplitChooser.getNextUnassignedMinLocalCountSplit (cognitive 17): LocatableSplitChooser.getNextUnassignedMinLocalCountSplit has cognitive complexity 17 (threshold 15). Drivers by points: if/else 15, boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-connectors/flink-connector-files/src/main/java/org/apache/flink/connector/file/src/assigners/LocalityAwareSplitAssigner.java"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb1a2849eeaafe396ef69b61acf11582977e7676ac42077d8324e23135fa6890"}},{"ruleId":"D2","level":"warning","message":{"text":"FileSystemTableSource.getScanRuntimeProvider (cognitive 17): FileSystemTableSource.getScanRuntimeProvider has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13, boolean chains 2, ternaries 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-connectors/flink-connector-files/src/main/java/org/apache/flink/connector/file/table/FileSystemTableSource.java"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0398d1c0dfab1102cf2d54e54fd38875eb9ffe24931991b6db799eb1adbd207"}},{"ruleId":"D2","level":"warning","message":{"text":"FileSystemTableSource.reportStatistics (cognitive 17): FileSystemTableSource.reportStatistics has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10, ternaries 5, boolean chains 1, error handling 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-connectors/flink-connector-files/src/main/java/org/apache/flink/connector/file/table/FileSystemTableSource.java"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"6965edd054dcc824a3100c48972de4a0f3017ced196aa8db85024b38bc47798d"}},{"ruleId":"D2","level":"warning","message":{"text":"SubtaskCheckpointCoordinatorImpl.notifyCheckpoint (cognitive 17): SubtaskCheckpointCoordinatorImpl.notifyCheckpoint has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, error handling 3, match/switch 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/runtime/tasks/SubtaskCheckpointCoordinatorImpl.java"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"e290465e52e03e33a8cfca7d37a6ebafc9add2acbaf57db653ab1ea2949511bf"}},{"ruleId":"D2","level":"warning","message":{"text":"StateCreatingFlatMap.initializeState (cognitive 17): StateCreatingFlatMap.initializeState has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13, loops 3, boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-end-to-end-tests/flink-local-recovery-and-allocation-test/src/main/java/org/apache/flink/streaming/tests/StickyAllocationAndLocalRecoveryTestJob.java"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cb7fff4112eb3d4b7f86ac8faf560ae50029a4fbbe07074a721fd4d31113731"}},{"ruleId":"D2","level":"warning","message":{"text":"HadoopUtils.getHadoopConfiguration (cognitive 17): HadoopUtils.getHadoopConfiguration has cognitive complexity 17 (threshold 15). Drivers by points: if/else 16, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-connectors/flink-hadoop-compatibility/src/main/java/org/apache/flink/api/java/hadoop/mapred/utils/HadoopUtils.java"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e88bfe5b76f09f7025081b0fbff957892725f0b8585c4088facedd9df99e01b"}},{"ruleId":"D2","level":"warning","message":{"text":"TypeExtractor.getUnaryOperatorReturnType (cognitive 17): TypeExtractor.getUnaryOperatorReturnType has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, ternaries 3, error handling 2, boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/java/typeutils/TypeExtractor.java"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"37e42bd3fc06719f75d82df1a8de2c6f98b8eda4e4e555d07b01d7c00956f8af"}},{"ruleId":"D2","level":"warning","message":{"text":"LocatableInputSplitChooser.getNextUnassignedMinLocalCountSplit (cognitive 17): LocatableInputSplitChooser.getNextUnassignedMinLocalCountSplit has cognitive complexity 17 (threshold 15). Drivers by points: if/else 15, boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/common/io/LocatableInputSplitAssigner.java"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"53e79d0ce97eeedecdaeaf162cf28ecbc1445c9d9e3aacb7d462251ce4f7a447"}},{"ruleId":"D2","level":"warning","message":{"text":"CollectionExecutor.executeBulkIteration (cognitive 17): CollectionExecutor.executeBulkIteration has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10, loops 6, boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/common/operators/CollectionExecutor.java"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"72cc43e2e1d46bd0cdc101cd0712fda706e2511bcd9417aa0461bd9cd87c702b"}},{"ruleId":"D2","level":"warning","message":{"text":"InputFormatSourceReader.pollNext (cognitive 17): InputFormatSourceReader.pollNext has cognitive complexity 17 (threshold 15). Drivers by points: if/else 15, boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/api/connector/source/lib/InputFormatSource.java"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"22ff2f1fdd67b7479ca39f3093b1899b0a3514b611e35de51baf2d792c0df7c3"}},{"ruleId":"D2","level":"warning","message":{"text":"StringValue.writeString (cognitive 17): StringValue.writeString has cognitive complexity 17 (threshold 15). Drivers by points: if/else 15, loops 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/StringValue.java"},"region":{"startLine":799}}}],"partialFingerprints":{"codehealthFindingId/v1":"caf7efa59b94c1eb827b210b78575363968950a55de885f0dc36cb0adb7c1d4c"}},{"ruleId":"D2","level":"warning","message":{"text":"MultipleInputStreamOperatorBase.createAllOperators (cognitive 17): MultipleInputStreamOperatorBase.createAllOperators has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13, loops 4 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/multipleinput/MultipleInputStreamOperatorBase.java"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e946062b513d9ae40cc42bf9255df7c5095e4ccce50b8a858d5ec88fe0a1c5d"}},{"ruleId":"D2","level":"warning","message":{"text":"ListAggWsWithRetractAggFunction.merge (cognitive 17): ListAggWsWithRetractAggFunction.merge has cognitive complexity 17 (threshold 15). Drivers by points: loops 11, if/else 5, boolean chains 1 (nesting depth added 8). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/aggregate/ListAggWsWithRetractAggFunction.java"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"07d5089019b6b7e086d1dd65231f9dbc5081dd478140d34c7dd00deeebd208d8"}},{"ruleId":"D2","level":"warning","message":{"text":"ArrayDistinctFunction.eval (cognitive 17): ArrayDistinctFunction.eval has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, loops 4, boolean chains 1, error handling 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/scalar/ArrayDistinctFunction.java"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d022749853e982775efdaa59cfd88a8377a8d2676a6e1f5cfd43f2b3a72bd8b"}},{"ruleId":"D2","level":"warning","message":{"text":"Builder.validateInitialStateKeys (cognitive 17): Builder.validateInitialStateKeys has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9, loops 6, boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-test-utils/src/main/java/org/apache/flink/table/runtime/functions/ProcessTableFunctionTestHarness.java"},"region":{"startLine":1538}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebef06c919bbe3c8b3fb52418b6fe25daa409f2cc68f412c0fefeedc162aca0f"}},{"ruleId":"D2","level":"warning","message":{"text":"BinaryHashBucketArea.findFirstSameBuildRow (cognitive 17): BinaryHashBucketArea.findFirstSameBuildRow has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10, error handling 4, loops 3 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/hashtable/BinaryHashBucketArea.java"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"e348315c605c996be3fc7071f14d2e9aa7b60f62767bbdce0de02a2d755fb5bb"}},{"ruleId":"D2","level":"warning","message":{"text":"BytesMap.growAndRehash (cognitive 17): BytesMap.growAndRehash has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10, loops 7 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/util/collections/binary/BytesMap.java"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dd2c7d8d83fd0b38d0f26f6c75e15f4d4d82cd48e32d91f8ba7a444bc6a7b6b"}},{"ruleId":"D2","level":"warning","message":{"text":"DoubleHashSet.add (cognitive 17): DoubleHashSet.add has cognitive complexity 17 (threshold 15). Drivers by points: if/else 14, loops 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/util/collections/DoubleHashSet.java"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebdbea765d86aa41e34a6a46002457de30878915290c553d0ada0fa10afa4a3f"}},{"ruleId":"D2","level":"warning","message":{"text":"FloatHashSet.add (cognitive 17): FloatHashSet.add has cognitive complexity 17 (threshold 15). Drivers by points: if/else 14, loops 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/util/collections/FloatHashSet.java"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"863a7a66cf81c96ddb58a7a730cc84f86dd5ee307422ed8911dafbba76d99ea2"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamExecWindowAggregateBase.createWindowAssigner (cognitive 17): StreamExecWindowAggregateBase.createWindowAssigner has cognitive complexity 17 (threshold 15). Drivers by points: if/else 17 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/stream/StreamExecWindowAggregateBase.java"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d1afdfb8b9c50ef05684ca617c2c4eacd1a15b59ce4cdb4b1429115fd5fb06c"}},{"ruleId":"D2","level":"warning","message":{"text":"FlinkAggregateExpandDistinctAggregatesRule.doRewrite (cognitive 17): FlinkAggregateExpandDistinctAggregatesRule.doRewrite has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10, loops 5, ternaries 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/rules/logical/FlinkAggregateExpandDistinctAggregatesRule.java"},"region":{"startLine":722}}}],"partialFingerprints":{"codehealthFindingId/v1":"d587cfd458662193e7cff4a8810627dd8032a34b567606f45d3a207b0dcf53a7"}},{"ruleId":"D2","level":"warning","message":{"text":"ProjectMultiJoinTransposeRule.createFieldMapping (cognitive 17): ProjectMultiJoinTransposeRule.createFieldMapping has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9, loops 8 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/rules/logical/ProjectMultiJoinTransposeRule.java"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0b02f982ad333972eb1056bd2f51751cd928c85822ec7a6c5ab2ddb2121cd8f"}},{"ruleId":"D2","level":"warning","message":{"text":"CorelMapBuilder.checkCorCondition (cognitive 17): CorelMapBuilder.checkCorCondition has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9, boolean chains 4, loops 4 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/rules/logical/SubQueryDecorrelator.java"},"region":{"startLine":1146}}}],"partialFingerprints":{"codehealthFindingId/v1":"da765ecfd7dba0d31c269a0408244696581594372af62b9a2bb5947cb98798dd"}},{"ruleId":"D2","level":"warning","message":{"text":"FunctionTemplate.createSignatureTemplate (cognitive 17): FunctionTemplate.createSignatureTemplate has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13, boolean chains 2, loops 2 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/extraction/FunctionTemplate.java"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a293fafe90bf48caa9b7137b7abfa95e0c5083aad6fa516d396c07068227247"}},{"ruleId":"D2","level":"warning","message":{"text":"ValueDataTypeConverter.extractDataType (cognitive 17): ValueDataTypeConverter.extractDataType has cognitive complexity 17 (threshold 15). Drivers by points: if/else 17. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/utils/ValueDataTypeConverter.java"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bf12bacdb8317969938680875f4f0fee1eea89e6b40a42c3356a9ab512ccd0c"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultExecutionGraphCache.getExecutionGraphInternal (cognitive 17): DefaultExecutionGraphCache.getExecutionGraphInternal has cognitive complexity 17 (threshold 15). Drivers by points: if/else 15, boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/rest/handler/legacy/DefaultExecutionGraphCache.java"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2fad731048c9809925437cd85f4d8f3f45b9112db41e3731a4e1a2ecf8f1037"}},{"ruleId":"D2","level":"warning","message":{"text":"RestServerEndpoint.shutDownInternal (cognitive 17): RestServerEndpoint.shutDownInternal has cognitive complexity 17 (threshold 15). Drivers by points: if/else 17 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/rest/RestServerEndpoint.java"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"9489bc91727a0508aaa7b677862363245975709392c58e6082b38495227127ac"}},{"ruleId":"D2","level":"warning","message":{"text":"CaseInsensitiveOrderComparator.compare (cognitive 17): CaseInsensitiveOrderComparator.compare has cognitive complexity 17 (threshold 15). Drivers by points: if/else 16, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/rest/RestServerEndpoint.java"},"region":{"startLine":742}}}],"partialFingerprints":{"codehealthFindingId/v1":"62a5088c7cd3d4e4dc73660048f08785090209c0d8d715f4f8961faf6a76b2cd"}},{"ruleId":"D2","level":"warning","message":{"text":"ManagedMemoryUtils.getManagedMemoryUseCaseWeightsFromConfig (cognitive 17): ManagedMemoryUtils.getManagedMemoryUseCaseWeightsFromConfig has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13, loops 3, boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/util/config/memory/ManagedMemoryUtils.java"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"82e6e5319c6dfe360b22c52699c88304662ada67f4ac726b2211dfb4ccc40f4a"}},{"ruleId":"D2","level":"warning","message":{"text":"NonReusingKeyGroupedIterator.nextKey (cognitive 17): NonReusingKeyGroupedIterator.nextKey has cognitive complexity 17 (threshold 15). Drivers by points: if/else 15, loops 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/util/NonReusingKeyGroupedIterator.java"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"9df2c839cf4658f0f2d497b619234c76c832d325691e64d84ba1fcb12c6df572"}},{"ruleId":"D2","level":"warning","message":{"text":"AbstractHistoryServerHandler.responseWithFile (cognitive 17): AbstractHistoryServerHandler.responseWithFile has cognitive complexity 17 (threshold 15). Drivers by points: if/else 14, error handling 2, boolean chains 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime-web/src/main/java/org/apache/flink/runtime/webmonitor/history/AbstractHistoryServerHandler.java"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7e8f56106a92f013d91ea8804977f8e6738a1a1b6f123dfa239f64865816438"}},{"ruleId":"D2","level":"warning","message":{"text":"BlobClient.downloadFromBlobServer (cognitive 17): BlobClient.downloadFromBlobServer has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12, loops 3, error handling 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/blob/BlobClient.java"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b6c0dbe32e27c3e91a774eb1ed12653d0f9725c9a82fc2b1890ad9915e42726"}},{"ruleId":"D2","level":"warning","message":{"text":"BlobClient.downloadFromBlobServer (cognitive 17): BlobClient.downloadFromBlobServer has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12, loops 3, error handling 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/blob/BlobClient.java"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6433f9887dfa372212089da229632bccd6bce63149bb66742f544cc8bcaac1b"}},{"ruleId":"D2","level":"warning","message":{"text":"PendingCheckpoint.acknowledgeTask (cognitive 17): PendingCheckpoint.acknowledgeTask has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, boolean chains 2, loops 2, ternaries 2 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/PendingCheckpoint.java"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"09d36316321b1e870bc0b4a2e8a69c722cca908762823fe3d3a84b88dfd70f24"}},{"ruleId":"D2","level":"warning","message":{"text":"Execution.tryAssignResource (cognitive 17): Execution.tryAssignResource has cognitive complexity 17 (threshold 15). Drivers by points: if/else 14, boolean chains 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/executiongraph/Execution.java"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"c97c46603e596d3871f0456ef47cc39bd0e85cead9ef9fd16cd0b728650b1604"}},{"ruleId":"D2","level":"warning","message":{"text":"LocationPreferenceSlotSelectionStrategy.selectWithLocationPreference (cognitive 17): LocationPreferenceSlotSelectionStrategy.selectWithLocationPreference has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 10, if/else 5, loops 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/jobmaster/slotpool/LocationPreferenceSlotSelectionStrategy.java"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"00560681bf875b60ae86d003a3fa20153037afd6651316b6b579a7111c7254c6"}},{"ruleId":"D2","level":"warning","message":{"text":"MetricRegistryImpl.register (cognitive 17): MetricRegistryImpl.register has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13, error handling 4 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/metrics/MetricRegistryImpl.java"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1ef2a9911e1da5fee2a1176776556ba9b794dffcb3a3aa59acf8a0dcde4cec6"}},{"ruleId":"D2","level":"warning","message":{"text":"CompactingHashTable.insertOrReplaceRecord (cognitive 17): CompactingHashTable.insertOrReplaceRecord has cognitive complexity 17 (threshold 15). Drivers by points: if/else 14, loops 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/operators/hash/CompactingHashTable.java"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a03646511702b728fd031237eb5ce66b7f608a4ea5e300c9864c0d3c3f1b12b"}},{"ruleId":"D2","level":"warning","message":{"text":"NormalizedKeySorter.writeToOutput (cognitive 17): NormalizedKeySorter.writeToOutput has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12, loops 3, boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/operators/sort/NormalizedKeySorter.java"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccd1467dd151c34efe4a2a6a390ac1aa841edb66b54bc23f9f12d0f0e9a82c6f"}},{"ruleId":"D2","level":"warning","message":{"text":"CrossDriver.runStreamedOuterFirst (cognitive 17): CrossDriver.runStreamedOuterFirst has cognitive complexity 17 (threshold 15). Drivers by points: loops 10, boolean chains 4, if/else 3 (nesting depth added 6). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/operators/CrossDriver.java"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad5890c2ccadf80a5f9f17f1f369a4448ed4acef6365252a86394797aef67447"}},{"ruleId":"D2","level":"warning","message":{"text":"CrossDriver.runStreamedOuterSecond (cognitive 17): CrossDriver.runStreamedOuterSecond has cognitive complexity 17 (threshold 15). Drivers by points: loops 10, boolean chains 4, if/else 3 (nesting depth added 6). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/operators/CrossDriver.java"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"01dfdfd21992cb9a173a83633949a99fa2c9dbdce00f28e874f8248fc9507a46"}},{"ruleId":"D2","level":"warning","message":{"text":"AbstractAggregatingState.mergeNamespaces (cognitive 17): AbstractAggregatingState.mergeNamespaces has cognitive complexity 17 (threshold 15). Drivers by points: if/else 14, boolean chains 1, error handling 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/state/v2/AbstractAggregatingState.java"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4d881a0294bb3d04ad55928fe4c91f77aea80a63ca5f57d9614c285854d1017"}},{"ruleId":"D2","level":"warning","message":{"text":"AbstractReducingState.mergeNamespaces (cognitive 17): AbstractReducingState.mergeNamespaces has cognitive complexity 17 (threshold 15). Drivers by points: if/else 14, boolean chains 1, error handling 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/state/v2/AbstractReducingState.java"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7f07a5613088287af8e581eda75475c9a69308e44c2b2920d4f17a0c841b64a"}},{"ruleId":"D2","level":"warning","message":{"text":"Builder.buildAsyncClient (cognitive 17): Builder.buildAsyncClient has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13, error handling 4 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-filesystems/flink-s3-fs-native/src/main/java/org/apache/flink/fs/s3native/S3ClientProvider.java"},"region":{"startLine":793}}}],"partialFingerprints":{"codehealthFindingId/v1":"934eab4607513b196147a4f0cec910c4e0aea1f87b15a7b4594aa9aa23738ab1"}},{"ruleId":"D2","level":"warning","message":{"text":"PointInFormat.readRecord (cognitive 17): PointInFormat.readRecord has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, ternaries 4, loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-tests/src/test/java/org/apache/flink/test/util/PointInFormat.java"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"bda15c2484653c220c5f093cebf3874416348e21714bb74f8722922695855495"}},{"ruleId":"D2","level":"warning","message":{"text":"StringGeneratingSourceFunction.initializeState (cognitive 17): StringGeneratingSourceFunction.initializeState has cognitive complexity 17 (threshold 15). Drivers by points: if/else 17 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-tests/src/test/java/org/apache/flink/test/checkpointing/RegionFailoverITCase.java"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"65ecfe848dca04810685e43a1203568bc0843d92c80e1241ca64560a17c4ab87"}},{"ruleId":"D2","level":"warning","message":{"text":"StrictOrderVerifyingSink.invoke (cognitive 17): StrictOrderVerifyingSink.invoke has cognitive complexity 17 (threshold 15). Drivers by points: if/else 17 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-tests/src/test/java/org/apache/flink/test/checkpointing/UnalignedCheckpointITCase.java"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fa3174804aa935b47c1bc7a25d2bf3021421704ab36b166572fbdc4737efc45"}},{"ruleId":"D2","level":"warning","message":{"text":"Scrambler.scramble (cognitive 17): Scrambler.scramble has cognitive complexity 17 (threshold 15). Drivers by points: if/else 14, boolean chains 2, match/switch 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-tests/src/test/java/org/apache/flink/test/manual/OverwriteObjects.java"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"9326b5aaa1866711a5e5ef82427ca1ad32af2ddda6f5b33fe7c765dfa4a9e9bc"}},{"ruleId":"D2","level":"warning","message":{"text":"ByteColumnReader.readBatch (cognitive 17): ByteColumnReader.readBatch has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, loops 4, match/switch 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-formats/flink-parquet/src/main/java/org/apache/flink/formats/parquet/vector/reader/ByteColumnReader.java"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cd1c68f1400594c84f36aede01b4ac1de108eddcc0e695abecd7546a6626b5a"}},{"ruleId":"D2","level":"warning","message":{"text":"BytesColumnReader.readBatch (cognitive 17): BytesColumnReader.readBatch has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, loops 4, match/switch 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-formats/flink-parquet/src/main/java/org/apache/flink/formats/parquet/vector/reader/BytesColumnReader.java"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fd86f9a413d3cc9715970f122901963520d9243e34772892e9cbc5430d14400"}},{"ruleId":"D2","level":"warning","message":{"text":"DoubleColumnReader.readBatch (cognitive 17): DoubleColumnReader.readBatch has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, loops 4, match/switch 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-formats/flink-parquet/src/main/java/org/apache/flink/formats/parquet/vector/reader/DoubleColumnReader.java"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c923d3ec47a57798ee6a425c14e1e07ad556be53e174ef1f279f8af9854f35e"}},{"ruleId":"D2","level":"warning","message":{"text":"FloatColumnReader.readBatch (cognitive 17): FloatColumnReader.readBatch has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, loops 4, match/switch 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-formats/flink-parquet/src/main/java/org/apache/flink/formats/parquet/vector/reader/FloatColumnReader.java"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba7929487fbb8a7cd9eed951427cbc8834d3de6aa4efbdfa3b26b34e21049f72"}},{"ruleId":"D2","level":"warning","message":{"text":"IntColumnReader.readBatch (cognitive 17): IntColumnReader.readBatch has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, loops 4, match/switch 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-formats/flink-parquet/src/main/java/org/apache/flink/formats/parquet/vector/reader/IntColumnReader.java"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ba25c5184061e5f37efd649e4e6c04f3d26fbd449b02defebee4b9937958245"}},{"ruleId":"D2","level":"warning","message":{"text":"LongColumnReader.readBatch (cognitive 17): LongColumnReader.readBatch has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, loops 4, match/switch 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-formats/flink-parquet/src/main/java/org/apache/flink/formats/parquet/vector/reader/LongColumnReader.java"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"433679e037fa611f395c0c0bdf8f4a7124920c1157b0fd097bdd2e8d1e28a251"}},{"ruleId":"D2","level":"warning","message":{"text":"RunLengthDecoder.readDictionaryIds (cognitive 17): RunLengthDecoder.readDictionaryIds has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, loops 4, match/switch 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-formats/flink-parquet/src/main/java/org/apache/flink/formats/parquet/vector/reader/RunLengthDecoder.java"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"b25bbdd7a453414829743e22693ef607210bfe215e708ea98419951f00596da3"}},{"ruleId":"D2","level":"warning","message":{"text":"DoubleListLru.remove (cognitive 17): DoubleListLru.remove has cognitive complexity 17 (threshold 15). Drivers by points: if/else 16, boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-state-backends/flink-statebackend-forst/src/main/java/org/apache/flink/state/forst/fs/cache/DoubleListLru.java"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"91fb736667908ac6688ae2ab2f9ecb3d4362ee04c3da52aedd3a428ef4f07391"}},{"ruleId":"D2","level":"warning","message":{"text":"FileBasedCache.movedToFirst (cognitive 17): FileBasedCache.movedToFirst has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13, error handling 4 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-state-backends/flink-statebackend-forst/src/main/java/org/apache/flink/state/forst/fs/cache/FileBasedCache.java"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a80413ffb5fb8b895d9dbd21f7c6f5d4393264e142cdaa4c48f19a1b35947d4"}},{"ruleId":"D2","level":"warning","message":{"text":"YARNSessionCapacitySchedulerITCase.testDetachedPerJobYarnClusterInternal (cognitive 17): YARNSessionCapacitySchedulerITCase.testDetachedPerJobYarnClusterInternal has cognitive complexity 17 (threshold 15). Drivers by points: error handling 5, if/else 5, loops 5, boolean chains 2 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-yarn-tests/src/test/java/org/apache/flink/yarn/YARNSessionCapacitySchedulerITCase.java"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9b432795e029816b8107307225e4519c32ebb25f859d4016e43c8c672ff8a2e"}},{"ruleId":"D2","level":"warning","message":{"text":"SqlItemOperator.inferReturnType (cognitive 17): SqlItemOperator.inferReturnType has cognitive complexity 17 (threshold 15). Drivers by points: if/else 15, boolean chains 1, match/switch 1 (nesting depth added 7). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-sql-parser/src/main/java/org/apache/calcite/sql/fun/SqlItemOperator.java"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"50c75ee31ea49b44dfc179959e4b30dad45f8de965be27108cb27a64b3861fde"}},{"ruleId":"D2","level":"warning","message":{"text":"RexSimplify.simplifyIs2 (cognitive 17): RexSimplify.simplifyIs2 has cognitive complexity 17 (threshold 15). Drivers by points: if/else 15, match/switch 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/rex/RexSimplify.java"},"region":{"startLine":1160}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a84b9feb1c7d5eae21cca9e94f81f2738066ffcf18e1ca467cdebc28c93e0f3"}},{"ruleId":"D2","level":"warning","message":{"text":"RexSimplify.simplifyIsNotNull (cognitive 17): RexSimplify.simplifyIsNotNull has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, match/switch 3, loops 2, boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/rex/RexSimplify.java"},"region":{"startLine":1235}}}],"partialFingerprints":{"codehealthFindingId/v1":"b463117f427a9277447d1d5a81f1bad2a679048fa4dc8dc48071c5a7bb99decd"}},{"ruleId":"D2","level":"warning","message":{"text":"RelDecorrelator.checkCorVars (cognitive 17): RelDecorrelator.checkCorVars has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10, loops 6, boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql2rel/RelDecorrelator.java"},"region":{"startLine":1984}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfa847418e35dd9385c27020c948d57b3f429b546ca4c50b3877098d18fec62a"}},{"ruleId":"D2","level":"warning","message":{"text":"XmlResponsesSaxParser.sanitizeXmlDocument (cognitive 17): XmlResponsesSaxParser.sanitizeXmlDocument has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8, error handling 7, loops 2 (nesting depth added 9). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-filesystems/flink-s3-fs-base/src/main/java/com/amazonaws/services/s3/model/transform/XmlResponsesSaxParser.java"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c3ba9ab5e2a3d70335ed1c80c29298b820c9ef790a4923000cc26a4c3cc90cb"}},{"ruleId":"D2","level":"warning","message":{"text":"TypeInfoToProtoConverter.toTypeInfoProto (cognitive 16): TypeInfoToProtoConverter.toTypeInfoProto has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14, error handling 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/streaming/api/utils/PythonTypeUtils.java"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"47c8eef935d75c0ca5cdc13eba9bcd98f115ed4923effca8ad0d090dff644db5"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamingJobGraphGenerator.createJobVertex (cognitive 16): StreamingJobGraphGenerator.createJobVertex has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9, loops 3, ternaries 3, error handling 1 (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/graph/StreamingJobGraphGenerator.java"},"region":{"startLine":1074}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1c746c0d089f8ded081d44293fb666165ef7337da75a8f70aa21927ee6ab6f0"}},{"ruleId":"D2","level":"warning","message":{"text":"AsyncCheckpointRunnable.handleExecutionException (cognitive 16): AsyncCheckpointRunnable.handleExecutionException has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, error handling 7, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/runtime/tasks/AsyncCheckpointRunnable.java"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"d542c6e5a565522fc0b2ce3ced9607cbb6fb096bc38b5536891ac520b4300069"}},{"ruleId":"D2","level":"warning","message":{"text":"OperatorChain.createOutputCollector (cognitive 16): OperatorChain.createOutputCollector has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, loops 4 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/runtime/tasks/OperatorChain.java"},"region":{"startLine":738}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ef1d60a3ef7481878989722d0ea842003d95c7d0d0a457156c03148a93f7d96"}},{"ruleId":"D2","level":"warning","message":{"text":"OperatorChain.\u003Cinit\u003E (cognitive 16): OperatorChain.\u003Cinit\u003E has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13, loops 2, ternaries 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/runtime/tasks/OperatorChain.java"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"b051c284c0c56268a990ad7c748f2483e45850a43fd361f9268c3a8c68adc8ac"}},{"ruleId":"D2","level":"warning","message":{"text":"StatusWatermarkValve.inputWatermarkStatus (cognitive 16): StatusWatermarkValve.inputWatermarkStatus has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14, boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/runtime/watermarkstatus/StatusWatermarkValve.java"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"b49d3fa7f4e97d4d89906f8be6111a15bddb04b4370b32d69c276070d915df3c"}},{"ruleId":"D2","level":"warning","message":{"text":"CountNewsClicksProcessFunction.processRecord (cognitive 16): CountNewsClicksProcessFunction.processRecord has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13, loops 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-examples/flink-examples-streaming/src/main/java/org/apache/flink/streaming/examples/dsv2/eventtime/CountNewsClicks.java"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"269c1c3897525ad7131c12241cfd9ec8c405ca59641c0c14d8ba24cfd50128ca"}},{"ruleId":"D2","level":"warning","message":{"text":"TypeExtractor.materializeTypeVariable (cognitive 16): TypeExtractor.materializeTypeVariable has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, loops 4 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/java/typeutils/TypeExtractor.java"},"region":{"startLine":1825}}}],"partialFingerprints":{"codehealthFindingId/v1":"56838bfa1699b702b19a0e06c6f41044db3f88b02cad5d0be476ea777fb0287e"}},{"ruleId":"D2","level":"warning","message":{"text":"OuterJoinListIterator.next (cognitive 16): OuterJoinListIterator.next has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, boolean chains 4 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/common/operators/base/OuterJoinOperatorBase.java"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"60d5ec1fecffa0af2365ab3a53c164dc34fb4be2c530dedb28a509100d41ba2b"}},{"ruleId":"D2","level":"warning","message":{"text":"Operator.createUnionCascade (cognitive 16): Operator.createUnionCascade has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, boolean chains 3, loops 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/common/operators/Operator.java"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"51c7d87e475e08929be23e041a907fdb4670057f47a2cadadfc37cf68ed215bc"}},{"ruleId":"D2","level":"warning","message":{"text":"PythonBridgeUtils.readPythonObjects (cognitive 16): PythonBridgeUtils.readPythonObjects has cognitive complexity 16 (threshold 15). Drivers by points: loops 9, if/else 7 (nesting depth added 9). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/api/common/python/PythonBridgeUtils.java"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"b42ee21e577d1a136caa8baca35a49d3f8f5f08910c028bf2c73515921b9bea8"}},{"ruleId":"D2","level":"warning","message":{"text":"NetUtils.getPortRangeFromString (cognitive 16): NetUtils.getPortRangeFromString has cognitive complexity 16 (threshold 15). Drivers by points: if/else 15, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/util/NetUtils.java"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f5b3d477afbe5e91f280bbc942cb3504acd118cfbfdce0a5cb5a28559ae147c"}},{"ruleId":"D2","level":"warning","message":{"text":"AnswerFormatter.writeContent (cognitive 16): AnswerFormatter.writeContent has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, loops 4, boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/utils/AnswerFormatter.java"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d286d94fa2ab2ba4ba32cd95d566e0cbee02d0c27716efe1d5fe00ffed0c95d"}},{"ruleId":"D2","level":"warning","message":{"text":"AbstractStreamArrowPythonBoundedRangeOperator.triggerWindowProcess (cognitive 16): AbstractStreamArrowPythonBoundedRangeOperator.triggerWindowProcess has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9, loops 7 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/table/runtime/operators/python/aggregate/arrow/stream/AbstractStreamArrowPythonBoundedRangeOperator.java"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"b344df70fad8846f3c2ff874cd979241fafd59b805a222090bec5263b5b44128"}},{"ruleId":"D2","level":"warning","message":{"text":"LateralSnapshotJoinOperator.applyBuildChanges (cognitive 16): LateralSnapshotJoinOperator.applyBuildChanges has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, ternaries 3, boolean chains 2, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/snapshot/LateralSnapshotJoinOperator.java"},"region":{"startLine":932}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b7042a4086810df743e233bc10cf6a21e8dc63cb2664463e346309f30270c7a"}},{"ruleId":"D2","level":"warning","message":{"text":"InputSideHasUniqueKeyBundle.foldRecord (cognitive 16): InputSideHasUniqueKeyBundle.foldRecord has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14, boolean chains 1, ternaries 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/stream/bundle/InputSideHasUniqueKeyBundle.java"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4f678f342f05d8d4659d49d5a1a3ce2568f79022568679fae4ad5363c86bb13"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamingMultiJoinOperator.processRecords (cognitive 16): StreamingMultiJoinOperator.processRecords has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13, boolean chains 2, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/stream/StreamingMultiJoinOperator.java"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"85016386f4fde8969d460d894d67ef3bc8002a71acfa9638cc7788bd423ced48"}},{"ruleId":"D2","level":"warning","message":{"text":"SortMergeOneSideOuterJoinIterator.nextOuterJoin (cognitive 16): SortMergeOneSideOuterJoinIterator.nextOuterJoin has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13, loops 2, boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/SortMergeOneSideOuterJoinIterator.java"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e596ad397bff6447ca5cae99ff49cf5e5d3909a39984dcd67dc045b1367fbc0"}},{"ruleId":"D2","level":"warning","message":{"text":"BinaryExternalSorter.\u003Cinit\u003E (cognitive 16): BinaryExternalSorter.\u003Cinit\u003E has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11, ternaries 4, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/sort/BinaryExternalSorter.java"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"e225cf7bdfec7411264a2dcf552a535e64fa7600a9fbda9e509dc959ec0a9f12"}},{"ruleId":"D2","level":"warning","message":{"text":"MapDataSerializer.toBinaryMap (cognitive 16): MapDataSerializer.toBinaryMap has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13, boolean chains 2, loops 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-type-utils/src/main/java/org/apache/flink/table/runtime/typeutils/MapDataSerializer.java"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"d197c951c6d3e7d79b499194d31b65d60dd0cf4e6b6ea2172366831d5cd39484"}},{"ruleId":"D2","level":"warning","message":{"text":"HyperLogLogPlusPlus.query (cognitive 16): HyperLogLogPlusPlus.query has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, boolean chains 4, loops 3, ternaries 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/aggregate/hyperloglog/HyperLogLogPlusPlus.java"},"region":{"startLine":4938}}}],"partialFingerprints":{"codehealthFindingId/v1":"18d859768d30694c08524105343cf5b52c7fe660855bd9a9b651a6a21887f176"}},{"ruleId":"D2","level":"warning","message":{"text":"Builder.validatePartitionConsistency (cognitive 16): Builder.validatePartitionConsistency has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11, loops 4, boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-test-utils/src/main/java/org/apache/flink/table/runtime/functions/ProcessTableFunctionTestHarness.java"},"region":{"startLine":1479}}}],"partialFingerprints":{"codehealthFindingId/v1":"410ca05b270ca7174cb5c1feb87d34ebb7d54ab7403b07d1e04b064de409d211"}},{"ruleId":"D2","level":"warning","message":{"text":"PythonTableUtils.arrayConstructor (cognitive 16): PythonTableUtils.arrayConstructor has cognitive complexity 16 (threshold 15). Drivers by points: loops 8, if/else 7, boolean chains 1. To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/table/utils/python/PythonTableUtils.java"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"82983e51f3c6a06c962166cfa35097be011c7ce41b97fcffd5189803eb125c4a"}},{"ruleId":"D2","level":"warning","message":{"text":"SqlMultiLineParser.parse (cognitive 16): SqlMultiLineParser.parse has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11, boolean chains 2, error handling 1, match/switch 1, ternaries 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-sql-client/src/main/java/org/apache/flink/table/client/cli/parser/SqlMultiLineParser.java"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"70ab79b7efbed9c1f974e3fd7ff3b27417783d32ad0132d67ece42c0eb07a507"}},{"ruleId":"D2","level":"warning","message":{"text":"CliTableauResultView.printStreamingResults (cognitive 16): CliTableauResultView.printStreamingResults has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7, loops 4, error handling 3, match/switch 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-sql-client/src/main/java/org/apache/flink/table/client/cli/CliTableauResultView.java"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e022ff8ef24fc6422ea023a120cc71a813e195ce88c33bee55d491e90d29e90"}},{"ruleId":"D2","level":"warning","message":{"text":"CastRuleProvider.addRule (cognitive 16): CastRuleProvider.addRule has cognitive complexity 16 (threshold 15). Drivers by points: loops 15, if/else 1 (nesting depth added 6). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/functions/casting/CastRuleProvider.java"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7d338f279b815be43792c82590e64cb9b0c7f362e4dad5756c799ecd6a91ee8"}},{"ruleId":"D2","level":"warning","message":{"text":"SqlAnalyzeTableConverter.convertSqlNode (cognitive 16): SqlAnalyzeTableConverter.convertSqlNode has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13, error handling 2, boolean chains 1 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/operations/converters/table/SqlAnalyzeTableConverter.java"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"10f6017bdbfc5a1731d0abba972aee76bdca2f695a91599d2adc79c32642cb6f"}},{"ruleId":"D2","level":"warning","message":{"text":"FlinkRelMdCollation.values (cognitive 16): FlinkRelMdCollation.values has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13, loops 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/metadata/FlinkRelMdCollation.java"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff2d87b01fed8515bd1cb25b336d55025949ce68fc26ba6ed81543011b21fdc8"}},{"ruleId":"D2","level":"warning","message":{"text":"CommonExecSink.getTargetRowKind (cognitive 16): CommonExecSink.getTargetRowKind has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14, loops 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/common/CommonExecSink.java"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"516bb53311f61f0530ba7edcf0ca82027781aea1023d02ce23c92309241579e6"}},{"ruleId":"D2","level":"warning","message":{"text":"RowtimeDeduplicateOperatorTranslator.createDeduplicateOperator (cognitive 16): RowtimeDeduplicateOperatorTranslator.createDeduplicateOperator has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13, boolean chains 2, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/stream/StreamExecDeduplicate.java"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8fe547b11171060af8a9a12675ec187e4aafbb16da86d7e464a175be15fa5d5"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamExecWindowAggregateBase.createSliceAssigner (cognitive 16): StreamExecWindowAggregateBase.createSliceAssigner has cognitive complexity 16 (threshold 15). Drivers by points: if/else 16 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/stream/StreamExecWindowAggregateBase.java"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e2803787569de89601a48e99877f4fbd300a3fddc2dd9f5bfe2e612d5edfa11"}},{"ruleId":"D2","level":"warning","message":{"text":"FlinkRuntimeFilterProgram.tryInjectRuntimeFilter (cognitive 16): FlinkRuntimeFilterProgram.tryInjectRuntimeFilter has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13, boolean chains 3 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/optimize/program/FlinkRuntimeFilterProgram.java"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ab3b20377b96aa0ea76f9ce1b715e6653b0fc5607a0b67c5f8b7631f164293f"}},{"ruleId":"D2","level":"warning","message":{"text":"FlinkAggregateProjectMergeRule.newApply (cognitive 16): FlinkAggregateProjectMergeRule.newApply has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9, loops 6, boolean chains 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/rules/logical/FlinkAggregateProjectMergeRule.java"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"62f60f6107c196ac2a213ede33e0d307fa377cf64107c30f80469f0954ccdc19"}},{"ruleId":"D2","level":"warning","message":{"text":"JoinConditionShuttle.visitInputRef (cognitive 16): JoinConditionShuttle.visitInputRef has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, loops 6 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/rules/logical/FlinkBushyJoinReorderRule.java"},"region":{"startLine":593}}}],"partialFingerprints":{"codehealthFindingId/v1":"f676dad9eebe769405096ba4425c575bfe254a64d2d45d101499199e4b22f368"}},{"ruleId":"D2","level":"warning","message":{"text":"JoinConditionTypeCoerceRule.onMatch (cognitive 16): JoinConditionTypeCoerceRule.onMatch has cognitive complexity 16 (threshold 15). Drivers by points: if/else 15, boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/rules/logical/JoinConditionTypeCoerceRule.java"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6c18bebe8cfd07e5170d0da5fb5feb9a2039819e926951d8dadc6f143589d9c"}},{"ruleId":"D2","level":"warning","message":{"text":"LookupJoinUtil.isAsyncLookup (cognitive 16): LookupJoinUtil.isAsyncLookup has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, boolean chains 3, ternaries 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/utils/LookupJoinUtil.java"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab9ef62338c088ac3e88db0704503aa028f51d6cc2b5a40bb3938c06bb5b5889"}},{"ruleId":"D2","level":"warning","message":{"text":"BinaryStringData.compareMultiSegments (cognitive 16): BinaryStringData.compareMultiSegments has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, loops 5, boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/data/binary/BinaryStringData.java"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"030a7f9f6e07faea32cd3d18c683406d6575be3a24e9bd9af1140f46391b3b5f"}},{"ruleId":"D2","level":"warning","message":{"text":"BinaryStringDataUtil.toBigPrecisionDecimal (cognitive 16): BinaryStringDataUtil.toBigPrecisionDecimal has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, loops 4, boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/data/binary/BinaryStringDataUtil.java"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"db2019a8a2fddf1ae7b9144a50ef2970409c6b6f3425f762e0c14557bcec186e"}},{"ruleId":"D2","level":"warning","message":{"text":"PercentageArrayArgumentTypeStrategy.inferArgumentType (cognitive 16): PercentageArrayArgumentTypeStrategy.inferArgumentType has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, boolean chains 3, loops 2, ternaries 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/inference/strategies/PercentageArrayArgumentTypeStrategy.java"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8b91ed18178ebbfe7db2a0e7fab50e22acc36c4258e7b0d25a398022e250fd1"}},{"ruleId":"D2","level":"warning","message":{"text":"HistoryServerApplicationArchiveFetcher.listValidArchives (cognitive 16): HistoryServerApplicationArchiveFetcher.listValidArchives has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, loops 4, boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime-web/src/main/java/org/apache/flink/runtime/webmonitor/history/HistoryServerApplicationArchiveFetcher.java"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"213207e449b86e131a6ebc34407698df4601ecce0e4d118eacb75bdd48907e90"}},{"ruleId":"D2","level":"warning","message":{"text":"HistoryServerArchiveFetcher.scanArchives (cognitive 16): HistoryServerArchiveFetcher.scanArchives has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9, error handling 3, loops 3, boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime-web/src/main/java/org/apache/flink/runtime/webmonitor/history/HistoryServerArchiveFetcher.java"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9979e701c98144b61b5646eea223c4bbf57f1d5c106f78ec2fe3397e04ae2ac"}},{"ruleId":"D2","level":"warning","message":{"text":"AsyncExecutionController.drainInflightRecords (cognitive 16): AsyncExecutionController.drainInflightRecords has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, boolean chains 4, error handling 1, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/asyncprocessing/AsyncExecutionController.java"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1f6b44e8d112f49bbfc8abfcb272f2f8af6bcf8abbf9120b3af65a3bc1a7da6"}},{"ruleId":"D2","level":"warning","message":{"text":"AsyncRequestBuffer.enqueueToBlocking (cognitive 16): AsyncRequestBuffer.enqueueToBlocking has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, loops 3, boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/asyncprocessing/AsyncRequestBuffer.java"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e5b56cbae61811b47b23f30d96d133cf780b5abafcfd900f06eae52d88437d5"}},{"ruleId":"D2","level":"warning","message":{"text":"Execution.markFinished (cognitive 16): Execution.markFinished has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13, boolean chains 2, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/executiongraph/Execution.java"},"region":{"startLine":1162}}}],"partialFingerprints":{"codehealthFindingId/v1":"9785aa5cddb9034cc9a9788ba75979637ba3874e5523c97cac799f91393d2973"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteInputChannel.onBuffer (cognitive 16): RemoteInputChannel.onBuffer has cognitive complexity 16 (threshold 15). Drivers by points: if/else 15, boolean chains 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/consumer/RemoteInputChannel.java"},"region":{"startLine":782}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d73d81cdc74b4c40f81eca53e56598b91d5be35d796e4f302ee577171be2461"}},{"ruleId":"D2","level":"warning","message":{"text":"ScopeFormat.\u003Cinit\u003E (cognitive 16): ScopeFormat.\u003Cinit\u003E has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9, ternaries 4, boolean chains 2, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/metrics/scope/ScopeFormat.java"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e960b4dcdb7a6486897b8dcd1fb17f000fd6347f3be77817f51986632c55397"}},{"ruleId":"D2","level":"warning","message":{"text":"NonReusingBlockResettableIterator.hasNext (cognitive 16): NonReusingBlockResettableIterator.hasNext has cognitive complexity 16 (threshold 15). Drivers by points: if/else 15, error handling 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/operators/resettable/NonReusingBlockResettableIterator.java"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4849755d17ee6843fdab1ac48565a59a2892120bcc1ff7aee5263863d960046"}},{"ruleId":"D2","level":"warning","message":{"text":"ReusingBlockResettableIterator.hasNext (cognitive 16): ReusingBlockResettableIterator.hasNext has cognitive complexity 16 (threshold 15). Drivers by points: if/else 15, error handling 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/operators/resettable/ReusingBlockResettableIterator.java"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"3627bf44f5eb261ce496df7c4093a63497adf00e5a42d363ac5f8a0e22d8d015"}},{"ruleId":"D2","level":"warning","message":{"text":"AbstractMergeIterator.crossMwithNValues (cognitive 16): AbstractMergeIterator.crossMwithNValues has cognitive complexity 16 (threshold 15). Drivers by points: loops 12, if/else 4 (nesting depth added 5). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/operators/sort/AbstractMergeIterator.java"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"18a7e7ab7fd1a289a96d9bfba0723b1f33138af9de00062555caeb313c1eac21"}},{"ruleId":"D2","level":"warning","message":{"text":"GroupReduceCombineDriver.run (cognitive 16): GroupReduceCombineDriver.run has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, loops 4, boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/operators/GroupReduceCombineDriver.java"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b29a6305f06c5eacfc97b1873d7404dc0907f9864392d2fbec0535b9a4d1241"}},{"ruleId":"D2","level":"warning","message":{"text":"CopyOnWriteStateMap.removeEntry (cognitive 16): CopyOnWriteStateMap.removeEntry has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14, boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/state/heap/CopyOnWriteStateMap.java"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"657354f836995ad697ceda18f584c4645d8267556199fdbfecc9bb057ccbdec2"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultOperatorStateBackendSnapshotStrategy.asyncSnapshot (cognitive 16): DefaultOperatorStateBackendSnapshotStrategy.asyncSnapshot has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, loops 4, ternaries 3, boolean chains 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/state/DefaultOperatorStateBackendSnapshotStrategy.java"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"4759cbcc02c7a3bb3d4c6a65bb84042f0ffd23d150b37642e0ca9e2f1224dfa3"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskExecutor.submitTask (cognitive 16): TaskExecutor.submitTask has cognitive complexity 16 (threshold 15). Drivers by points: error handling 8, if/else 6, ternaries 2. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/taskexecutor/TaskExecutor.java"},"region":{"startLine":663}}}],"partialFingerprints":{"codehealthFindingId/v1":"699f33597b5e66284371bda456ecc060d383507096b9b7b7edb46d8077d0f6b9"}},{"ruleId":"D2","level":"warning","message":{"text":"Task.notifyCheckpoint (cognitive 16): Task.notifyCheckpoint has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6, match/switch 5, error handling 4, boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/taskmanager/Task.java"},"region":{"startLine":1493}}}],"partialFingerprints":{"codehealthFindingId/v1":"72f2bb34efedf49478ecf9c0f6e35405e157d104acc022d1b03f9150577d2b27"}},{"ruleId":"D2","level":"warning","message":{"text":"JMXReporter.replaceInvalidChars (cognitive 16): JMXReporter.replaceInvalidChars has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, match/switch 2, loops 1, ternaries 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-metrics/flink-metrics-jmx/src/main/java/org/apache/flink/metrics/jmx/JMXReporter.java"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2cbe54d0ee6fd7730f8d9264d91dcc9d7e15eee276c83fd5fd866418d7295dc"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeS3RecoverableFsDataOutputStream.close (cognitive 16): NativeS3RecoverableFsDataOutputStream.close has cognitive complexity 16 (threshold 15). Drivers by points: error handling 8, if/else 7, boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-filesystems/flink-s3-fs-native/src/main/java/org/apache/flink/fs/s3native/writer/NativeS3RecoverableFsDataOutputStream.java"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"1510b3eda3cb6cb116e374404ad9122424d0d717f96a50adb0cbfb7f9f5b07da"}},{"ruleId":"D2","level":"warning","message":{"text":"MigrationTestsSnapshotGenerator.recursivelyFindMigrationTests (cognitive 16): MigrationTestsSnapshotGenerator.recursivelyFindMigrationTests has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11, error handling 4, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-test-utils-parent/flink-migration-test-utils/src/main/java/org/apache/flink/test/migration/MigrationTestsSnapshotGenerator.java"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"55ff70697902f0254675da6dfe31c9926565409b610a0a78a5a187ff5a1010ba"}},{"ruleId":"D2","level":"warning","message":{"text":"ConnectedComponentsData.getRandomOddEvenEdges (cognitive 16): ConnectedComponentsData.getRandomOddEvenEdges has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11, loops 2, ternaries 2, boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-test-utils-parent/flink-test-utils/src/main/java/org/apache/flink/test/testdata/ConnectedComponentsData.java"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"18d323c6db7f96fc2d5a83ce6dfab6b17473fae83da5cb41756af9656da979d8"}},{"ruleId":"D2","level":"warning","message":{"text":"AutoRescalingITCase.testCheckpointRescalingPartitionedOperatorState (cognitive 16): AutoRescalingITCase.testCheckpointRescalingPartitionedOperatorState has cognitive complexity 16 (threshold 15). Drivers by points: loops 9, if/else 4, ternaries 2, boolean chains 1 (nesting depth added 4). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-tests/src/test/java/org/apache/flink/test/checkpointing/AutoRescalingITCase.java"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca7d1fb45d9cd0c8351415c83daf86af0ca84910601fdf215119cd096ec43e70"}},{"ruleId":"D2","level":"warning","message":{"text":"StatefulMapper.map (cognitive 16): StatefulMapper.map has cognitive complexity 16 (threshold 15). Drivers by points: loops 9, if/else 7 (nesting depth added 7). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-tests/src/test/java/org/apache/flink/test/typeserializerupgrade/PojoSerializerUpgradeTest.java"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"77f32ea19a9fa33ab4812c881ca34009d3c76a407c6fd1292807f02f0f9e5610"}},{"ruleId":"D2","level":"warning","message":{"text":"AvroRowDeserializationSchema.convertToTimestamp (cognitive 16): AvroRowDeserializationSchema.convertToTimestamp has cognitive complexity 16 (threshold 15). Drivers by points: if/else 16 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/formats/avro/AvroRowDeserializationSchema.java"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3d49f50fcb3fa78192196350aff81f5cef6d394f4de6aa676f9d8051da4f32d"}},{"ruleId":"D2","level":"warning","message":{"text":"CsvRowSchemaConverter.convertType (cognitive 16): CsvRowSchemaConverter.convertType has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, loops 7, boolean chains 1 (nesting depth added 6). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-formats/flink-csv/src/main/java/org/apache/flink/formats/csv/CsvRowSchemaConverter.java"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"29d5af3234389097618e4da5d67fcb2d40f96b3145449361eb22a5273b59b3b5"}},{"ruleId":"D2","level":"warning","message":{"text":"ParquetVectorizedInputFormat.clipParquetSchema (cognitive 16): ParquetVectorizedInputFormat.clipParquetSchema has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, loops 6 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-formats/flink-parquet/src/main/java/org/apache/flink/formats/parquet/ParquetVectorizedInputFormat.java"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"d23696d57776a14100998b9eb614f15ae71d7e5f0e0800f99c55613cd9adec01"}},{"ruleId":"D2","level":"warning","message":{"text":"NFAFactoryCompiler.createSingletonState (cognitive 16): NFAFactoryCompiler.createSingletonState has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, ternaries 3, boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-libraries/flink-cep/src/main/java/org/apache/flink/cep/nfa/compiler/NFACompiler.java"},"region":{"startLine":712}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e7fda78062969d3dab69de3b745377e14ae39bc44e17d1167d7a843550f891e"}},{"ruleId":"D2","level":"warning","message":{"text":"NFA.advanceTime (cognitive 16): NFA.advanceTime has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9, ternaries 4, boolean chains 2, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-libraries/flink-cep/src/main/java/org/apache/flink/cep/nfa/NFA.java"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8b635ddc1f6b97762b289a2c120f67d52bae0118aac415889c3ef352c15767a"}},{"ruleId":"D2","level":"warning","message":{"text":"CachedDataInputStream.getStream (cognitive 16): CachedDataInputStream.getStream has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, error handling 3, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-state-backends/flink-statebackend-forst/src/main/java/org/apache/flink/state/forst/fs/cache/CachedDataInputStream.java"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f3c4c25e0b7414ef4720bdb9c4f0cf05c1e6599128d6f19bb6ebf780dcb794f"}},{"ruleId":"D2","level":"warning","message":{"text":"ForStIncrementalRestoreOperation.exportColumnFamilies (cognitive 16): ForStIncrementalRestoreOperation.exportColumnFamilies has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, loops 4, ternaries 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-state-backends/flink-statebackend-forst/src/main/java/org/apache/flink/state/forst/restore/ForStIncrementalRestoreOperation.java"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a60453d5b8191b9322acbadc59edc667c10761e76acf9647ffc4ed0835dc00a"}},{"ruleId":"D2","level":"warning","message":{"text":"ForStSyncAggregatingState.mergeNamespaces (cognitive 16): ForStSyncAggregatingState.mergeNamespaces has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14, boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-state-backends/flink-statebackend-forst/src/main/java/org/apache/flink/state/forst/sync/ForStSyncAggregatingState.java"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"758e970f6442a7443bffa370d0b010572f33aaaffb1a6a07e2d29e6d6cb7e773"}},{"ruleId":"D2","level":"warning","message":{"text":"ForStSyncReducingState.mergeNamespaces (cognitive 16): ForStSyncReducingState.mergeNamespaces has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14, boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-state-backends/flink-statebackend-forst/src/main/java/org/apache/flink/state/forst/sync/ForStSyncReducingState.java"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"50503f1c3fc0d9c0ac5991953899c5911a22cf130df0591a99b28ee8c512c2e1"}},{"ruleId":"D2","level":"warning","message":{"text":"EmbeddedRocksDBStateBackend.\u003Cinit\u003E (cognitive 16): EmbeddedRocksDBStateBackend.\u003Cinit\u003E has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, error handling 4, ternaries 3, boolean chains 1 (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-state-backends/flink-statebackend-rocksdb/src/main/java/org/apache/flink/state/rocksdb/EmbeddedRocksDBStateBackend.java"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc393baffc51a106e5f3e9298b3fea5e9e1b6fbfbb0a7729b82416336495d0bd"}},{"ruleId":"D2","level":"warning","message":{"text":"RocksDBAggregatingState.mergeNamespaces (cognitive 16): RocksDBAggregatingState.mergeNamespaces has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14, boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-state-backends/flink-statebackend-rocksdb/src/main/java/org/apache/flink/state/rocksdb/RocksDBAggregatingState.java"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5a65309a1c72f3f56517520d1612cc93f3e1cc7825b0eaf841c25b7b4ff002e"}},{"ruleId":"D2","level":"warning","message":{"text":"RocksDBReducingState.mergeNamespaces (cognitive 16): RocksDBReducingState.mergeNamespaces has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14, boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-state-backends/flink-statebackend-rocksdb/src/main/java/org/apache/flink/state/rocksdb/RocksDBReducingState.java"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"b85508d2b4e3c8d05c5e62332876a589266d2eea49b2a8fcf6a13a3ba8e97ef6"}},{"ruleId":"D2","level":"warning","message":{"text":"FlinkYarnSessionCli.toConfiguration (cognitive 16): FlinkYarnSessionCli.toConfiguration has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14, loops 2 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-yarn/src/main/java/org/apache/flink/yarn/cli/FlinkYarnSessionCli.java"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"112a72958c43198646b2378f5b4903cdd3e53743c911198aecaef490ca143968"}},{"ruleId":"D2","level":"warning","message":{"text":"SqlTypeUtil.convertTypeToSpec (cognitive 16): SqlTypeUtil.convertTypeToSpec has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9, ternaries 4, boolean chains 3 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql/type/SqlTypeUtil.java"},"region":{"startLine":1260}}}],"partialFingerprints":{"codehealthFindingId/v1":"88fdccbb744fd28be78a3d2fa5e92637b3b99d505f41767b2bbf693193ef244d"}},{"ruleId":"D2","level":"warning","message":{"text":"RexSimplify.simplifyAnd2 (cognitive 16): RexSimplify.simplifyAnd2 has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, loops 5, boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/rex/RexSimplify.java"},"region":{"startLine":1865}}}],"partialFingerprints":{"codehealthFindingId/v1":"319bd676a1e3fad6951ae0dddc580bc8c2b6abe7f3e33105eba88c97e3377b10"}},{"ruleId":"D2","level":"warning","message":{"text":"RexUtil.containNoNonTrivialAggs (cognitive 16): RexUtil.containNoNonTrivialAggs has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, loops 5, boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/rex/RexUtil.java"},"region":{"startLine":1081}}}],"partialFingerprints":{"codehealthFindingId/v1":"860719ed694b9f878c7f35279dfce7e100fb981929eef88e62eb2d47d8d2afee"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoveCorrelationRexShuttle.visitCall (cognitive 16): RemoveCorrelationRexShuttle.visitCall has cognitive complexity 16 (threshold 15). Drivers by points: if/else 15, boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql2rel/RelDecorrelator.java"},"region":{"startLine":2273}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dc93b9bec3511edd8a29d3e6062deca093d2103c91e6ee9ddb73c03196d683d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: validate/SqlValidatorImpl.java: FileTooLong \u2014 5444 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: SqlValidatorImpl (223-8494). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql/validate/SqlValidatorImpl.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0976512cd0fe3f16635e46c354a03e962573f5525a713a36b257e9e5ac9191e4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: sql2rel/SqlToRelConverter.java: FileTooLong \u2014 4410 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql2rel/SqlToRelConverter.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a834bfacd2cd495e80c3914aded4d277be7b3b510122932d72b6c398c25493c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BaseExpressions: TooManyMethods \u2014 254 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/api/internal/BaseExpressions.java"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"a36a650d5794f0cb29cc200b504d86215d0ebf7517cdce00fa205388b8dd9124"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: runtime/SqlFunctions.java: FileTooLong \u2014 3742 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: SqlFunctions (166-7434). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/runtime/SqlFunctions.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b7129f6d55d5be96aaf0c4e3fc931b6056e005ea1a37e0ae44be4e666c36257"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: functions/BuiltInFunctionDefinitions.java: FileTooLong \u2014 3086 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: BuiltInFunctionDefinitions (130-3523). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/functions/BuiltInFunctionDefinitions.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d2830376f91233e8df272dfae9940b3c7b7b89cec587ab37ab2653908c080cd"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BaseResultSet: TooManyMethods \u2014 147 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-sql-jdbc-driver/src/main/java/org/apache/flink/table/jdbc/BaseResultSet.java"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee00e2157692c4687207b2d6624dd056e269863a81994164d1c35b580c7c4b76"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: rex/RexSimplify.java: FileTooLong \u2014 2320 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/rex/RexSimplify.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e3da1acffb213ec5bd0efa946a33fc23065ffc256ae3e781f0e48894dcecda6"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SqlFunctionUtils: TooManyMethods \u2014 134 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/SqlFunctionUtils.java"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"1456eeda525a7370e34b510604c19c5d10d5acc3c70e63bd2dd460d3a6b0978c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: StreamGraph: TooManyMethods \u2014 129 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/graph/StreamGraph.java"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"e96dcf4a306ee7d78742701ce16ff89103c4565eeec8da60bcb7d3f382aa7e46"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: FlinkDatabaseMetaData: TooManyMethods \u2014 127 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-sql-jdbc-driver/src/main/java/org/apache/flink/table/jdbc/FlinkDatabaseMetaData.java"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa64f24b0774fd0202669a07a5c3ea793cc0994678a4bd3f80a160d4fe677863"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RexUtil: TooManyMethods \u2014 127 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/rex/RexUtil.java"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d10932cbb97e08e214be567dd0b9399c2d7083add589698f1141a798f8a5276"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TaskConfig: TooManyMethods \u2014 122 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/operators/util/TaskConfig.java"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"a249402cfef421aae2d20b2727e4963b9ccadcdbe3888b64da61f9fde0292a27"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: transform/XmlResponsesSaxParser.java: FileTooLong \u2014 2021 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-filesystems/flink-s3-fs-base/src/main/java/com/amazonaws/services/s3/model/transform/XmlResponsesSaxParser.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"50945c1dea01ab6272562749ce7a6fb595e39ccb114f1501ff565f3bcc61d676"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: taskexecutor/TaskExecutor.java: FileTooLong \u2014 2007 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: TaskExecutor (206-2897). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/taskexecutor/TaskExecutor.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c14a069dbbb8c7840759e8948467948964468ea1a6e18c4aa92c9f97e5c64f4e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: StreamExecutionEnvironment: TooManyMethods \u2014 118 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/environment/StreamExecutionEnvironment.java"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"4047f4a9bf1eb3b2dc856867687171b44b4655e477cf83e1111e21bde9ceaf1e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Dispatcher: TooManyMethods \u2014 117 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/dispatcher/Dispatcher.java"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"95c0b8ca3906b46ca2ba6fb32ba35b1b2fb3558873f94e64f634ef52d9980ff4"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DateTimeUtils: TooManyMethods \u2014 117 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/utils/DateTimeUtils.java"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"78f26781dad3eaf406e42c491fbca59fadfea8e1238f66314fd20cf7b3fe470b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: sql2rel/RelDecorrelator.java: FileTooLong \u2014 1950 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: RelDecorrelator (146-3600). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql2rel/RelDecorrelator.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"06df703895f620c7a6d8242055c38a4b31ba0a7bf91ac263f86ef56dfc5ad891"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TableEnvironmentImpl: TooManyMethods \u2014 116 methods. Most of these members implement api.TableEnvironment (58 of 81 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/api/internal/TableEnvironmentImpl.java"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"349f59f30ee47ece42afa307c25efea5f08120897d29ee3a3522b8d9436efef7"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DescriptorProperties: TooManyMethods \u2014 116 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/descriptors/DescriptorProperties.java"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8af527f2e3675a75c2594ffc9300b74883a70d33c4bfd7733ab2b11d688ac9b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RexBuilder: TooManyMethods \u2014 112 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/rex/RexBuilder.java"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"f744be456042da63f93f404ea06c240fdfe0832c05188519dc0f53d4497fbfd9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: dispatcher/Dispatcher.java: FileTooLong \u2014 1863 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: Dispatcher (169-2572). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/dispatcher/Dispatcher.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4165406b9421c25ca389db6c5b4eb390516140f12df36473d1e40e7e8384b18"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: rex/RexUtil.java: FileTooLong \u2014 1859 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: RexUtil (88-3535). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/rex/RexUtil.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a982f89eb224a1d40920e73a9837848aa7b14665a5ce7b95db9a5d7fd67b1e10"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DefaultExecutionGraph: TooManyMethods \u2014 108 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/executiongraph/DefaultExecutionGraph.java"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2b2f71b0906d5a12a9ec460e2afc44a7c83d866f597b535646dfd38ef873014"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: StreamTask: TooManyMethods \u2014 107 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/runtime/tasks/StreamTask.java"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"16f02f18495c8d401b423a6cbc2ffb5bc99eb8d2fda86f730e27ec321be0bbf9"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SqlTypeUtil: TooManyMethods \u2014 102 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql/type/SqlTypeUtil.java"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2d3d3ead58c72ce29ea4ea0c3cf8952d7c7a7800a4a1ca2e2da7edc0d52fd6b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CatalogManager: TooManyMethods \u2014 98 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/catalog/CatalogManager.java"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcc21d80f78f1746202d72104a1b3a14757075303573966a4b2cde837cd10fc1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: graph/StreamingJobGraphGenerator.java: FileTooLong \u2014 1628 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: StreamingJobGraphGenerator (127-2230). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/graph/StreamingJobGraphGenerator.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"31abca68918028b408dc0b654417bdb7267ca2afb100ea0c07d2a292507f3368"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Execution: TooManyMethods \u2014 95 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/executiongraph/Execution.java"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef4b04b9d3ede1456e1832639bc5b050227dacece394f62e66d2c8acb8cbdd8b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: typeutils/TypeExtractor.java: FileTooLong \u2014 1541 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: TypeExtractor (99-2516). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/java/typeutils/TypeExtractor.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"39eae551a091f23c38fd8d482811518e808eacb02048fbcaf97e9ab6ea9a2b0f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: catalog/CatalogManager.java: FileTooLong \u2014 1493 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/catalog/CatalogManager.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"43d8df56e0c2e74ef3cb7e41caa78e9c238ce7de7a38e306cb8788a9d7f83485"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: datastream/StreamProjection.java: FileTooLong \u2014 1487 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: StreamProjection (57-1787). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/datastream/StreamProjection.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"748330d6bc3cc3cea7f5b79e19ede9c1825ec4c2b354b528c6a098f363c8d716"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RexSimplify: TooManyMethods \u2014 89 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/rex/RexSimplify.java"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"add7de504adf4e291fa38bc5c223e0906706bbf7839054197371c60e5d70d9f4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: checkpoint/CheckpointCoordinator.java: FileTooLong \u2014 1457 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: CheckpointCoordinator (102-2479). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/CheckpointCoordinator.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7612487ea069d572e3282fbdcc06f859499ca438ee76375dc0ff6d822472bc1"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TaskExecutor: TooManyMethods \u2014 87 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/taskexecutor/TaskExecutor.java"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"46c0d00b0dbc487026b425b8a88c6fb11fcc05d0b73a77fe67676cc76e4b542f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: functions/ProcessTableFunctionTestHarness.java: FileTooLong \u2014 1418 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: ProcessTableFunctionTestHarness (108-2238). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-test-utils/src/main/java/org/apache/flink/table/runtime/functions/ProcessTableFunctionTestHarness.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dae58269228d6c9ddec110f983377cf87dc13acda7766c31ae8f266a4e382f7"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CheckpointCoordinator: TooManyMethods \u2014 85 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/CheckpointCoordinator.java"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"01809d86b5b257366f3af37147d18069a500fb9933845b213e2b954855282cd5"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Expressions: TooManyMethods \u2014 84 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/api/Expressions.java"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2220fb681faf4018abf97f2714b132084ec5c4a59d963e0b5ca985d3780a5e5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: tasks/StreamTask.java: FileTooLong \u2014 1391 significant lines (blank, comment-only and punctuation-only lines excluded), about 89% of them inside a single declaration: StreamTask (213-2274). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/runtime/tasks/StreamTask.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b292f33118ab02b6b1fa9e56da2b959d38572471e37dadaff50c1f39cb9d69a7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: utils/PythonTypeUtils.java: FileTooLong \u2014 1360 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: PythonTypeUtils (126-2012). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/streaming/api/utils/PythonTypeUtils.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9b4e93688ca397404b880d4cd57a1d0b8a36f66bada2696c9b433da98aba15b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: adaptive/AdaptiveScheduler.java: FileTooLong \u2014 1359 significant lines (blank, comment-only and punctuation-only lines excluded), about 89% of them inside a single declaration: AdaptiveScheduler (192-1858). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/scheduler/adaptive/AdaptiveScheduler.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"48a10872a7d117cc9ba1f0bd15e4b6343c55b5a39ac170445cfe78b1eec9beee"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: StreamConfig: TooManyMethods \u2014 81 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/graph/StreamConfig.java"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"04ab36b4687d2b0beaf2a97690ed472d67660b7a0f2c2538fa50facf0c918e03"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: yarn/YarnClusterDescriptor.java: FileTooLong \u2014 1330 significant lines (blank, comment-only and punctuation-only lines excluded), about 90% of them inside a single declaration: YarnClusterDescriptor (153-1932). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-yarn/src/main/java/org/apache/flink/yarn/YarnClusterDescriptor.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3802d04cd15866ad841594a0d71744340fd2e75fbd0e398c35d93cfb4a575b25"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AdaptiveScheduler: TooManyMethods \u2014 79 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/scheduler/adaptive/AdaptiveScheduler.java"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d66c55d78d074c15efe9a031601b8643f09ef933d566ea4da3ea0af0bf64f3a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: stats/TpcdsStatsProvider.java: FileTooLong \u2014 1273 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: TpcdsStatsProvider (37-1354). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee412075c48d79e7fcc7c34d023e4419b446cbcdc8c8fd78ca2a10aa72ea9bb6"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: NetworkBuffer: TooManyMethods \u2014 76 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/io/network/buffer/NetworkBuffer.java"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"412fb0da12076c413aeb3a45b6fb709f2ae17ee652bc73e189dab038d59986a7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: jobmaster/JobMaster.java: FileTooLong \u2014 1238 significant lines (blank, comment-only and punctuation-only lines excluded), about 90% of them inside a single declaration: JobMaster (155-1785). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/jobmaster/JobMaster.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6a26beff1d558ebeb77de51f2120909adfc7ead037b9ed9f078ad23564f953d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BinarySegmentUtils: TooManyMethods \u2014 74 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/data/binary/BinarySegmentUtils.java"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c04cfe82f8a710c19ce9e69482152164265020da602aa43a0af67e719d6600f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: utils/DateTimeUtils.java: FileTooLong \u2014 1218 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: DateTimeUtils (86-2042). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/utils/DateTimeUtils.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f90034f5b747d554cb741ae29c3b672d7a049055eb1835243b5e8d5427a1e80"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: rex/RexBuilder.java: FileTooLong \u2014 1217 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: RexBuilder (93-2231). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/rex/RexBuilder.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"74a9b1040d895440eef0ec956dffd96b2ea2874dcac59b83604fa24adf944d4c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: webmonitor/WebMonitorEndpoint.java: FileTooLong \u2014 1208 significant lines (blank, comment-only and punctuation-only lines excluded), about 83% of them inside a single declaration: WebMonitorEndpoint (229-1418). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/webmonitor/WebMonitorEndpoint.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7dd3702c8c9929bdcddcc1932a2c579c79f67e6d3008669dd2e9c0d17899130"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: JobMaster: TooManyMethods \u2014 72 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/jobmaster/JobMaster.java"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"609a26755597ed6200d654405152eb0819a5b636b98621e9cef9a2036c8b37a4"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SchedulerBase: TooManyMethods \u2014 72 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/scheduler/SchedulerBase.java"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"6602e01c8a780a72757fa0336309f5d862d6437606058ba68ddd0c0cf088fe7a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MemorySegment: TooManyMethods \u2014 71 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/core/memory/MemorySegment.java"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"3402648b0ce3bbce0fdc4ec792a9f1ee0206890513a47c716f7ade96b820142b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RemoteInputChannel: TooManyMethods \u2014 71 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/consumer/RemoteInputChannel.java"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"f235ee2e6e7bbfe0612a43427f8ee9257b292892ee91c4abebbe0e8692d4dccb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: internal/TableEnvironmentImpl.java: FileTooLong \u2014 1167 significant lines (blank, comment-only and punctuation-only lines excluded), about 89% of them inside a single declaration: TableEnvironmentImpl (157-1588). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/api/internal/TableEnvironmentImpl.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa876d36595c89c168d308e75673a183328e17751fa77e10dbecd72800f056ce"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TableImpl: TooManyMethods \u2014 70 methods. Most of these members implement api.Table (40 of 53 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/api/internal/TableImpl.java"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"45866e020ed9a59679ebf31822f70feb70b8b4f4e21f0ef1dc74048424f301c4"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TypeExtractor: TooManyMethods \u2014 69 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/java/typeutils/TypeExtractor.java"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"71304a926f959b6c4cf6d1f58979421520e3811fff397c7226603e22ab3f7d3e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: executiongraph/DefaultExecutionGraph.java: FileTooLong \u2014 1142 significant lines (blank, comment-only and punctuation-only lines excluded), about 90% of them inside a single declaration: DefaultExecutionGraph (135-1822). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/executiongraph/DefaultExecutionGraph.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae0354e39d18627d783420e5b02b5921ade91d0d1177ffb0715aac793e4c8745"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: materializedtable/MaterializedTableManager.java: FileTooLong \u2014 1140 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: MaterializedTableManager (123-1468). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-sql-gateway/src/main/java/org/apache/flink/table/gateway/service/materializedtable/MaterializedTableManager.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"31af078fe10a829519f3c9c6cd250496e2f85dee0e787b4b486ebf1c7c63bae8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: hash/MutableHashTable.java: FileTooLong \u2014 1139 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: MutableHashTable (88-2128). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/operators/hash/MutableHashTable.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cf02d15c714d59966bb349a10465009240a7d3c49ad7f3297cf5a4be152a09e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SingleInputGate: TooManyMethods \u2014 68 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/consumer/SingleInputGate.java"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd4a59e2b0f2c5cf12b11b908add064e96a025966f3e74bdb3b46d6a7c303322"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MiniCluster: TooManyMethods \u2014 68 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/minicluster/MiniCluster.java"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2612ef022980c4df662a322d932e0cdd8abb50bbd67024401d6a7f0ce9d915f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CopyOnWriteSkipListStateMap: TooManyMethods \u2014 68 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-state-backends/flink-statebackend-heap-spillable/src/main/java/org/apache/flink/runtime/state/heap/CopyOnWriteSkipListStateMap.java"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b45fde6d255c1d0fdb0d923f59041ec0b36a1d18b2e541f9336bb63ba2826fa"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: type/SqlTypeUtil.java: FileTooLong \u2014 1126 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql/type/SqlTypeUtil.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce75f4a6afaced3b3ded6946a722ac5e31b0c12e072456ff40f9a9085a988dfe"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: StreamNode: TooManyMethods \u2014 66 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/graph/StreamNode.java"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"55808f07e55abea147981e44ca6ff38105cca94df5b2bfcf7d082f79bd07139f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AbstractStreamOperator: TooManyMethods \u2014 66 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/AbstractStreamOperator.java"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"cef9cfbaaf62a5aa9a669987bd4d76106394051b6fd48c0e465236fc1f917b6d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: graph/StreamGraph.java: FileTooLong \u2014 1093 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: StreamGraph (127-1710). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/graph/StreamGraph.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cd1f70d3fe70eddc6fad34699a17501ac0be068c5bcb8148cc717d082d26bb0"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DataTypes: TooManyMethods \u2014 65 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/api/DataTypes.java"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"83adb38764f50d3d0072d0ec5bd9a02b2dbdd28d8328886459de2847d1963de3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: taskmanager/Task.java: FileTooLong \u2014 1082 significant lines (blank, comment-only and punctuation-only lines excluded), about 90% of them inside a single declaration: Task (146-1904). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/taskmanager/Task.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b40bd08fdd9492c25315905f1405995edcd861d6695f9b8a47bfe14fb68d72e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: resourcemanager/ResourceManager.java: FileTooLong \u2014 1075 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: ResourceManager (123-1616). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/resourcemanager/ResourceManager.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3b96c1f4a5ec0f1bfcf15068877b50f2ab77f3b5fcad41c6bcd694ebbfe87eb"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SegmentsUtil: TooManyMethods \u2014 64 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/util/SegmentsUtil.java"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"838370ae909ddfc99ec28f1c7e09c3922ea3df534511a81ef099490b89eef476"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: minicluster/MiniCluster.java: FileTooLong \u2014 1066 significant lines (blank, comment-only and punctuation-only lines excluded), about 87% of them inside a single declaration: MiniCluster (160-1651). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/minicluster/MiniCluster.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f32555ab3991be99e8810786382c92f31b10a45a297421798be808815d975fa9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: executiongraph/Execution.java: FileTooLong \u2014 1053 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: Execution (123-1865). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/executiongraph/Execution.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"46930bb488d969c2df48736dc9ef7c22ce759f2a0441b3312ec1037e64084149"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: sql/FlinkSqlOperatorTable.java: FileTooLong \u2014 1051 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: FlinkSqlOperatorTable (70-1293). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/functions/sql/FlinkSqlOperatorTable.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd05d9cdd3e7af71ec9649dfc1eebddbfbd408d08f814e15cef5823dda68427a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: StreamingJobGraphGenerator: TooManyMethods \u2014 63 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/graph/StreamingJobGraphGenerator.java"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c0c902b7256dc2214ce8dcaf37bcf999cfb1862cce13ef0ec959244a8933908"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: GenericInMemoryCatalog: TooManyMethods \u2014 63 methods. Most of these members implement catalog.Catalog (52 of 61 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/catalog/GenericInMemoryCatalog.java"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eda93faf5445b1cc29e3351dec29669a5a2ca01ea93e75678bc5150cf57c48b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: connectors/DynamicSinkUtils.java: FileTooLong \u2014 1035 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: DynamicSinkUtils (123-1402). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/connectors/DynamicSinkUtils.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"00aa4e41cc95d4a019e597eff4546217f3e4c5dbea7a6f77f30b9f827a4519e2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: util/DataFormatConverters.java: FileTooLong \u2014 1035 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: DataFormatConverters (111-1674). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/data/util/DataFormatConverters.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"45c5e1b81805e661da8b8a601963d96b7a709b0d148c105cc184c1ef5d651134"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RelDecorrelator: TooManyMethods \u2014 61 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql2rel/RelDecorrelator.java"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"087c0c65c6e3923260327ed32186e61fc6c9c338b54e059a6c1945d0efc2aae5"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DeltaJoinUtil: TooManyMethods \u2014 61 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/utils/DeltaJoinUtil.java"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6c26888a45ba58da3f1c6a9d5815c3fc442a4f49cc282980fa40803a8bbb457"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: factories/FactoryUtil.java: FileTooLong \u2014 1008 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: FactoryUtil (79-1575). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/factories/FactoryUtil.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"021857b3efd99c5851d217f1d3486bbce9aebdafc98fbbbcb64ab6d689bde3a9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: internal/BaseExpressions.java: FileTooLong \u2014 1004 significant lines (blank, comment-only and punctuation-only lines excluded), about 78% of them inside a single declaration: BaseExpressions (257-2958). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/api/internal/BaseExpressions.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"76dc24e3769b2d27c2cc4cc16c694374354c88b6c136b2e0ce4083f6093c6bac"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: types/Record.java: FileTooLong \u2014 999 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: Record (55-1851). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/Record.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"980eb6f6e729718a5a488a651094be34e29a371901811ae817cd7e5392c5a13e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: utils/DeltaJoinUtil.java: FileTooLong \u2014 986 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: DeltaJoinUtil (106-1525). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/utils/DeltaJoinUtil.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b64b67088d98b52755a1eb5d993dcc785aa6e58eb4e13c947d68a8acc0b6260"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ExecutionVertex: TooManyMethods \u2014 59 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/executiongraph/ExecutionVertex.java"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"e71d11d74ddc7dff3f7532dd3a6d98dfc220819477c74ffd6efe006f8735c5ec"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DataStream: TooManyMethods \u2014 59 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/datastream/DataStream.java"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4a62691ee98b1207b7f915346ddab9a6b8662befe03cc6e86d246ff4e44d512"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BlobServer: TooManyMethods \u2014 58 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/blob/BlobServer.java"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"d51a205b3021373936b187fbc6150683c1af4d1bcac3e33fff4d066ee7cc82fb"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ResourceManager: TooManyMethods \u2014 58 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/resourcemanager/ResourceManager.java"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a8a8c8a7ddaeef45bbce7c38f926c6e371b08c282e57be7a66467da6df95d8a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BinaryArrayData: TooManyMethods \u2014 58 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/data/binary/BinaryArrayData.java"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"7425cad9024d2d1aad66b4e1eec4e9da9f6488762d9f26d100a9b46dc801e845"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SqlIntervalQualifier: TooManyMethods \u2014 58 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql/SqlIntervalQualifier.java"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"d092132dfc2ad1c85785fc4a753c624749d2d43c091c551edffc6c3dd36ecc78"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: JobVertex: TooManyMethods \u2014 57 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/jobgraph/JobVertex.java"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"66e3fbaf522af87547ea08557fef413cbbd127e48f7aeca07fc359697d6bb894"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cli/CliFrontend.java: FileTooLong \u2014 947 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: CliFrontend (93-1509). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-clients/src/main/java/org/apache/flink/client/cli/CliFrontend.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5339bb0e9ff404650ea0d7f330856c2f2073ee19f230a924cc74fef1a5ee41e7"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ExecutionConfig: TooManyMethods \u2014 56 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/common/ExecutionConfig.java"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a3eab22e75ee6917ec7a62d85a7fee2e64361dd6c50c5b616a0694642b521e8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: descriptors/DescriptorProperties.java: FileTooLong \u2014 931 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: DescriptorProperties (85-1712). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/descriptors/DescriptorProperties.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddc5e0e0d41ccb0fa3fac434b6efbd2f1ddb76220691657cd02682b8804f2822"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: stream/StreamExecDeltaJoin.java: FileTooLong \u2014 927 significant lines (blank, comment-only and punctuation-only lines excluded), about 89% of them inside a single declaration: StreamExecDeltaJoin (204-1200). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/stream/StreamExecDeltaJoin.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a841f92f7be1ca9d1421199c34988296ba7b27e338656efb1e64ee55306d6eed"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Task: TooManyMethods \u2014 55 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/taskmanager/Task.java"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"3afa05f4da9f9e892a4f0ba0ef631d69621864f230f8d2d380c7bb6e46fe9a22"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: operators/BatchTask.java: FileTooLong \u2014 912 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: BatchTask (86-1643). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/operators/BatchTask.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"66165cf63e98385505b495f29d52edba8f4dba35f2124bdf06f35829a6e08943"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: rest/RestClusterClient.java: FileTooLong \u2014 901 significant lines (blank, comment-only and punctuation-only lines excluded), about 84% of them inside a single declaration: RestClusterClient (173-1208). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-clients/src/main/java/org/apache/flink/client/program/rest/RestClusterClient.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"be477957e7dd4108bf64ecb81fa421736c57c2d11a30d12a9f5b1f309276e957"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RestClusterClient: TooManyMethods \u2014 54 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-clients/src/main/java/org/apache/flink/client/program/rest/RestClusterClient.java"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"7327ebeed0c8a3f8e6ff9f28b9b7239ed92935f3f95e9f8dd9f6e11108eb7662"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BaseDatabaseMetaData: TooManyMethods \u2014 54 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-sql-jdbc-driver/src/main/java/org/apache/flink/table/jdbc/BaseDatabaseMetaData.java"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"73bd12b57620231cb2ff762b72cb1317292283cfcfacefe34765ea2f616b208f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: environment/StreamExecutionEnvironment.java: FileTooLong \u2014 892 significant lines (blank, comment-only and punctuation-only lines excluded), about 88% of them inside a single declaration: StreamExecutionEnvironment (142-2524). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/environment/StreamExecutionEnvironment.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9481d160d081a80e52246c8c34c7ef283260405646fe25fd078223a8b198a17c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: JobGraph: TooManyMethods \u2014 53 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/jobgraph/JobGraph.java"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"c667fc5a3381cdda7f0e2667eb70513089bfac085c3904168680413a0d74fe3e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: FlinkResultSet: TooManyMethods \u2014 53 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-sql-jdbc-driver/src/main/java/org/apache/flink/table/jdbc/FlinkResultSet.java"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2bf4bdc058b3de96fc5d504d0a1d725f502d12cc4661600381be8270148877f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TestFileSystemCatalog: TooManyMethods \u2014 53 methods. Most of these members implement catalog.Catalog (39 of 51 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-test-utils-parent/flink-table-filesystem-test-utils/src/main/java/org/apache/flink/table/file/testutils/catalog/TestFileSystemCatalog.java"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"51c584b3ba2799bed419c5cd4ae40fee11e83a5f1d262875cb72dc9125d9dac6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: config/ExecutionConfigOptions.java: FileTooLong \u2014 876 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: ExecutionConfigOptions (42-1147). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/api/config/ExecutionConfigOptions.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"826a4495a4bb51a0c25e16c9d445fe83f00a4c3022b0e6e7fab03d6e84a6cec3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: hash/CompactingHashTable.java: FileTooLong \u2014 875 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: CompactingHashTable (54-1514). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/operators/hash/CompactingHashTable.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"65805b6124888d36ed7098b7889aceabb47f9c6caab58c37990a07d1ebdffd0b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: YarnClusterDescriptor: TooManyMethods \u2014 52 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-yarn/src/main/java/org/apache/flink/yarn/YarnClusterDescriptor.java"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"18b340b3869a31bd2200e7ebaea8434c2258636769b61aeb77b8201de2c94e9a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: logical/SubQueryDecorrelator.java: FileTooLong \u2014 858 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: SubQueryDecorrelator (104-1506). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/rules/logical/SubQueryDecorrelator.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"960c1e3ab45ecc538e9fc09317c78c7d09b85dd8e06d8c1889253683dbc9b529"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LateralSnapshotJoinOperator: TooManyMethods \u2014 51 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/snapshot/LateralSnapshotJoinOperator.java"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f86a22de5720d0db74934639d4af3af9346d77443a93545c7db0e6b87b041e2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: consumer/SingleInputGate.java: FileTooLong \u2014 842 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: SingleInputGate (128-1415). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/consumer/SingleInputGate.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e03924df3ddb5af1dd9a35665c187f6f95e852139a567776d3799fdc19e18f17"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: changelog/ChangelogKeyedStateBackend.java: FileTooLong \u2014 839 significant lines (blank, comment-only and punctuation-only lines excluded), about 90% of them inside a single declaration: ChangelogKeyedStateBackend (114-1200). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-state-backends/flink-statebackend-changelog/src/main/java/org/apache/flink/state/changelog/ChangelogKeyedStateBackend.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"87acd7d78fb5001744a871e547ee2578399f6714dc3dfe633481148dfc9f9aeb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: heap/CopyOnWriteSkipListStateMap.java: FileTooLong \u2014 834 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: CopyOnWriteSkipListStateMap (70-1588). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-state-backends/flink-statebackend-heap-spillable/src/main/java/org/apache/flink/runtime/state/heap/CopyOnWriteSkipListStateMap.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cde52e541e7ee9f3a2a19394b0c76e2175b397c446b708444e817d382c1f1aab"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PipelinedSubpartition: TooManyMethods \u2014 50 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/PipelinedSubpartition.java"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1f00ad025ba2e201e91dc7a1945ca252f0a1352c1a426466a0b3433c75669b3"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BatchTask: TooManyMethods \u2014 50 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/operators/BatchTask.java"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a39fb84aa516538e262bd73192d10ae98bb6a2fec25dc21235db9182363c42f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SourceCoordinatorContext: TooManyMethods \u2014 50 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/source/coordinator/SourceCoordinatorContext.java"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"21b63af688011217e655a1fb7e241c4c650e45dacc676b971c0ab772b4a29ce6"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MaterializedTableManager: TooManyMethods \u2014 50 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-sql-gateway/src/main/java/org/apache/flink/table/gateway/service/materializedtable/MaterializedTableManager.java"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"51524dce7dbcda695dbbea0f6aa67ca2f9d791a959e4ff16ebc73937cfd50605"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BinaryStringData: TooManyMethods \u2014 50 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/data/binary/BinaryStringData.java"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"11a8a2d8d8f70666ad0a2935a7c3943c55142b5383db8fd5193de35df959d5e1"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LocalBufferPool: TooManyMethods \u2014 49 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/io/network/buffer/LocalBufferPool.java"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"d837c9e9dfdaad4589f2527ffb158e448ef2b56c9547609c4ec4e4ec61f0f0de"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BinaryRowData: TooManyMethods \u2014 49 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/data/binary/BinaryRowData.java"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"064913ff450be3dd1cf099d6602d5b89c0ced02c0a24ee74f02ad4f51c3a3699"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: sql/SqlIntervalQualifier.java: FileTooLong \u2014 810 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: SqlIntervalQualifier (53-1342). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql/SqlIntervalQualifier.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4c847cd556c08be66c7dc2c7e309ba13828cb1413cef98a45ea7d668f38c520"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: optimize/StreamNonDeterministicUpdatePlanVisitor.java: FileTooLong \u2014 808 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/optimize/StreamNonDeterministicUpdatePlanVisitor.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"02487cbebe362653dbefbb0d4a2108570cc5811769e33466505a63cde1b492bc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: operation/OperationExecutor.java: FileTooLong \u2014 801 significant lines (blank, comment-only and punctuation-only lines excluded), about 83% of them inside a single declaration: OperationExecutor (166-1025). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-sql-gateway/src/main/java/org/apache/flink/table/gateway/service/operation/OperationExecutor.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e288da3751939f728076e9ae60cf74c3e1323bdf53a8f75c5ab222c08c9abc8a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: OperatorChain: TooManyMethods \u2014 48 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/runtime/tasks/OperatorChain.java"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cd1c3dc154ab823ad32e7a096bfd657b6afccc78ab2e996949829ab7532ca83"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LongHashPartition: TooManyMethods \u2014 48 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/hashtable/LongHashPartition.java"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"df3e04e9dc6fe36ab9324d8b160726762fdc791136a52f8bb55c11bfbff51188"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: scheduler/SchedulerBase.java: FileTooLong \u2014 798 significant lines (blank, comment-only and punctuation-only lines excluded), about 85% of them inside a single declaration: SchedulerBase (144-1208). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/scheduler/SchedulerBase.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"82c0d7f51515856ccb391327a4fec8d360d3c22505116e22586f5e0bc95adab3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: util/TaskConfig.java: FileTooLong \u2014 790 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: TaskConfig (57-1319). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/operators/util/TaskConfig.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0b804dade8eea0ab37bc833203fa8ba4c95deed43492f2afcc0802015524468"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CliFrontend: TooManyMethods \u2014 47 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-clients/src/main/java/org/apache/flink/client/cli/CliFrontend.java"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c0fbd82852b395512c13f560cd5e3d0e669210e479bec506fa04c9d1d836155"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Transformation: TooManyMethods \u2014 47 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/dag/Transformation.java"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"b51280350492a98eb8ec3a5c7c2d6b04ace0634004ec62a99df4651bee1b069e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: StringValue: TooManyMethods \u2014 47 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/StringValue.java"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"49108178e1461daa693a6773624866c9b2838fd64aae1f749d375609bc7473dc"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: FutureUtils: TooManyMethods \u2014 47 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/util/concurrent/FutureUtils.java"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bc8d22636c44d6d09aa864d50bf670ebbfb278dd720946705fe0505f3adcc14"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: adaptivebatch/AdaptiveBatchScheduler.java: FileTooLong \u2014 783 significant lines (blank, comment-only and punctuation-only lines excluded), about 89% of them inside a single declaration: AdaptiveBatchScheduler (118-1156). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/scheduler/adaptivebatch/AdaptiveBatchScheduler.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d0706bcf9eeb76c5031bf0a14d2e6cffdc3ff510a9075a68f37f78819cab08e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: rocksdb/RocksDBKeyedStateBackend.java: FileTooLong \u2014 778 significant lines (blank, comment-only and punctuation-only lines excluded), about 88% of them inside a single declaration: RocksDBKeyedStateBackend (126-1151). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-state-backends/flink-statebackend-rocksdb/src/main/java/org/apache/flink/state/rocksdb/RocksDBKeyedStateBackend.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f2bc75ec30337d75c4ed2bc3424e97e769edeebd0bc50f5e24be830387af359"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ExtractionUtils: TooManyMethods \u2014 46 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/extraction/ExtractionUtils.java"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab5521e330b3b0b476b7411e22878c6198b4cd4b1ab78857e36699e0a6e61f5c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SqlNodeToOperationConversion: TooManyMethods \u2014 46 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/operations/SqlNodeToOperationConversion.java"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"f349e70c6c3be4ab3fd595ed9ac01caa398747bfaba28c371be2e315db8c85fd"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ProcessTableFunctionTestHarness: TooManyMethods \u2014 46 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-test-utils/src/main/java/org/apache/flink/table/runtime/functions/ProcessTableFunctionTestHarness.java"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"d060e30bd56c7e1d1945e66d852845b95b9d6bb7f0e600f2b4cf714a9f10c746"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: plan/QueryOperationConverter.java: FileTooLong \u2014 756 significant lines (blank, comment-only and punctuation-only lines excluded), about 85% of them inside a single declaration: QueryOperationConverter (145-959). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/QueryOperationConverter.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fd00b2f35a58e9d5ee35f2bd554f858469550f16abebec7751a7cbb28887518"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: datastream/AllWindowedStream.java: FileTooLong \u2014 754 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: AllWindowedStream (88-1364). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/datastream/AllWindowedStream.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4ce96ec0b153a018febbef070807c804e95e375370b0f096102fdeeb1538f8b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Pattern: TooManyMethods \u2014 45 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-libraries/flink-cep/src/main/java/org/apache/flink/cep/pattern/Pattern.java"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e579440732c48c6ff3906e4cdc9de66b162012941a2525ae2db315a1a5fd8e6"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AbstractStreamOperatorV2: TooManyMethods \u2014 45 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/AbstractStreamOperatorV2.java"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ea04000f0af8159fc219ef27bbfe38ff9cf8f0b2c80683da18a22e33e3a7ccf"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SourceOperator: TooManyMethods \u2014 45 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/SourceOperator.java"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba2ffdab9b49c01cd9fb1af9dcf4afc4ee121ea4b4a379119d26f0a9ad83185b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ChangelogKeyedStateBackend: TooManyMethods \u2014 45 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-state-backends/flink-statebackend-changelog/src/main/java/org/apache/flink/state/changelog/ChangelogKeyedStateBackend.java"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c5ec31b8001e51019a557a5c449f798127db33687a23a580e8b58d0ce26ec0e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SkipListUtils: TooManyMethods \u2014 45 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-state-backends/flink-statebackend-heap-spillable/src/main/java/org/apache/flink/runtime/state/heap/SkipListUtils.java"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"400991c47e848b6175254f295ddc58aa56a5f1a8f897dac8036ce18e4e055208"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: consumer/RemoteInputChannel.java: FileTooLong \u2014 742 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: RemoteInputChannel (79-1307). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/consumer/RemoteInputChannel.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c334d15845ac8a5028942d45891a7a99799b52422c37dfdfaf160ba4d4f5e22b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: FineGrainedSlotManager: TooManyMethods \u2014 44 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/resourcemanager/slotmanager/FineGrainedSlotManager.java"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"40a0c94014b7c5664f6575afc9596a3828a8d1e115ffd1df9db6b63cc9f53cc6"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RuntimeEnvironment: TooManyMethods \u2014 44 methods. Most of these members implement execution.Environment (42 of 43 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/taskmanager/RuntimeEnvironment.java"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6fd74f311add8a31475a2c568acba9db4af890bb7045b02ef5f77f98ba3cf57"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CheckpointConfig: TooManyMethods \u2014 44 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/environment/CheckpointConfig.java"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"faa7d1dd867e30eeb11ae59522156f5600ce2a53f19c307b10e87ff6c5f682ba"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CliView: TooManyMethods \u2014 44 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-sql-client/src/main/java/org/apache/flink/table/client/cli/CliView.java"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"78d84d71416e3ff5e1bfde8898d1994f25bb3503d5aac254c583a088f4cdb283"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: rules/AggregateReduceFunctionsRule.java: FileTooLong \u2014 732 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: AggregateReduceFunctionsRule (97-1051). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/rel/rules/AggregateReduceFunctionsRule.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"33f488c704fbfbb4e6ab437c8cd239db29da75258b5ecc4974640222c6eca39c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: blob/BlobServer.java: FileTooLong \u2014 723 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: BlobServer (88-1429). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/blob/BlobServer.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aba67b2028454a0f724a5d5888a92a16d1d41496ee02c0089da883f173ee2c7e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: utils/LogicalTypeParser.java: FileTooLong \u2014 720 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: LogicalTypeParser (100-996). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/logical/utils/LogicalTypeParser.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"28cd69e304a0a481aeea06e92f5fcd01b8323b2945f1701237367e19ceca0873"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AbstractAsyncKeyOrderedStreamOperator: TooManyMethods \u2014 43 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/asyncprocessing/operators/AbstractAsyncKeyOrderedStreamOperator.java"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"0302b1dd91d9787fa821b7faf2e22b925789acf5b400fb3a01e95423e1dfc910"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ExecutionJobVertex: TooManyMethods \u2014 43 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/executiongraph/ExecutionJobVertex.java"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a879d4016836fabee93a878abd8bf6c026596767a9e9105e7913bb66a394f85"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ZooKeeperUtils: TooManyMethods \u2014 43 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/util/ZooKeeperUtils.java"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"878f2c45e8b9454ce0afddf4759f34477535021aa9fa0f0892482fb03a94ba5b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CatalogPropertiesUtil: TooManyMethods \u2014 43 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/catalog/CatalogPropertiesUtil.java"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcc2937c786fcaf257e191e5e85995691ec5c270a44f1dbe0b075a0b413219eb"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SqlJsonUtils: TooManyMethods \u2014 43 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/SqlJsonUtils.java"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e0f21587f77d9ee0fed4ed02bfa2ec68366012eb95f7b75b7bc0cdcd3273d15"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: s3native/S3ClientProvider.java: FileTooLong \u2014 705 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: S3ClientProvider (78-991). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-filesystems/flink-s3-fs-native/src/main/java/org/apache/flink/fs/s3native/S3ClientProvider.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"56f0507dc43aa1998d73921cb9866107dccf6b90277c343220b3da8b57f273c8"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PojoSerializer: TooManyMethods \u2014 42 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/java/typeutils/runtime/PojoSerializer.java"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"48b16d3a6d4e1facb4357520da74485a8d5d3b7db808768b781db1e6acf5b675"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ConfigurationUtils: TooManyMethods \u2014 42 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/configuration/ConfigurationUtils.java"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"a06c9d91dab5b70aeaed178552fef5467d66787a63587c7c9a29d8c40ff8902e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Record: TooManyMethods \u2014 42 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/Record.java"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa74540aeca8eb1c1737a5b45b0d671791a040ba7aec527774590c91aecc6a70"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WindowedStream: TooManyMethods \u2014 42 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/datastream/WindowedStream.java"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d35f90e25f47ad72c35d551257edef9e0be41c4288142b37a43093943f7c6ff"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: OperationExecutor: TooManyMethods \u2014 42 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-sql-gateway/src/main/java/org/apache/flink/table/gateway/service/operation/OperationExecutor.java"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c246ef3fc92cb29af3b7bdb24864490d59152fa7c1482026b05b78423ccb40b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: OperationTreeBuilder: TooManyMethods \u2014 42 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/utils/OperationTreeBuilder.java"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"3380bd4bc869a4e742f7428d647b27e1eb31170c214f8dce9dc226834ba0374a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Blackboard: TooManyMethods \u2014 42 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql2rel/SqlToRelConverter.java"},"region":{"startLine":5474}}}],"partialFingerprints":{"codehealthFindingId/v1":"88510f899d17a25a132033fcbd5cff645b14d6784ec2594cccded13f248733e0"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BinaryStringDataUtil: TooManyMethods \u2014 42 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/data/binary/BinaryStringDataUtil.java"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c23bd83d05d03a7d2b0cca8b8ef789e204c186d1737db7cf1d1238e96298c43"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: metadata/MetadataV2V3SerializerBase.java: FileTooLong \u2014 694 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: MetadataV2V3SerializerBase (108-1055). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/metadata/MetadataV2V3SerializerBase.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6755b09208f8ea2e86a2222c70e677e3d3e8e2ca23b4cf1738ce85aed6f9d70"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: extraction/ExtractionUtils.java: FileTooLong \u2014 691 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: ExtractionUtils (78-1316). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/extraction/ExtractionUtils.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"58e3d357ecb661db3eef364eae70dd99994643ccd4aa8576905ee2668456a9ec"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: restore/ForStIncrementalRestoreOperation.java: FileTooLong \u2014 690 significant lines (blank, comment-only and punctuation-only lines excluded), about 89% of them inside a single declaration: ForStIncrementalRestoreOperation (99-1043). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-state-backends/flink-statebackend-forst/src/main/java/org/apache/flink/state/forst/restore/ForStIncrementalRestoreOperation.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f36924e0771730d1b349ee77e671e02df9b0ff25a15a36fce1dfb4af60db2f83"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: calcite/RelTimeIndicatorConverter.java: FileTooLong \u2014 690 significant lines (blank, comment-only and punctuation-only lines excluded), about 88% of them inside a single declaration: RelTimeIndicatorConverter (112-932). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/calcite/RelTimeIndicatorConverter.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"379729db5c6282ab0e463b6cf6473dce5e8f386d52d93d26d6b7c9da97b1c7e1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: configuration/JobManagerOptions.java: FileTooLong \u2014 686 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: JobManagerOptions (41-912). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/configuration/JobManagerOptions.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3d0f4b89e8cb60b351b86726e84e203b04224f64208e2a97d086e862c8ee107"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AdaptiveBatchScheduler: TooManyMethods \u2014 41 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/scheduler/adaptivebatch/AdaptiveBatchScheduler.java"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf1d4976262d5204cf5ab9b8b361f92e7f15128c30475e2442e24a6cd4ea5be1"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: KeyedStream: TooManyMethods \u2014 41 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/datastream/KeyedStream.java"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"50c801f98864858fb12ae7cffebdea99bdda3bfa754af727e388065cdd5c7bd8"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TokenParser: TooManyMethods \u2014 41 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/logical/utils/LogicalTypeParser.java"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb4aef83ae255900ae231810df55a8ccf649922deefee74e86e96e4d74861636"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: utils/OperationTreeBuilder.java: FileTooLong \u2014 683 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: OperationTreeBuilder (84-963). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/utils/OperationTreeBuilder.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f85dc8324d6479833420519a4f460064cd0c144bceeea0c5d3167d58e12d776d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: arrow/ArrowUtils.java: FileTooLong \u2014 682 significant lines (blank, comment-only and punctuation-only lines excluded), about 79% of them inside a single declaration: ArrowUtils (169-877). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/table/runtime/arrow/ArrowUtils.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"71f63d8fe52253128084e23aa6181c34f2c4da47ee38365ba3c7b334f2f4df22"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cli/FlinkYarnSessionCli.java: FileTooLong \u2014 681 significant lines (blank, comment-only and punctuation-only lines excluded), about 90% of them inside a single declaration: FlinkYarnSessionCli (91-977). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-yarn/src/main/java/org/apache/flink/yarn/cli/FlinkYarnSessionCli.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"513890dfadb95577e5feb499f29c48352a5de860ffe90e6c92a3342a84841fac"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: tasks/OperatorChain.java: FileTooLong \u2014 676 significant lines (blank, comment-only and punctuation-only lines excluded), about 89% of them inside a single declaration: OperatorChain (111-1038). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/runtime/tasks/OperatorChain.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"46364ada5db128c696407b81806bbe7dd943fa57cadfbe36a050727d762c4552"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: rest/RestClient.java: FileTooLong \u2014 675 significant lines (blank, comment-only and punctuation-only lines excluded), about 86% of them inside a single declaration: RestClient (124-908). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/rest/RestClient.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3b5d03d2057f80fe5a264ca064b3a3597576b83451ed991c42bbaa68fa5217a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BinaryVariant: TooManyMethods \u2014 40 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/variant/BinaryVariant.java"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"38088b47d8fc25e31703eb128b856dbf7c5b193863ff5df91fe873ed78a1cfdb"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Builder: TooManyMethods \u2014 40 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-filesystems/flink-s3-fs-native/src/main/java/org/apache/flink/fs/s3native/S3ClientProvider.java"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"82b88a0dae895911e67f8db3ce5aaa82f115b0df9848306a9079a2790f85f49c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: FileMergingSnapshotManagerBase: TooManyMethods \u2014 40 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/filemerging/FileMergingSnapshotManagerBase.java"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"250ad9e79776b9e17016e7dcec9732ca1821ffeb41ba69ea5be115ca95cf74c5"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ResultPartition: TooManyMethods \u2014 40 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/ResultPartition.java"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"1441fb00442e580f4df7894b0fa7a6030c1e44e7fc988aeb349eaf075fe62475"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AllWindowedStream: TooManyMethods \u2014 40 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/datastream/AllWindowedStream.java"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c129996abf4658ee8790624c5980c7ad22232893b128e29f0e4dd60f54da677"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: NestedRowData: TooManyMethods \u2014 40 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/data/binary/NestedRowData.java"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5970f9bce46608df6abd63cbe84d0ee4f5440bcfe16e35c40c80ec5e7a865bd"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: functions/SqlFunctionUtils.java: FileTooLong \u2014 662 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: SqlFunctionUtils (66-1269). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/SqlFunctionUtils.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aa0961f82aec9f765ae41325fa696a5af1327fca64a0e706ea2e65d651b0f56"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: NFAFactoryCompiler: TooManyMethods \u2014 39 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-libraries/flink-cep/src/main/java/org/apache/flink/cep/nfa/compiler/NFACompiler.java"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a9b260ec8316cdc7057794f7989023b94fcb3c570511c062b2c8775e93ab3d6"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MutableHashTable: TooManyMethods \u2014 39 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/operators/hash/MutableHashTable.java"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3b82611dec7e6f0f57a570ba72857f0f23a65814ea6a533a99452f70d460519"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: EmbeddedRocksDBStateBackend: TooManyMethods \u2014 39 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-state-backends/flink-statebackend-rocksdb/src/main/java/org/apache/flink/state/rocksdb/EmbeddedRocksDBStateBackend.java"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbfb262efafda31c2d6abddc7c5ad999f8f6443d29a8e77a005807052565ac86"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MaterializedTableChangeHandler: TooManyMethods \u2014 39 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/materializedtable/MaterializedTableChangeHandler.java"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"657528b47ae26fc46dd8a88f2653002fb26f41da693e63e1bacb5fb48810708a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: StreamNonDeterministicUpdatePlanVisitor: TooManyMethods \u2014 39 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/optimize/StreamNonDeterministicUpdatePlanVisitor.java"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"d57d0b408c2e7b49c1a6df4217a0d0d4c42dac044702bf7583ed103b2662f91a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: catalog/GenericInMemoryCatalog.java: FileTooLong \u2014 649 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: GenericInMemoryCatalog (57-982). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/catalog/GenericInMemoryCatalog.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec95776d6ef120fff0ca98debcb4d70a43e5cdcdd1194eed9cf2b5b839d3413d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: internal/TableImpl.java: FileTooLong \u2014 647 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: TableImpl (80-986). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/api/internal/TableImpl.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fcbde96ba8feb1554d488da773d7a56b909331471a73f5b5815e51da39e0f28"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: binary/BinarySegmentUtils.java: FileTooLong \u2014 646 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: BinarySegmentUtils (45-1202). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/data/binary/BinarySegmentUtils.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa4b2bbedab809f39035fc70f7cd9301be7d9879eae04424b7070c037cf92eaf"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: rules/SubQueryRemoveRule.java: FileTooLong \u2014 644 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: SubQueryRemoveRule (66-1179). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/rel/rules/SubQueryRemoveRule.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a53fb9a2a9125ff1db5005eff9aa0023c44378cabb835d14f81855736a5ad67e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: operators/SourceOperator.java: FileTooLong \u2014 643 significant lines (blank, comment-only and punctuation-only lines excluded), about 89% of them inside a single declaration: SourceOperator (107-985). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/SourceOperator.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9714561c0e1f7b568f629e79e27824b6586117459d346537dfc2f716329bc2b2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: sort/BinaryExternalSorter.java: FileTooLong \u2014 643 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: BinaryExternalSorter (68-1184). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/sort/BinaryExternalSorter.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa5dcff21ac3f51bfd7946a01f49e4d1777b7076f471fa334380626fcda5d344"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: sync/ForStSyncKeyedStateBackend.java: FileTooLong \u2014 639 significant lines (blank, comment-only and punctuation-only lines excluded), about 87% of them inside a single declaration: ForStSyncKeyedStateBackend (118-965). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-state-backends/flink-statebackend-forst/src/main/java/org/apache/flink/state/forst/sync/ForStSyncKeyedStateBackend.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a94dfaa8fdefc965ec8b49ba3e1eb60b6a518684650977c458fca414896e267"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: netty/NettyMessage.java: FileTooLong \u2014 637 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: NettyMessage (67-1057). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/io/network/netty/NettyMessage.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0349d1898430d4c4d02a75082df59412e1bd0c6883dce5b13772e73c481d01d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: FileInputFormat: TooManyMethods \u2014 38 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/common/io/FileInputFormat.java"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b3e8e1c4842eb9d05c0c39db0cddec1c189dc3d57b74cdd3fa33045f2d10549"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ExceptionUtils: TooManyMethods \u2014 38 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/util/ExceptionUtils.java"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"79675a0a4c6323ef3a9e7e9113e070d2312c051ae870000af6548a60bb4659f0"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SavepointEnvironment: TooManyMethods \u2014 38 methods. Most of these members implement execution.Environment (36 of 37 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-libraries/flink-state-processing-api/src/main/java/org/apache/flink/state/api/runtime/SavepointEnvironment.java"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"94cd1c7c417a15d8721912a16b55c7b12d83ffd33311b1928b7f90da9e72d74d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LocalInputChannel: TooManyMethods \u2014 38 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/consumer/LocalInputChannel.java"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"136fce6dac6e7b25529813552d4d3fe559836185fed4d749350506d3693544d7"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DeclarativeSlotPoolBridge: TooManyMethods \u2014 38 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/jobmaster/slotpool/DeclarativeSlotPoolBridge.java"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"21d4992e87de1a7e78f6c3d897def8872947489038370cc238742a0b7015c6ee"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DefaultDeclarativeSlotPool: TooManyMethods \u2014 38 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/jobmaster/slotpool/DefaultDeclarativeSlotPool.java"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"afd0045025317c00befabc90efa85ebdc483e05c661743e0a027655dd93566f4"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ForStNativeMetricOptions: TooManyMethods \u2014 38 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-state-backends/flink-statebackend-forst/src/main/java/org/apache/flink/state/forst/ForStNativeMetricOptions.java"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"3476b996a4434854eebcc966bfd7dde9c9e889e62eaaca47cd969e4c7b7dceb9"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RocksDBKeyedStateBackend: TooManyMethods \u2014 38 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-state-backends/flink-statebackend-rocksdb/src/main/java/org/apache/flink/state/rocksdb/RocksDBKeyedStateBackend.java"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"62d9d57d7768c4515cbd5cd1eb75ca608714938d998fcda133104030ab6df4cc"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RocksDBNativeMetricOptions: TooManyMethods \u2014 38 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-state-backends/flink-statebackend-rocksdb/src/main/java/org/apache/flink/state/rocksdb/RocksDBNativeMetricOptions.java"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4060064fbe05412c3af12c46d7492a70116404de71ba6612dd29850f7ac9ed2"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ColumnarArrayData: TooManyMethods \u2014 38 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/data/columnar/ColumnarArrayData.java"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"c98f0a1f6fe66534428913dee1ead6f0538c740b7c9384644de0e14872afdb19"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ColumnarRowData: TooManyMethods \u2014 38 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/data/columnar/ColumnarRowData.java"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef6bf895592d6e2958d1276a32ecfbbfc5d5540cde113968eff18aa04e945a66"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DynamicSinkUtils: TooManyMethods \u2014 38 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/connectors/DynamicSinkUtils.java"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b0692b882ce08fe09eb68d2e38844d441238a3d8a3864567f1811ffe5743f7a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ManuallyTriggeredScheduledExecutorService: TooManyMethods \u2014 38 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-test-utils-parent/flink-test-utils-junit/src/main/java/org/apache/flink/core/testutils/ManuallyTriggeredScheduledExecutorService.java"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fb09955bd64013994f2dc4d73595e78903dbd858420cedab5a2fb8e2f4a1c36"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: api/Schema.java: FileTooLong \u2014 633 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/api/Schema.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbe6a24a674dc8e33eddf3eb03a1254aafec70c85d3218f29fd1f13b82460f27"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: restore/RocksDBIncrementalRestoreOperation.java: FileTooLong \u2014 623 significant lines (blank, comment-only and punctuation-only lines excluded), about 89% of them inside a single declaration: RocksDBIncrementalRestoreOperation (97-954). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-state-backends/flink-statebackend-rocksdb/src/main/java/org/apache/flink/state/rocksdb/restore/RocksDBIncrementalRestoreOperation.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6abf0fb45f483f3ea4a2312c581d196edb87a0ab5fe29810bde6c0bc7179497d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: binary/BinaryStringDataUtil.java: FileTooLong \u2014 623 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: BinaryStringDataUtil (49-1093). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/data/binary/BinaryStringDataUtil.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"61d2f6e5a9ab27dbefd68d6ca7698cea6cdf98be77d505aa3b41a3b1f540e0fc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: checkpoint/DefaultCheckpointStatsTracker.java: FileTooLong \u2014 621 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: DefaultCheckpointStatsTracker (58-921). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/DefaultCheckpointStatsTracker.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"19ea0238631eb723ba79780e2b756990bfe1ed301759131ccdc729230893c16d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: stream/StreamExecPythonGroupWindowAggregate.java: FileTooLong \u2014 618 significant lines (blank, comment-only and punctuation-only lines excluded), about 86% of them inside a single declaration: StreamExecPythonGroupWindowAggregate (110-705). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/stream/StreamExecPythonGroupWindowAggregate.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eb5c5c045a1798cbac365d43ea1c8317b214901b6a03f49c01049d3bff1e382"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: slotmanager/FineGrainedSlotManager.java: FileTooLong \u2014 617 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: FineGrainedSlotManager (73-963). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/resourcemanager/slotmanager/FineGrainedSlotManager.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"44b15dbc0a88793f61dc6b5dc4c9d57a3cddeabf939a16168c4d636c385bda7c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: InternalDeSerializer: TooManyMethods \u2014 37 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/Record.java"},"region":{"startLine":1314}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa500422c77e906f4e1591de10f28739dff53ac70c3445144bddef1b88092b4d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: XmlResponsesSaxParser: TooManyMethods \u2014 37 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-filesystems/flink-s3-fs-base/src/main/java/com/amazonaws/services/s3/model/transform/XmlResponsesSaxParser.java"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"423049ff0ad427dfb8b3852596eaba8a02912d2392d2b5d61ccf3ed8d9185b9f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BufferWritingResultPartition: TooManyMethods \u2014 37 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/BufferWritingResultPartition.java"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"28ac7d1bd55421e482a683b18b767f6f2d739ff9bdd10680947c40abd8b18b3b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SortMergeResultPartition: TooManyMethods \u2014 37 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/SortMergeResultPartition.java"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1db39cc405794054a746327f2565df6586a3cc7a0bdd12323f5537cc7e6987d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TaskSlotTableImpl: TooManyMethods \u2014 37 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/taskexecutor/slot/TaskSlotTableImpl.java"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a629bdd94237bb579b34d865a799c2d0590284084e45e946bebb8774b9b6653"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ForStResourceContainer: TooManyMethods \u2014 37 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-state-backends/flink-statebackend-forst/src/main/java/org/apache/flink/state/forst/ForStResourceContainer.java"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"09fbd53e22e2b1df855e7f978122d2038cc44791585a9ec21e6b43704f547355"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BaseConnection: TooManyMethods \u2014 37 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-sql-jdbc-driver/src/main/java/org/apache/flink/table/jdbc/BaseConnection.java"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2bc0263888bde6186ce700a8e1e71d982a84782c300bd5aa1cf9f5711b8bf06"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: FunctionCatalog: TooManyMethods \u2014 37 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/catalog/FunctionCatalog.java"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"1758898b78a132fb0c81c6dfff69540089773d146563f7a3a2db35a18e5f5482"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RelTimeIndicatorConverter: TooManyMethods \u2014 37 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/calcite/RelTimeIndicatorConverter.java"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dea37669dbf578958b26a1734badc0f4ad370389bc9ccf3cbe5d461b6f87d20"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: FlinkRelMdCollation: TooManyMethods \u2014 37 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/metadata/FlinkRelMdCollation.java"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"c89952514df3bce364427fc38ba4d26a28e9afc8e5e69f4bc2519d7944bf2df4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: compiler/NFACompiler.java: FileTooLong \u2014 614 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-libraries/flink-cep/src/main/java/org/apache/flink/cep/nfa/compiler/NFACompiler.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"76aca3a6c90368887d1319c3611c0a68e88aaf85a781d046df452ff752e0c4a5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: vector/ParquetSplitReaderUtil.java: FileTooLong \u2014 612 significant lines (blank, comment-only and punctuation-only lines excluded), about 87% of them inside a single declaration: ParquetSplitReaderUtil (105-739). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-formats/flink-parquet/src/main/java/org/apache/flink/formats/parquet/vector/ParquetSplitReaderUtil.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1cc82b5784b6aaa6f4da741657dc8ef0e7a90a3f693a83049f5819fd8d1072d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: configuration/KubernetesConfigOptions.java: FileTooLong \u2014 610 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: KubernetesConfigOptions (49-785). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-kubernetes/src/main/java/org/apache/flink/kubernetes/configuration/KubernetesConfigOptions.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb766096b7de91eca78425790fa152ae17614d6dbe01aec2c74c460882f02581"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: logical/FlinkAggregateExpandDistinctAggregatesRule.java: FileTooLong \u2014 608 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/rules/logical/FlinkAggregateExpandDistinctAggregatesRule.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed986fec008d2d644afe25b69555067c07a2cd73bf3db5cf69efbaf04ad98c3c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: catalog/CatalogPropertiesUtil.java: FileTooLong \u2014 607 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: CatalogPropertiesUtil (60-957). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/catalog/CatalogPropertiesUtil.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"afdf497c7fb2a0674bbb5cb43131fc041c57667b25024fa2872ca5fc0195036d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: catalog/TableChange.java: FileTooLong \u2014 606 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: TableChange (33-1554). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/catalog/TableChange.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b17396b6f3fb6a4e936686befe8c3d466b91ca886e589d382696359c43b97690"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: rules/ResolveCallByArgumentsRule.java: FileTooLong \u2014 602 significant lines (blank, comment-only and punctuation-only lines excluded), about 89% of them inside a single declaration: ResolveCallByArgumentsRule (100-868). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/expressions/resolver/rules/ResolveCallByArgumentsRule.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba03623c97c968a999a8d552551ba7efd9e2a5908b93fa7d5fa911ee9bdae057"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: hashtable/LongHashPartition.java: FileTooLong \u2014 602 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: LongHashPartition (70-958). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/hashtable/LongHashPartition.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3f273adb23c44afd3172e0f5dafb9eeb7be6ad560560892a476cdecb92e6107"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: yarn/YarnResourceManagerDriver.java: FileTooLong \u2014 602 significant lines (blank, comment-only and punctuation-only lines excluded), about 90% of them inside a single declaration: YarnResourceManagerDriver (83-878). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-yarn/src/main/java/org/apache/flink/yarn/YarnResourceManagerDriver.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba7875d6579b52a3cb8d89014cfff6dbffc96e3fcdd7f0450719d00a19420703"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Configuration: TooManyMethods \u2014 36 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/configuration/Configuration.java"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"b38f406d84b4fdeabff18781dc608948275baa0b7bad5b79ab97eae0599fe037"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Builder: TooManyMethods \u2014 36 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/api/Schema.java"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"53b6d374d8f8dd2ca616a27f4dec5a99e2fb19825e82dfa15942d84841c7fbd6"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BaseMappingExtractor: TooManyMethods \u2014 36 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/extraction/BaseMappingExtractor.java"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"2483aa66c3abc740a7edfdab5454ffdce30ad27ee495a6befb05f9cae0b3f504"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RelDataTypeFactoryImpl: TooManyMethods \u2014 36 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/rel/type/RelDataTypeFactoryImpl.java"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"5989315b9b68b04eee2d154b240b5a9ba3967d761ad2bf6d08fa8af4d33f3486"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BoxedWrapperRowData: TooManyMethods \u2014 36 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/data/BoxedWrapperRowData.java"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"51a0441ea8aa4cb3a28a22df060d55bfc7f9da26da22caece6a4e32df89a2243"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: application/PackagedProgramApplication.java: FileTooLong \u2014 591 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-clients/src/main/java/org/apache/flink/client/deployment/application/PackagedProgramApplication.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"50897461c60f7eaf99aa7f7ccde4152bb78de471f46020ac45d4f76067d51f9b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: tasks/SubtaskCheckpointCoordinatorImpl.java: FileTooLong \u2014 590 significant lines (blank, comment-only and punctuation-only lines excluded), about 90% of them inside a single declaration: SubtaskCheckpointCoordinatorImpl (81-852). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/runtime/tasks/SubtaskCheckpointCoordinatorImpl.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa69b046a508bbf7a8e3db02c3b0d87f9e46a5e7001ad7ba4eb32d268712583d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: forst/ForStStateBackend.java: FileTooLong \u2014 588 significant lines (blank, comment-only and punctuation-only lines excluded), about 89% of them inside a single declaration: ForStStateBackend (98-996). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-state-backends/flink-statebackend-forst/src/main/java/org/apache/flink/state/forst/ForStStateBackend.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5740ab6079aa2dbf4f47ba399c34e214ae31eea708a9666e18aab3c7afb761d7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: taskexecutor/TaskManagerRunner.java: FileTooLong \u2014 587 significant lines (blank, comment-only and punctuation-only lines excluded), about 86% of them inside a single declaration: TaskManagerRunner (110-831). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/taskexecutor/TaskManagerRunner.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"48076211d7566a661ceb593b9cd0630ae1e7b081694e38bb3d97c6543d4360b8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: rocksdb/RocksDBKeyedStateBackendBuilder.java: FileTooLong \u2014 587 significant lines (blank, comment-only and punctuation-only lines excluded), about 88% of them inside a single declaration: RocksDBKeyedStateBackendBuilder (100-723). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-state-backends/flink-statebackend-rocksdb/src/main/java/org/apache/flink/state/rocksdb/RocksDBKeyedStateBackendBuilder.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cefd821ece2ec20a119b89944362f3f0fff7a49c25262c11b882ac4478d3b236"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: common/CommonExecLookupJoin.java: FileTooLong \u2014 587 significant lines (blank, comment-only and punctuation-only lines excluded), about 85% of them inside a single declaration: CommonExecLookupJoin (150-760). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/common/CommonExecLookupJoin.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4a9480b5d7e11de2e9190326e8007255d285f61206cfca61ece79959296f2da"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: adaptivebatch/DefaultBatchJobRecoveryHandler.java: FileTooLong \u2014 586 significant lines (blank, comment-only and punctuation-only lines excluded), about 90% of them inside a single declaration: DefaultBatchJobRecoveryHandler (83-851). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/scheduler/adaptivebatch/DefaultBatchJobRecoveryHandler.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"be99c359d100dad6ab2c9d6f830244fe2b6caa1ec73ae50830fffca96a929523"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: operators/StreamTaskStateInitializerImpl.java: FileTooLong \u2014 586 significant lines (blank, comment-only and punctuation-only lines excluded), about 89% of them inside a single declaration: StreamTaskStateInitializerImpl (96-883). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/StreamTaskStateInitializerImpl.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2a49a2158448b0a3488f61bda42c19ae8c5932b1f4cdeef042409a3915164bb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: typeutils/PythonTypeUtils.java: FileTooLong \u2014 584 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: PythonTypeUtils (80-911). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/table/runtime/typeutils/PythonTypeUtils.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b794fb044dfc96303bc8f94a91373e192ef93a9aa0e0a620ff9366deb3fd9df8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: filemerging/FileMergingSnapshotManagerBase.java: FileTooLong \u2014 584 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: FileMergingSnapshotManagerBase (66-1031). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/filemerging/FileMergingSnapshotManagerBase.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"521cc9637fe84b87c4a6ea8f28e9cdc8dedaa033658c07e00c5eab28ed111667"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LimitedConnectionsFileSystem: TooManyMethods \u2014 35 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/core/fs/LimitedConnectionsFileSystem.java"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"08964472d0a8cdae127fd2e41220cfb9194d51b5264ff79586ebd2270a36bb3c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: FileUtils: TooManyMethods \u2014 35 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/util/FileUtils.java"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"c288dd81f68a8ecf9886ec7186f12947886874a96ccd162484df1319f63423cb"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: JsonRowDeserializationSchema: TooManyMethods \u2014 35 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/formats/json/JsonRowDeserializationSchema.java"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"553926fbf02624475fb428c6976ae84409b86fc7bc693ff9999bc67be95e3fd5"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PendingCheckpoint: TooManyMethods \u2014 35 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/PendingCheckpoint.java"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7abc0926c8247d3ca4c8f4a02569f512388a000e8f73193a18e0448c1548490"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TaskStateAssignment: TooManyMethods \u2014 35 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/TaskStateAssignment.java"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"096d77687f090e54a8675c51236894104f3b382f2319e51b90c8131378f4d972"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: NetworkBufferPool: TooManyMethods \u2014 35 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/io/network/buffer/NetworkBufferPool.java"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"c78f98096c1875471df5bdf5ae947ea046eedad616094c25c14b8d593f5f690c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Rescale: TooManyMethods \u2014 35 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/scheduler/adaptive/timeline/Rescale.java"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"071ecda61ac47dd5164d52ed7a51c3f7d519e2d5c8aa234f988ff6e1917f8a89"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: GenericArrayData: TooManyMethods \u2014 35 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/data/GenericArrayData.java"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"07d25c3f324383d2119639057d5e1c65cbbc936cb6f50115bff1c183ffa05348"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: utils/LogicalTypeCasts.java: FileTooLong \u2014 583 significant lines (blank, comment-only and punctuation-only lines excluded), about 88% of them inside a single declaration: LogicalTypeCasts (115-983). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/logical/utils/LogicalTypeCasts.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"36d3d612b18b7f7fbab6f728e3fa0a655dadcc89a39ff857d6cc2e6f59795502"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: snapshot/LateralSnapshotJoinOperator.java: FileTooLong \u2014 578 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/snapshot/LateralSnapshotJoinOperator.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a68c89dd541b19b3e13f8cd91f9018f021375c5159a270f9fa0100bd3420c41"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: configuration/TaskManagerOptions.java: FileTooLong \u2014 577 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/configuration/TaskManagerOptions.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1542825768572db324bb351d22abf138218f2ff5f25946b76004eb3aa023b6ac"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: concurrent/FutureUtils.java: FileTooLong \u2014 575 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: FutureUtils (59-1342). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/util/concurrent/FutureUtils.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"73c5d3e951e090e37a60a2535c0964f783b6194a36594a3cd23fb9a7dc106375"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PackagedProgramApplication: TooManyMethods \u2014 34 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-clients/src/main/java/org/apache/flink/client/deployment/application/PackagedProgramApplication.java"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"24ecf285bda00f479295857d2067dc5d245226ccd2ed8d95936a32313c2a32ec"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SerializerConfigImpl: TooManyMethods \u2014 34 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/common/serialization/SerializerConfigImpl.java"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d3544930ed0a96b4302fca574329c0e8a4cf02cfaeab9027f01a46fb17cdf47"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: FileSystem: TooManyMethods \u2014 34 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/core/fs/FileSystem.java"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"267080eab0bd8b3a696ad33c7d9c84723264b1d40a01983d67e8e2cfda32d2f7"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: JobMasterServiceLeadershipRunner: TooManyMethods \u2014 34 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/jobmaster/JobMasterServiceLeadershipRunner.java"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"582184019fd6a8d0041f400f64e02cce25d71a7e155f41ed495228053e868359"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CopyOnWriteStateMap: TooManyMethods \u2014 34 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/state/heap/CopyOnWriteStateMap.java"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"423f65456ea7453dfba283102886c1894dfba97905fbfbe58339c06408105ddd"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: StateTable: TooManyMethods \u2014 34 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/state/heap/StateTable.java"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5f6043afe1f71a22f844ba74da23f2d6f2c903b21e8b66f984fd9e6a47cb99f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TableSchema: TooManyMethods \u2014 34 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/legacy/api/TableSchema.java"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecaf920a935fbce7c7c9999fa4851368e0ac2d41e6bfacc87944b136c11ce911"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LogicalTypeChecks: TooManyMethods \u2014 34 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/logical/utils/LogicalTypeChecks.java"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"c76aba573c42024402dbbe83e38da5960c8feab30d84701b69b1238001d25c9e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: UpdatableRowData: TooManyMethods \u2014 34 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/data/UpdatableRowData.java"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"36adc5bffe8d4625850c3c212d1b2d837bdb0e96000b46047d3093f8bac63b36"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: StreamingMultiJoinOperator: TooManyMethods \u2014 34 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/stream/StreamingMultiJoinOperator.java"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d166651c3c0d7683bf7c971a0e60db97537d0997d649545d74bd9e779accdf4"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AttributeBasedJoinKeyExtractor: TooManyMethods \u2014 34 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/stream/keyselector/AttributeBasedJoinKeyExtractor.java"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"deda67a145dbe2183260e326c2a94591978688696897c3e0bd0ef9c5016496b9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: coordinator/SourceCoordinator.java: FileTooLong \u2014 566 significant lines (blank, comment-only and punctuation-only lines excluded), about 89% of them inside a single declaration: SourceCoordinator (100-878). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/source/coordinator/SourceCoordinator.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbfa0217fc13919a6f89994ecc0032bd91946ee347ada926b5b6ea70d1d1ab60"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: operations/SqlNodeToOperationConversion.java: FileTooLong \u2014 564 significant lines (blank, comment-only and punctuation-only lines excluded), about 79% of them inside a single declaration: SqlNodeToOperationConversion (153-790). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/operations/SqlNodeToOperationConversion.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a99f29eece06d30b615fd9e71edce6b1b8ab132bafa35df04bce658697b0bdf"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: windowing/WindowOperator.java: FileTooLong \u2014 561 significant lines (blank, comment-only and punctuation-only lines excluded), about 89% of them inside a single declaration: WindowOperator (102-1016). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/WindowOperator.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c62f96ef8eff0e465d160d5b0d8aead34087827b8446afe119ae410050f4212"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: inference/SystemTypeInference.java: FileTooLong \u2014 557 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/inference/SystemTypeInference.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"add11d34ed302be888a591177523f2dbd93dc688bf1d9dffd98ba583cbf52e9c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: schema/TpcdsSchemaProvider.java: FileTooLong \u2014 555 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/schema/TpcdsSchemaProvider.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c30780f34e1a45a73dafa8ac5982617a9158ccf067a30e5ef0628562fde710d5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: control/DefaultJobBundleFactory.java: FileTooLong \u2014 555 significant lines (blank, comment-only and punctuation-only lines excluded), about 88% of them inside a single declaration: DefaultJobBundleFactory (100-804). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/beam/runners/fnexecution/control/DefaultJobBundleFactory.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"06e3669839f85b494fb766f277d4d9b83797aa4dc8d93bf18a7e0bbb03b151aa"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: checkpoint/StateAssignmentOperation.java: FileTooLong \u2014 555 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: StateAssignmentOperation (69-936). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/StateAssignmentOperation.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e15687bad11f8302010abacdcf39c0793721c951579b4b331faf40cc7151beb8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: keyselector/AttributeBasedJoinKeyExtractor.java: FileTooLong \u2014 555 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: AttributeBasedJoinKeyExtractor (58-1020). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/stream/keyselector/AttributeBasedJoinKeyExtractor.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3ad53dd4211f2fa42a43a536642d5b27e5622db73d793d230f83cc78352da13"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: api/DataTypes.java: FileTooLong \u2014 551 significant lines (blank, comment-only and punctuation-only lines excluded), about 88% of them inside a single declaration: DataTypes (102-1508). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/api/DataTypes.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"655f0f10a57edbdb8ec10a79cc4892f15f3f1f09dc89ba9780a556f2958049ec"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: S3ClientProvider: TooManyMethods \u2014 33 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-filesystems/flink-s3-fs-native/src/main/java/org/apache/flink/fs/s3native/S3ClientProvider.java"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcd4695749214b4846b0d1649110817f1578f41ca2861f20bae3f6a9a3cc9180"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: KubernetesUtils: TooManyMethods \u2014 33 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-kubernetes/src/main/java/org/apache/flink/kubernetes/utils/KubernetesUtils.java"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"176545b3fd407c292940d3365daf7ccdc0332d53ab0fe5fbdb36855b65d1d2a0"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: StateAssignmentOperation: TooManyMethods \u2014 33 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/StateAssignmentOperation.java"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"48457f8375ca16b7ccad887ccae0cafadcc06664b4a2b3691c3663f13239de04"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MetricRegistryImpl: TooManyMethods \u2014 33 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/metrics/MetricRegistryImpl.java"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"b84fccd94066da01c6d0c8fb7e7cc80d122046d01427dfaedba8c6f9be515743"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TaskIOMetricGroup: TooManyMethods \u2014 33 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/metrics/groups/TaskIOMetricGroup.java"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"e17906d3cc76fa51eb3a49cf3286005877eccef2213b7ed566f6617c35671444"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: StateWithExecutionGraph: TooManyMethods \u2014 33 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/scheduler/adaptive/StateWithExecutionGraph.java"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"637f6bf1dfa670f2a11ecc96dfc7f1fb6550db3c5f6c4bab4306dff55acaaf95"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: NettyShuffleEnvironmentConfiguration: TooManyMethods \u2014 33 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/taskmanager/NettyShuffleEnvironmentConfiguration.java"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"6353bb733183f12dbf71c0e9b5326dd08fbd59cc3baa5e64cdbd32020b00be1c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ForStSyncKeyedStateBackend: TooManyMethods \u2014 33 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-state-backends/flink-statebackend-forst/src/main/java/org/apache/flink/state/forst/sync/ForStSyncKeyedStateBackend.java"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6bb52d40bf6e2be4ded5cb6bf6d91780279f1a70a5e2c62d86be7eea48fa581"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ApiExpressionUtils: TooManyMethods \u2014 33 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/expressions/ApiExpressionUtils.java"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f88a2fb963ac2c6f00cf97d76ef701a56fda7c212688c306a0b2c0a71e20f1d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: FactoryUtil: TooManyMethods \u2014 33 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/factories/FactoryUtil.java"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"9adb65b590d027a0858e6566c62d04ff3e1285e042666d0a4e00c30dce45c6b6"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LogicalToRelDataTypeConverter: TooManyMethods \u2014 33 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/typeutils/LogicalRelDataTypeConverter.java"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac93af578f59ece3c51b10c35e42ddd61ddf6f6dc3a81a616033a8d7fda45c35"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: fs/LimitedConnectionsFileSystem.java: FileTooLong \u2014 549 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: LimitedConnectionsFileSystem (62-1092). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/core/fs/LimitedConnectionsFileSystem.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"72cf81c4928bb32a0ace5f7133496cc6d1c0eec1780c6dcd4d49e4ec8b931c67"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: rocksdb/EmbeddedRocksDBStateBackend.java: FileTooLong \u2014 549 significant lines (blank, comment-only and punctuation-only lines excluded), about 89% of them inside a single declaration: EmbeddedRocksDBStateBackend (98-1041). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-state-backends/flink-statebackend-rocksdb/src/main/java/org/apache/flink/state/rocksdb/EmbeddedRocksDBStateBackend.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"84417b11f306bc7c42fda5e33284d5273d3def70f3f6519359dd4564440a8651"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: serde/RexNodeJsonDeserializer.java: FileTooLong \u2014 542 significant lines (blank, comment-only and punctuation-only lines excluded), about 82% of them inside a single declaration: RexNodeJsonDeserializer (126-693). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/serde/RexNodeJsonDeserializer.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f9e9ac71e6e6d8e86808b5bcc6c04c7653748748cd63c373924e2553edc54c5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: typeutils/SymbolUtil.java: FileTooLong \u2014 539 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: SymbolUtil (61-665). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/typeutils/SymbolUtil.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"adf3d4074ec1ffc80cc87d51a21729290e2106f45b362c21e44ae42d9c7f3656"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: runtime/PojoSerializer.java: FileTooLong \u2014 538 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: PojoSerializer (48-898). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/java/typeutils/runtime/PojoSerializer.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f164fa88ee60a3efaeacc736a7c8c72f38a502cc1baf23f41a4c14ba87efc80"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: util/SegmentsUtil.java: FileTooLong \u2014 538 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: SegmentsUtil (31-1030). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/util/SegmentsUtil.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f65693ed2ab3672e75e9f72da246034ea779d4215c0414a7878aa8edd6254101"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: catalog/FunctionCatalog.java: FileTooLong \u2014 536 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: FunctionCatalog (75-883). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/catalog/FunctionCatalog.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b7ea490782e45afdf440f3aaca3887a5ca407f71d164f52b4bf367e0820fc7c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: protobuf/PatchedProtoWriteSupport.java: FileTooLong \u2014 535 significant lines (blank, comment-only and punctuation-only lines excluded), about 88% of them inside a single declaration: PatchedProtoWriteSupport (85-855). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-formats/flink-parquet/src/main/java/org/apache/flink/formats/parquet/protobuf/PatchedProtoWriteSupport.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d950bfacbb67155957139ca31e840d3a082f4d844c96029a84854ed34e4cea9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: consumer/LocalInputChannel.java: FileTooLong \u2014 535 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: LocalInputChannel (69-932). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/consumer/LocalInputChannel.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9c0f0354f0ba4e658b688c82c3e16d7ccd0b6c2280be3436eddb2f35a84dbac"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: functions/SqlJsonUtils.java: FileTooLong \u2014 535 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: SqlJsonUtils (67-786). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/SqlJsonUtils.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7a49740f36f016ed5bbb489cb3eac14d960368ebb02b5a52d68c1776ed4b20a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: graph/StreamConfig.java: FileTooLong \u2014 534 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: StreamConfig (77-912). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/graph/StreamConfig.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bdaed734ca3d9c1009155f6d2f4a0164c73beaa612ffbbd0c4c51191a96cc72"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: StateObjectCollection: TooManyMethods \u2014 32 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/StateObjectCollection.java"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1b3619010f372bad5fcaebdee117e70803395435f8ad94f923d57f7f6c3cf83"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ArchivedExecutionGraph: TooManyMethods \u2014 32 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/executiongraph/ArchivedExecutionGraph.java"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"744a6de055f3e5b8c9bec2f57ca4d76b0b03214b59a37e740837f804393ed2e3"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: InputChannel: TooManyMethods \u2014 32 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/consumer/InputChannel.java"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8e46b7b2f956355af00e4565e95262f4b03d6d22597aafe29d62e5f3782f196"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: VertexParallelismAndInputInfosDeciderUtils: TooManyMethods \u2014 32 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/scheduler/adaptivebatch/util/VertexParallelismAndInputInfosDeciderUtils.java"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e817ae5e6f3760f185ec214ab90b4b21f2284261f5e6b3757f871532571fbb9"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SubtaskCheckpointCoordinatorImpl: TooManyMethods \u2014 32 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/runtime/tasks/SubtaskCheckpointCoordinatorImpl.java"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"0941e813bfdc6f11b23998639e2054f5c21d6d77601254d633698ab47fe154a3"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BaseStatement: TooManyMethods \u2014 32 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-sql-jdbc-driver/src/main/java/org/apache/flink/table/jdbc/BaseStatement.java"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce28d4dc6e439f52ced030e9488387dd2d5c0cc243eb632e475658683d2f8e11"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: StaticArgument: TooManyMethods \u2014 32 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/inference/StaticArgument.java"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"37b04586c858b7d0572a792ea84213624d719dc15757f540cea56c3a5b053ca1"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LogicalTypeDefaultVisitor: TooManyMethods \u2014 32 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/logical/utils/LogicalTypeDefaultVisitor.java"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"24b8fe1a6ad1b22227f127630271cf0360672938de64d05fd7a0a70831f25f37"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LogicalTypeMerging: TooManyMethods \u2014 32 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/logical/utils/LogicalTypeMerging.java"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"53bd48a1d17d8b8792b06c5c7b10793171afb816e1e39cf3f28cd0c19a716045"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DefaultDataTypeCreator: TooManyMethods \u2014 32 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/utils/LogicalTypeDataTypeConverter.java"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec59b95d64cf0056ef432b50da8cf2e85750b1cc88d35615cf66013de11a20ad"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: configuration/CheckpointingOptions.java: FileTooLong \u2014 533 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: CheckpointingOptions (37-837). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/configuration/CheckpointingOptions.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1493bea45be124485baff698126b297f6f4a58e8e8d9984c1ac935548e8d38b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: s3native/NativeS3FileSystemFactory.java: FileTooLong \u2014 533 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: NativeS3FileSystemFactory (58-664). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-filesystems/flink-s3-fs-native/src/main/java/org/apache/flink/fs/s3native/NativeS3FileSystemFactory.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"99f6ac6e60d176cb5e879513e1e56f6b5ad94eaa7c87c84f00d6831bd206da64"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: triton/TritonInferenceModelFunction.java: FileTooLong \u2014 532 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-models/flink-model-triton/src/main/java/org/apache/flink/model/triton/TritonInferenceModelFunction.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"27449166961e77bb6e820db29987827445afbb943675668d8515cbda2cae44ec"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: hash/InPlaceMutableHashTable.java: FileTooLong \u2014 531 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: InPlaceMutableHashTable (87-1150). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/operators/hash/InPlaceMutableHashTable.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ea5301d99b60034d77f78b0c9aad876a4beb3d9e395970887b3238e605f64f7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: io/FileInputFormat.java: FileTooLong \u2014 528 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: FileInputFormat (65-1073). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/common/io/FileInputFormat.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e3255cfe8a9bffb34962a32a36dbfaec9c1a6fce0c512b76fcdf9336c2a646a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: typeutils/LogicalRelDataTypeConverter.java: FileTooLong \u2014 528 significant lines (blank, comment-only and punctuation-only lines excluded), about 88% of them inside a single declaration: LogicalRelDataTypeConverter (97-673). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/typeutils/LogicalRelDataTypeConverter.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd705e9e3d2ce5a222f43be00c98c6e4f9dadce95c1fe215b87b3f6812bae4a0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: nfa/NFA.java: FileTooLong \u2014 527 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-libraries/flink-cep/src/main/java/org/apache/flink/cep/nfa/NFA.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2353fb76d7ee72cf7dd2b0741c1aa780c15e10a8ca90fbfd4a785f8b27b2efd8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: catalog/TestFileSystemCatalog.java: FileTooLong \u2014 527 significant lines (blank, comment-only and punctuation-only lines excluded), about 88% of them inside a single declaration: TestFileSystemCatalog (89-740). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-test-utils-parent/flink-table-filesystem-test-utils/src/main/java/org/apache/flink/table/file/testutils/catalog/TestFileSystemCatalog.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4412f35c85f18f219d5f6666bfc3ab1884aae9cca5f74c87caf7eedb96548b74"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: legacy/TwoPhaseCommitSinkFunction.java: FileTooLong \u2014 524 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: TwoPhaseCommitSinkFunction (76-964). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-streaming-java/src/main/java/org/apache/flink/streaming/api/functions/sink/legacy/TwoPhaseCommitSinkFunction.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5846db55a8501802d388012953834c6621a74a7bfd86ece3ffae47f16a79cf2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cli/CliFrontendParser.java: FileTooLong \u2014 521 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: CliFrontendParser (40-723). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-clients/src/main/java/org/apache/flink/client/cli/CliFrontendParser.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"646776d01d0492aab9a0e28c23b5dd3bcb8e97c8a1c67276126df2a4c6f54000"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: fs/FileSystem.java: FileTooLong \u2014 518 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: FileSystem (203-1119). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/core/fs/FileSystem.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff94293fc4b859a350e781e4e105f07d2df05e938ffd1517ed28e42bca6c91bd"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: functions/UserDefinedFunctionHelper.java: FileTooLong \u2014 518 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: UserDefinedFunctionHelper (72-807). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/functions/UserDefinedFunctionHelper.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"835badadd0b1a55356fdbe5a3d5b70d6a3e02bccbe838d3a6259a33f59d373fd"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: beam/BeamPythonFunctionRunner.java: FileTooLong \u2014 517 significant lines (blank, comment-only and punctuation-only lines excluded), about 83% of them inside a single declaration: BeamPythonFunctionRunner (114-750). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/streaming/api/runners/python/beam/BeamPythonFunctionRunner.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b36b297e9fe9e5fcee426618296942f3be236de7d4df6ad52ab317b2570b13a6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: checkpoint/TaskStateAssignment.java: FileTooLong \u2014 517 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: TaskStateAssignment (70-733). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/TaskStateAssignment.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2449e5750b2071663d6f5bc9281b1da5935248fc7242f0591f88441dc430e113"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DataInputDeserializer: TooManyMethods \u2014 31 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/core/memory/DataInputDeserializer.java"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e7757cd5f478edef51ba7d12a85e719df78d411dcfe2a7e3dce571667d40b3b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DataOutputSerializer: TooManyMethods \u2014 31 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/core/memory/DataOutputSerializer.java"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"211461326c0d054318d5cafbd56c5efdf8a275f90be565ffee6ff02adf30b4ab"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BinaryVariantInternalBuilder: TooManyMethods \u2014 31 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/variant/BinaryVariantInternalBuilder.java"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f6d1804c17874f0f6967a1500fdfc46b1a4e236c9a9647abf0dfc4249e987c6"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BlobUtils: TooManyMethods \u2014 31 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/blob/BlobUtils.java"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"2caf79856e201f0b2a67cd905cf300aa4df5adc9a0d27651c624d8fcf291908d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SessionDispatcherLeaderProcess: TooManyMethods \u2014 31 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/dispatcher/runner/SessionDispatcherLeaderProcess.java"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc7f13b2cb9ed3d02590a439924951fa1e9c1259ba89b2436708b9eacaec55e7"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: NonSpanningWrapper: TooManyMethods \u2014 31 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/io/network/api/serialization/NonSpanningWrapper.java"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed254dbf2f31f9141540ded963c87f9ac1b6e4e74a1e91795a098d212240b20f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ReadOnlySlicedNetworkBuffer: TooManyMethods \u2014 31 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/io/network/buffer/ReadOnlySlicedNetworkBuffer.java"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d464328dbf7f41fcd5f7f3404e7543bafab9bb8f3ff1d6cccbfbcb044a710a3"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TaskExecutorGatewayDecoratorBase: TooManyMethods \u2014 31 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/taskexecutor/TaskExecutorGatewayDecoratorBase.java"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"2707bc1f9d8d4180e12f3c3435342f3e2ec6c67916ec6723e474126d32f31494"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AdaptiveGraphManager: TooManyMethods \u2014 31 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/graph/AdaptiveGraphManager.java"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3c1cd91b0d064fad250b7e2e2a6363a2b1e092f3c301f10ff0ffa32a3d88a46"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MailboxProcessor: TooManyMethods \u2014 31 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/runtime/tasks/mailbox/MailboxProcessor.java"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"54967cd0f3af88ee7b32a8936a2d3ffbe4bc48b5ac1514035382a6b10aaee936"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ForStFlinkFileSystem: TooManyMethods \u2014 31 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-state-backends/flink-statebackend-forst/src/main/java/org/apache/flink/state/forst/fs/ForStFlinkFileSystem.java"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"162c74fd597f8ddf0b77ebacff1925d55924441944f1ef2320a57f5fa5d135d1"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ExecNodeBase: TooManyMethods \u2014 31 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/ExecNodeBase.java"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaa660884cd84d942a9e29530d9e317c67082d61ecbbcd198eb4de4dc2cea6b0"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DecimalDataUtils: TooManyMethods \u2014 31 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/data/DecimalDataUtils.java"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"55c00db11536491bf8e11aaa872fde5feebe2e9f4b2ab7bc2e882cb65d5dd913"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BaseHybridHashTable: TooManyMethods \u2014 31 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/hashtable/BaseHybridHashTable.java"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d703bfdc05757c9431d7502a8642cf65f7e52b8e58003177f9618bbbceff4a5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: checkpoints/CheckpointStatistics.java: FileTooLong \u2014 513 significant lines (blank, comment-only and punctuation-only lines excluded), about 89% of them inside a single declaration: CheckpointStatistics (83-697). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/rest/messages/checkpoints/CheckpointStatistics.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c26e378b24a284c5504bb2d42abf748b14b5d0f21bc4e93d2bda0869372d0d3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: extraction/BaseMappingExtractor.java: FileTooLong \u2014 511 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: BaseMappingExtractor (75-786). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/extraction/BaseMappingExtractor.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ec826f5a8deef697b5f981ecd69079846f09af9b168814f26d73ab141c20e8c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: yarn/Utils.java: FileTooLong \u2014 510 significant lines (blank, comment-only and punctuation-only lines excluded), about 89% of them inside a single declaration: Utils (81-822). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-yarn/src/main/java/org/apache/flink/yarn/Utils.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"443860b808f38292058128a5140bb75d57e30990332581405c0f7a82e9c464b5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: entrypoint/ClusterEntrypoint.java: FileTooLong \u2014 509 significant lines (blank, comment-only and punctuation-only lines excluded), about 84% of them inside a single declaration: ClusterEntrypoint (112-769). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/entrypoint/ClusterEntrypoint.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae0ca796b45f630be5bc45fc887b6bf019e0a6088d764912cdf93f8520aef341"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: binary/BinaryStringData.java: FileTooLong \u2014 509 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: BinaryStringData (44-916). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/data/binary/BinaryStringData.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf31ffb126662e838f632d2c03e239baa9df0b15f6d75c970714587a1975e4b0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: memory/MemorySegment.java: FileTooLong \u2014 508 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: MemorySegment (70-1671). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/core/memory/MemorySegment.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"120605f44694dc4d93abe28d019c6be29f6750b9c1632aba78d591d9b187a231"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: jdbc/BaseResultSet.java: FileTooLong \u2014 508 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: BaseResultSet (42-821). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-sql-jdbc-driver/src/main/java/org/apache/flink/table/jdbc/BaseResultSet.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9362d2b8ffdb93e266d76f301a1145b9281527c73b22e8f3a011f6bbd80ce494"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: heap/CopyOnWriteStateMap.java: FileTooLong \u2014 505 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: CopyOnWriteStateMap (108-1095). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/state/heap/CopyOnWriteStateMap.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"62e82e216269d5d7e4d6d2aacba584d2eb09cb873c9a07a3c7692389124279f1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: utils/LogicalTypeMerging.java: FileTooLong \u2014 504 significant lines (blank, comment-only and punctuation-only lines excluded), about 84% of them inside a single declaration: LogicalTypeMerging (107-836). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/logical/utils/LogicalTypeMerging.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8f874912ec61f0d7b1a8ef929f483be7e8e229babea005c0a0305115150eba8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: testsuites/SourceTestSuiteBase.java: FileTooLong \u2014 501 significant lines (blank, comment-only and punctuation-only lines excluded), about 87% of them inside a single declaration: SourceTestSuiteBase (103-807). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-test-utils-parent/flink-connector-test-utils/src/main/java/org/apache/flink/connector/testframe/testsuites/SourceTestSuiteBase.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a696e66b7f90da61002820769f3ebcf12903907d9988b39964bde526e3f3c6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/functions/casting/ArrayToStringCastRule.java:172-199 | flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/functions/casting/MapAndMultisetToStringCastRule.java:241-266 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/functions/casting/ArrayToStringCastRule.java:172\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/functions/casting/ArrayToStringCastRule.java"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1307295ff36b3941fe6208f2d212e7dd76ac6bfe9e28ac2e6abfdbea4b19c19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): flink-runtime/src/main/java/org/apache/flink/streaming/api/datastream/AllWindowedStream.java:318-341 | flink-runtime/src/main/java/org/apache/flink/streaming/api/datastream/AllWindowedStream.java:465-488 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-runtime/src/main/java/org/apache/flink/streaming/api/datastream/AllWindowedStream.java:318\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/datastream/AllWindowedStream.java"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a25be710970d09568cce5854d4338824af393684c097eaca5e3cf1e640ff314"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 5): flink-runtime/src/main/java/org/apache/flink/streaming/api/datastream/AllWindowedStream.java:283-305 | flink-runtime/src/main/java/org/apache/flink/streaming/api/datastream/AllWindowedStream.java:429-451 | flink-runtime/src/main/java/org/apache/flink/streaming/api/datastream/AllWindowedStream.java:689-711 | flink-runtime/src/main/java/org/apache/flink/streaming/api/datastream/AllWindowedStream.java:865-887 | flink-runtime/src/main/java/org/apache/flink/streaming/api/datastream/AllWindowedStream.java:1046-1068 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-runtime/src/main/java/org/apache/flink/streaming/api/datastream/AllWindowedStream.java:283\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/datastream/AllWindowedStream.java"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7dbc78d867a749c00fecfa77ed645959eb84cc746b3721896118661571e2f2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/window/operators/OneInputWindowProcessOperator.java:283-305 | flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/window/operators/TwoOutputWindowProcessOperator.java:292-314 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/window/operators/OneInputWindowProcessOperator.java:283\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/window/operators/OneInputWindowProcessOperator.java"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dd1d99cc2219dfb8889a81d9f6e2dc4aa8badd29218fdd69e0a44fc3d112a88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/window/operators/TwoInputNonBroadcastWindowProcessOperator.java:321-342 | flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/window/operators/TwoInputNonBroadcastWindowProcessOperator.java:498-519 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/window/operators/TwoInputNonBroadcastWindowProcessOperator.java:321\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/window/operators/TwoInputNonBroadcastWindowProcessOperator.java"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"819765986903fb9e7c2776674d31a71515957ed3f640fd507b8f264ec1e905eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): flink-connectors/flink-connector-files/src/main/java/org/apache/flink/connector/file/src/assigners/LocalityAwareSplitAssigner.java:339-359 | flink-core/src/main/java/org/apache/flink/api/common/io/LocatableInputSplitAssigner.java:365-385 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-connectors/flink-connector-files/src/main/java/org/apache/flink/connector/file/src/assigners/LocalityAwareSplitAssigner.java:339\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-connectors/flink-connector-files/src/main/java/org/apache/flink/connector/file/src/assigners/LocalityAwareSplitAssigner.java"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"49a2f86b1c666278f20bcf47a91e123d9bd70f939c2d13bd6d552de9660e1ff7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): flink-runtime/src/main/java/org/apache/flink/streaming/api/datastream/AllWindowedStream.java:724-744 | flink-runtime/src/main/java/org/apache/flink/streaming/api/datastream/AllWindowedStream.java:899-919 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-runtime/src/main/java/org/apache/flink/streaming/api/datastream/AllWindowedStream.java:724\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/datastream/AllWindowedStream.java"},"region":{"startLine":724}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0d8b9d46dcc6d010aab0d269a18444fd131575472f5e0528f35252dbbefcffe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/window/operators/OneInputWindowProcessOperator.java:143-163 | flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/window/operators/TwoOutputWindowProcessOperator.java:152-172 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/window/operators/OneInputWindowProcessOperator.java:143\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/window/operators/OneInputWindowProcessOperator.java"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"224db9daf3ea6e92cb9b7d60a90583f50211814773ddfa9f90dbc5d18c5c4f3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/hashtable/BinaryHashTable.java:468-488 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/hashtable/LongHybridHashTable.java:483-503 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/hashtable/BinaryHashTable.java:468\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/hashtable/BinaryHashTable.java"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"bff21dfcb5454e7e2a8042a5f004d683839e2dd3b71296d38833aa2c0c395356"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/window/operators/OneInputWindowProcessOperator.java:361-380 | flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/window/operators/TwoOutputWindowProcessOperator.java:374-393 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/window/operators/OneInputWindowProcessOperator.java:361\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/window/operators/OneInputWindowProcessOperator.java"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"772b17bd632a546f4973e9886158d442c19391cc7b0ca0357fa985e1d328a822"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/hashtable/BinaryHashTable.java:414-433 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/hashtable/LongHybridHashTable.java:430-450 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/hashtable/BinaryHashTable.java:414\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/hashtable/BinaryHashTable.java"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd9e8741743c48c5100e5685e1970b5e3ba22dad407e129844b677ab78395d04"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): flink-runtime/src/main/java/org/apache/flink/streaming/api/datastream/AllWindowedStream.java:478-496 | flink-runtime/src/main/java/org/apache/flink/streaming/api/datastream/AllWindowedStream.java:910-928 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-runtime/src/main/java/org/apache/flink/streaming/api/datastream/AllWindowedStream.java:478\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/datastream/AllWindowedStream.java"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"295fa32335ebff01d6745d196dab0bca13c4c12489a5c33ec72cd1a4176978d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/window/operators/TwoInputNonBroadcastWindowProcessOperator.java:366-384 | flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/window/operators/TwoInputNonBroadcastWindowProcessOperator.java:543-561 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/window/operators/TwoInputNonBroadcastWindowProcessOperator.java:366\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/window/operators/TwoInputNonBroadcastWindowProcessOperator.java"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f61239ed1277d9d7110475c5615dc3d6cc351e60314d010c7a459f9fdb6b124"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/window/operators/TwoInputNonBroadcastWindowProcessOperator.java:405-423 | flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/window/operators/TwoInputNonBroadcastWindowProcessOperator.java:582-600 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/window/operators/TwoInputNonBroadcastWindowProcessOperator.java:405\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/window/operators/TwoInputNonBroadcastWindowProcessOperator.java"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0efb6a7821ad7541b5b51ea822deab21382751d1d9e54e9da2540311264598a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 5): flink-runtime/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/WindowOperator.java:333-350 | flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/window/operators/OneInputWindowProcessOperator.java:258-275 | flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/window/operators/TwoInputNonBroadcastWindowProcessOperator.java:295-312 | flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/window/operators/TwoInputNonBroadcastWindowProcessOperator.java:472-489 | flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/window/operators/TwoOutputWindowProcessOperator.java:267-284 \u2014 there are 5 copies across 4 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-runtime/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/WindowOperator.java:333\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/WindowOperator.java"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d82bd69960701f8926886574c88fe3cbc68d76c012b8e2af1022f8ec27a23c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 4): flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/window/operators/OneInputWindowProcessOperator.java:231-248 | flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/window/operators/TwoInputNonBroadcastWindowProcessOperator.java:268-285 | flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/window/operators/TwoInputNonBroadcastWindowProcessOperator.java:445-462 | flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/window/operators/TwoOutputWindowProcessOperator.java:240-257 \u2014 there are 4 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/window/operators/OneInputWindowProcessOperator.java:231\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/window/operators/OneInputWindowProcessOperator.java"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"700f5a6f3f3d223acf5afd56469c949b55667dac4ff4349b50bbdb6b00f74444"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): flink-core/src/main/java/org/apache/flink/types/Record.java:1481-1498 | flink-core/src/main/java/org/apache/flink/core/memory/AbstractPagedInputView.java:448-465 | flink-core/src/main/java/org/apache/flink/core/memory/DataInputDeserializer.java:293-310 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/types/Record.java:1481\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/Record.java"},"region":{"startLine":1481}}}],"partialFingerprints":{"codehealthFindingId/v1":"257f3cea2ea84bbde53714e8a3e28a277f522947e3f6127c6190a7f11da066c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): flink-runtime/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/EvictingWindowOperator.java:126-143 | flink-runtime/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/WindowOperator.java:306-323 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-runtime/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/EvictingWindowOperator.java:126\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/EvictingWindowOperator.java"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"d250e938633088948d6f6f692b0ccd8c8ffdf5521723267dd46151790e840a24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): flink-connectors/flink-hadoop-compatibility/src/main/java/org/apache/flink/api/java/hadoop/mapred/HadoopInputFormatBase.java:243-260 | flink-connectors/flink-hadoop-compatibility/src/main/java/org/apache/flink/api/java/hadoop/mapreduce/HadoopInputFormatBase.java:263-280 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-connectors/flink-hadoop-compatibility/src/main/java/org/apache/flink/api/java/hadoop/mapred/HadoopInputFormatBase.java:243\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-connectors/flink-hadoop-compatibility/src/main/java/org/apache/flink/api/java/hadoop/mapred/HadoopInputFormatBase.java"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcd534641f4b999db0e363807818f10d3db3f92ac1dbe2be274eda9322d46a20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): flink-connectors/flink-connector-files/src/main/java/org/apache/flink/connector/file/sink/FileSink.java:426-442 | flink-connectors/flink-connector-files/src/main/java/org/apache/flink/connector/file/sink/FileSink.java:629-645 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-connectors/flink-connector-files/src/main/java/org/apache/flink/connector/file/sink/FileSink.java:426\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-connectors/flink-connector-files/src/main/java/org/apache/flink/connector/file/sink/FileSink.java"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd650045ac84098a9480ce38fe423e72cd57baafd8f3fbc5fa67e78076fc5546"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): flink-runtime/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/MergingWindowSet.java:197-213 | flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/window/operators/MergingWindowSet.java:189-205 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-runtime/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/MergingWindowSet.java:197\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/MergingWindowSet.java"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bfa02eb8c98df3e2121b68d370e2594b56c17642b71b877c9e72bf218479254"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/api/java/typeutils/TypeExtractor.java:557-573 | flink-core/src/main/java/org/apache/flink/api/java/typeutils/TypeExtractor.java:701-717 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/api/java/typeutils/TypeExtractor.java:557\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/java/typeutils/TypeExtractor.java"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"63ad1f0ac2d7227d96a23df60d4422fd046571f531b0db65f3dbe49d91129cf3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/types/parser/IntValueParser.java:38-54 | flink-core/src/main/java/org/apache/flink/types/parser/LongValueParser.java:35-51 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/types/parser/IntValueParser.java:38\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/parser/IntValueParser.java"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fc67e9a71d164e10651f2a101b733b2f3375b734a1944d4f245243963b361ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/window/operators/TwoOutputWindowProcessOperator.java:324-340 | flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/window/operators/TwoOutputWindowProcessOperator.java:364-380 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/window/operators/TwoOutputWindowProcessOperator.java:324\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/window/operators/TwoOutputWindowProcessOperator.java"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a71d3821292736632f949397da902a4c95c62db25eee7f273cda998353a2d4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): flink-table/flink-sql-gateway/src/main/java/org/apache/flink/table/gateway/service/materializedtable/MaterializedTableManager.java:499-515 | flink-table/flink-sql-gateway/src/main/java/org/apache/flink/table/gateway/service/materializedtable/MaterializedTableManager.java:619-635 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-sql-gateway/src/main/java/org/apache/flink/table/gateway/service/materializedtable/MaterializedTableManager.java:499\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-sql-gateway/src/main/java/org/apache/flink/table/gateway/service/materializedtable/MaterializedTableManager.java"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"077939392564b47934529d92ad2bd8b234c1cccfba602f6e575f89f962d9af30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/functions/casting/ArrayToStringCastRule.java:201-217 | flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/functions/casting/MapAndMultisetToStringCastRule.java:288-305 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/functions/casting/ArrayToStringCastRule.java:201\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/functions/casting/ArrayToStringCastRule.java"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"8535961db757af8d6948275d7e8a5fda4bcda647c1703548b0c7b279a9316eb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/operations/converters/materializedtable/SqlCreateOrAlterMaterializedTableConverter.java:455-471 | flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/operations/converters/table/SqlReplaceTableAsConverter.java:99-115 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/operations/converters/materializedtable/SqlCreateOrAlterMaterializedTableConverter.java:455\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/operations/converters/materializedtable/SqlCreateOrAlterMaterializedTableConverter.java"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"0debcba213f6cd94b4a1752aac60de5dd2d3e5522c0a3c900b1c23af7c37fb82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): flink-test-utils-parent/flink-connector-test-utils/src/main/java/org/apache/flink/connector/testframe/utils/CollectIteratorAssert.java:107-122 | flink-test-utils-parent/flink-connector-test-utils/src/main/java/org/apache/flink/connector/testframe/utils/CollectIteratorAssert.java:155-170 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-test-utils-parent/flink-connector-test-utils/src/main/java/org/apache/flink/connector/testframe/utils/CollectIteratorAssert.java:107\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-test-utils-parent/flink-connector-test-utils/src/main/java/org/apache/flink/connector/testframe/utils/CollectIteratorAssert.java"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"42d16d5de9d26bf9edec59fc5ab45d7e6c290988322061419f75bbd2b7442a23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): flink-runtime/src/main/java/org/apache/flink/streaming/api/environment/StreamExecutionEnvironment.java:862-877 | flink-runtime/src/main/java/org/apache/flink/streaming/api/environment/StreamExecutionEnvironment.java:1033-1048 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-runtime/src/main/java/org/apache/flink/streaming/api/environment/StreamExecutionEnvironment.java:862\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/environment/StreamExecutionEnvironment.java"},"region":{"startLine":862}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ed28173bb5fb36301af9e867522770f99a607bc2956d41ae982ae3fd4a051a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): flink-runtime/src/main/java/org/apache/flink/streaming/api/environment/StreamExecutionEnvironment.java:908-923 | flink-datastream/src/main/java/org/apache/flink/datastream/impl/ExecutionEnvironmentImpl.java:236-251 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-runtime/src/main/java/org/apache/flink/streaming/api/environment/StreamExecutionEnvironment.java:908\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/environment/StreamExecutionEnvironment.java"},"region":{"startLine":908}}}],"partialFingerprints":{"codehealthFindingId/v1":"58d0a61c69932d71de18c4210b39431191b615ada676374402bf9355fbb3d00f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): flink-runtime/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/EvictingWindowOperator.java:286-301 | flink-runtime/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/EvictingWindowOperator.java:334-349 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/EvictingWindowOperator.java"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"c33b4f9fad663c586af6bcab200f1024c9fe9df6a51de8924a08256fba0700ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): flink-runtime/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/WindowOperator.java:457-472 | flink-runtime/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/WindowOperator.java:504-519 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-runtime/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/WindowOperator.java:457\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/WindowOperator.java"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"167a64bb043bc0f1ca6b2047826fc8c5af2bc85680aea54951ef3c37085d4c00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/types/parser/ByteParser.java:32-47 | flink-core/src/main/java/org/apache/flink/types/parser/ShortParser.java:39-54 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/types/parser/ByteParser.java:32\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/parser/ByteParser.java"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"275e3562ffcbb87329a88a54d83db9c418a26c585ea50549ecf111c4d974dde2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/types/parser/IntParser.java:40-55 | flink-core/src/main/java/org/apache/flink/types/parser/LongParser.java:33-48 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/types/parser/IntParser.java:40\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/parser/IntParser.java"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"579f405547d748c92a1fcbf741286f51c1f2ef5c2a1dfca1cebc25cace1df1d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/util/StringUtils.java:131-146 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/scalar/JsonQuoteFunction.java:72-87 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/util/StringUtils.java"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"23494860b0682484142620338e0509e4001ea1c192cf9a6f27103dd72e9326b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/window/operators/OneInputWindowProcessOperator.java:191-206 | flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/window/operators/TwoOutputWindowProcessOperator.java:200-215 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/window/operators/OneInputWindowProcessOperator.java:191\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/window/operators/OneInputWindowProcessOperator.java"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bdc008a387534f6c19c3620c99265a10099956ccec688570c91f53b378e95c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/window/operators/OneInputWindowProcessOperator.java:397-412 | flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/window/operators/TwoOutputWindowProcessOperator.java:410-425 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/window/operators/OneInputWindowProcessOperator.java:397\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/window/operators/OneInputWindowProcessOperator.java"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"784bf83c2e27d9bfd630938f28c746c07959347e1cbcde06d3a62f872e56560b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/window/operators/OneInputWindowProcessOperator.java:445-460 | flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/window/operators/TwoOutputWindowProcessOperator.java:458-473 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/window/operators/OneInputWindowProcessOperator.java:445\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/window/operators/OneInputWindowProcessOperator.java"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"37581a1a965a94abba81dea9ed23abe67b6888c33d95335c6f98068822e66778"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/window/operators/TwoInputNonBroadcastWindowProcessOperator.java:616-631 | flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/window/operators/TwoInputNonBroadcastWindowProcessOperator.java:668-683 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/window/operators/TwoInputNonBroadcastWindowProcessOperator.java:616\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/window/operators/TwoInputNonBroadcastWindowProcessOperator.java"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff01e005acc3e8d66347f952710280791d9035ab37c74c9172c91c8fa5dbd1e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): flink-datastream/src/main/java/org/apache/flink/datastream/impl/stream/KeyedPartitionStreamImpl.java:208-223 | flink-datastream/src/main/java/org/apache/flink/datastream/impl/stream/KeyedPartitionStreamImpl.java:277-292 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-datastream/src/main/java/org/apache/flink/datastream/impl/stream/KeyedPartitionStreamImpl.java:208\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-datastream/src/main/java/org/apache/flink/datastream/impl/stream/KeyedPartitionStreamImpl.java"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"c070c99e4cd3801eb2a3135f0015e62668401e3964988383b2a4ba2f0c9be90b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): flink-python/src/main/java/org/apache/flink/table/runtime/operators/python/scalar/EmbeddedPythonScalarFunctionOperator.java:103-119 | flink-python/src/main/java/org/apache/flink/table/runtime/operators/python/table/EmbeddedPythonTableFunctionOperator.java:95-110 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-python/src/main/java/org/apache/flink/table/runtime/operators/python/scalar/EmbeddedPythonScalarFunctionOperator.java:103\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/table/runtime/operators/python/scalar/EmbeddedPythonScalarFunctionOperator.java"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"afe6321c9762721a593d9707af718eb1edf973573896bf3f6bf9ff0c80ee4cca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/aggregate/MiniBatchGlobalGroupAggFunction.java:198-213 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/aggregate/MiniBatchGroupAggFunction.java:229-244 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/aggregate/MiniBatchGlobalGroupAggFunction.java:198\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/aggregate/MiniBatchGlobalGroupAggFunction.java"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d72a0348cdff7817056d6a0b76e5b55a3a61efdd5f32d54150b85ad07e40cdc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/window/async/tvf/common/AsyncStateWindowAggOperator.java:130-145 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/window/tvf/common/WindowAggOperator.java:158-173 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/window/async/tvf/common/AsyncStateWindowAggOperator.java:130\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/window/async/tvf/common/AsyncStateWindowAggOperator.java"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"c69c4b8c04aa9b7ce57e4367344817adf03312ad0940b462ebcb6a73ac50cded"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): flink-python/src/main/java/org/apache/flink/table/runtime/typeutils/serializers/python/RowDataSerializer.java:209-224 | flink-table/flink-table-type-utils/src/main/java/org/apache/flink/table/runtime/typeutils/RowDataSerializer.java:391-406 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-python/src/main/java/org/apache/flink/table/runtime/typeutils/serializers/python/RowDataSerializer.java:209\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/table/runtime/typeutils/serializers/python/RowDataSerializer.java"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9e41c8ffa7a46beaae4593ba6edb8b74f130f90daa7cebb5e40174a9ffa878b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/aggregate/AbstractBitmapBuildWithRetractAggFunction.java:172-187 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/aggregate/AbstractBitmapOrWithRetractAggFunction.java:202-217 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/aggregate/AbstractBitmapBuildWithRetractAggFunction.java:172\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/aggregate/AbstractBitmapBuildWithRetractAggFunction.java"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"43b746d8b6421224218a239576ccf4710c98e5301b9e4d1a0fcf4dc9cb44dd65"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/aggregate/MaxWithRetractAggFunction.java:120-135 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/aggregate/MinWithRetractAggFunction.java:120-135 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/aggregate/MaxWithRetractAggFunction.java:120\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/aggregate/MaxWithRetractAggFunction.java"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"42934305cd30d72f94d2bf8a8276a232d78b8dcc51b7bdb4fb7167bfc94bca1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/hashtable/BinaryHashTable.java:441-456 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/hashtable/LongHybridHashTable.java:458-473 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/hashtable/BinaryHashTable.java"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4179fba0292c9056ec548c46b754c601f9bfd1f0533740453d69322da85ae69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): flink-table/flink-sql-client/src/main/java/org/apache/flink/table/client/cli/CliChangelogResultView.java:237-252 | flink-table/flink-sql-client/src/main/java/org/apache/flink/table/client/cli/CliTableResultView.java:236-251 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-sql-client/src/main/java/org/apache/flink/table/client/cli/CliChangelogResultView.java"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"2776cf9d48dbe5b4d7e8fe8c335d2627b98df65e9e236556ca3543ba34f7c73b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/api/internal/TableImpl.java:763-778 | flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/api/internal/TableImpl.java:821-836 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/api/internal/TableImpl.java:763\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/api/internal/TableImpl.java"},"region":{"startLine":763}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d9df7fcfd0bd27dee2b825413e0690603f1e7bc2a59b9605d6c30a02b543683"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/catalog/CatalogSchemaModel.java:116-131 | flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/expressions/converter/ExpressionConverter.java:283-299 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/catalog/CatalogSchemaModel.java"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbdc9666d8e04351c3ccb1148560d5f5bc5c1934a3c0216eecd6b07ee093a16e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): flink-architecture-tests/flink-architecture-tests-base/src/main/java/org/apache/flink/architecture/common/Conditions.java:89-103 | flink-architecture-tests/flink-architecture-tests-base/src/main/java/org/apache/flink/architecture/common/Conditions.java:125-139 | flink-architecture-tests/flink-architecture-tests-base/src/main/java/org/apache/flink/architecture/common/Conditions.java:161-175 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-architecture-tests/flink-architecture-tests-base/src/main/java/org/apache/flink/architecture/common/Conditions.java:89\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-architecture-tests/flink-architecture-tests-base/src/main/java/org/apache/flink/architecture/common/Conditions.java"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"b11fcec0d2fd960a8cdf736044fdcdd2eb04e966e791a6de1cca880cafaf76c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/util/collections/IntHashSet.java:55-69 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/util/collections/LongHashSet.java:55-69 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/util/collections/ShortHashSet.java:55-69 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/util/collections/IntHashSet.java:55\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/util/collections/IntHashSet.java"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ee2d28483253fbc50b8ecf4394715789bdc7a593ea979f9f7c0ab4387979bf4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): flink-table/flink-table-common/src/main/java/org/apache/flink/table/factories/FactoryUtil.java:253-267 | flink-table/flink-table-common/src/main/java/org/apache/flink/table/factories/FactoryUtil.java:306-320 | flink-table/flink-table-common/src/main/java/org/apache/flink/table/factories/FactoryUtil.java:353-367 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-common/src/main/java/org/apache/flink/table/factories/FactoryUtil.java:253\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/factories/FactoryUtil.java"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5d00d803c17ed388c6b285af5328ff2ba12fcf91a47d97cb79b0cbacb9ef69e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): flink-python/src/main/java/org/apache/flink/streaming/api/operators/python/embedded/AbstractOneInputEmbeddedPythonFunctionOperator.java:100-114 | flink-python/src/main/java/org/apache/flink/streaming/api/operators/python/embedded/AbstractTwoInputEmbeddedPythonFunctionOperator.java:120-135 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-python/src/main/java/org/apache/flink/streaming/api/operators/python/embedded/AbstractOneInputEmbeddedPythonFunctionOperator.java:100\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/streaming/api/operators/python/embedded/AbstractOneInputEmbeddedPythonFunctionOperator.java"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"75298c663611e55e097da3ace26ba65dee3c5a4c714a1f1313cc4076480527c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): flink-python/src/main/java/org/apache/flink/streaming/api/operators/python/process/ExternalPythonCoProcessOperator.java:90-104 | flink-python/src/main/java/org/apache/flink/streaming/api/operators/python/process/ExternalPythonProcessOperator.java:86-100 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-python/src/main/java/org/apache/flink/streaming/api/operators/python/process/ExternalPythonCoProcessOperator.java:90\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/streaming/api/operators/python/process/ExternalPythonCoProcessOperator.java"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"2042ecfa5bafc396d8393b42893ca83f67d80343a38f7cf379922db5311c6116"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): flink-python/src/main/java/org/apache/flink/streaming/api/operators/python/process/ExternalPythonKeyedCoProcessOperator.java:144-158 | flink-python/src/main/java/org/apache/flink/streaming/api/operators/python/process/ExternalPythonKeyedProcessOperator.java:170-184 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/streaming/api/operators/python/process/ExternalPythonKeyedCoProcessOperator.java"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"16eaee65da277ccc82c198c5b737e6ca6c0ec6ae9ef3c45f50fb854d75883d58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): flink-python/src/main/java/org/apache/flink/streaming/api/runners/python/beam/state/BeamKeyedStateStore.java:115-129 | flink-python/src/main/java/org/apache/flink/streaming/api/runners/python/beam/state/BeamKeyedStateStore.java:173-187 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-python/src/main/java/org/apache/flink/streaming/api/runners/python/beam/state/BeamKeyedStateStore.java:115\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/streaming/api/runners/python/beam/state/BeamKeyedStateStore.java"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5565510062910b8f1db7de35d2315cdcf6df0e0cd27af7af367260a5f73f865"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): flink-runtime/src/main/java/org/apache/flink/streaming/api/datastream/ConnectedStreams.java:517-531 | flink-datastream/src/main/java/org/apache/flink/datastream/impl/utils/StreamUtils.java:351-365 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-runtime/src/main/java/org/apache/flink/streaming/api/datastream/ConnectedStreams.java:517\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/datastream/ConnectedStreams.java"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecda5b44b7a821d4d9958b3d4db8bff0d15571b2442c5fc18720130fe663ee44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): flink-runtime/src/main/java/org/apache/flink/streaming/api/datastream/KeyedStream.java:614-628 | flink-runtime/src/main/java/org/apache/flink/streaming/api/datastream/KeyedStream.java:634-648 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-runtime/src/main/java/org/apache/flink/streaming/api/datastream/KeyedStream.java:614\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/datastream/KeyedStream.java"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"223f5096b5493a7558a9e7d14d90138e1838e73ea02cd1fb75d6c8ced8489c2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): flink-runtime/src/main/java/org/apache/flink/streaming/api/environment/StreamExecutionEnvironment.java:775-789 | flink-runtime/src/main/java/org/apache/flink/streaming/api/environment/StreamExecutionEnvironment.java:998-1012 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-runtime/src/main/java/org/apache/flink/streaming/api/environment/StreamExecutionEnvironment.java:775\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/environment/StreamExecutionEnvironment.java"},"region":{"startLine":775}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d4771dfbcda6357ff77788f1a5e5296feafdea7974866426db0c0c31240baee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): flink-python/src/main/java/org/apache/flink/streaming/runtime/translators/python/PythonBroadcastStateTransformationTranslator.java:72-86 | flink-python/src/main/java/org/apache/flink/streaming/runtime/translators/python/PythonBroadcastStateTransformationTranslator.java:114-128 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-python/src/main/java/org/apache/flink/streaming/runtime/translators/python/PythonBroadcastStateTransformationTranslator.java:72\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/streaming/runtime/translators/python/PythonBroadcastStateTransformationTranslator.java"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c8b2aa2416210403c4b82eb49243ede4429841aa380e2f9f6502c244deb42ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): flink-python/src/main/java/org/apache/flink/streaming/runtime/translators/python/PythonKeyedBroadcastStateTransformationTranslator.java:81-95 | flink-runtime/src/main/java/org/apache/flink/streaming/runtime/translators/KeyedBroadcastStateTransformationTranslator.java:60-74 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-python/src/main/java/org/apache/flink/streaming/runtime/translators/python/PythonKeyedBroadcastStateTransformationTranslator.java:81\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/streaming/runtime/translators/python/PythonKeyedBroadcastStateTransformationTranslator.java"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"df5e8c256f4ac1ce157d8a39521e95932decb5f113389ee1b04cfbeaca8ea2cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): flink-datastream/src/main/java/org/apache/flink/streaming/runtime/translators/DataStreamV2SinkTransformationTranslator.java:335-349 | flink-runtime/src/main/java/org/apache/flink/streaming/runtime/translators/SinkTransformationTranslator.java:442-456 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-datastream/src/main/java/org/apache/flink/streaming/runtime/translators/DataStreamV2SinkTransformationTranslator.java:335\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-datastream/src/main/java/org/apache/flink/streaming/runtime/translators/DataStreamV2SinkTransformationTranslator.java"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"676eff4ba6ae3d4c7cde7b18c0b3750b932537c48a437f80947fe2dcbc0a24ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): flink-runtime/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/EvictingWindowOperator.java:183-197 | flink-runtime/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/WindowOperator.java:364-378 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-runtime/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/EvictingWindowOperator.java:183\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/EvictingWindowOperator.java"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6bc591d85d1300c3b096b052d4966f8bb893a17708f6e5259f6369a2af8bb9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/api/java/typeutils/runtime/PojoComparator.java:94-108 | flink-core/src/main/java/org/apache/flink/api/java/typeutils/runtime/TupleComparatorBase.java:81-95 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/api/java/typeutils/runtime/PojoComparator.java:94\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/java/typeutils/runtime/PojoComparator.java"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d6a1be465c3031bf750dd35fab1102280d7733cc8f6a1302de634405bd47b43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/api/java/typeutils/RowTypeInfo.java:345-359 | flink-core/src/main/java/org/apache/flink/api/java/typeutils/TupleTypeInfo.java:138-152 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/java/typeutils/RowTypeInfo.java"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"15a74bd995e247aab336500d7f25b5f490a54b94f7d2915b86c73ff7e2899e5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/api/java/typeutils/TypeExtractor.java:591-605 | flink-core/src/main/java/org/apache/flink/api/java/typeutils/TypeExtractor.java:730-744 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/java/typeutils/TypeExtractor.java"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfdce1a1173b5d07349f20433c44467fc71a56fdf84f2463e0698edaf7a9648e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/api/common/operators/Keys.java:168-183 | flink-core/src/main/java/org/apache/flink/api/common/operators/Keys.java:406-420 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/api/common/operators/Keys.java:168\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/common/operators/Keys.java"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fcec86b8d837214ebb8812cf6b91b0b8abad73ee0a383c7bd621f351540a761"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/api/common/operators/SlotSharingGroup.java:246-260 | flink-core-api/src/main/java/org/apache/flink/api/common/SlotSharingGroup.java:217-231 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/api/common/operators/SlotSharingGroup.java:246\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/common/operators/SlotSharingGroup.java"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b4b1333320822aa3f1fa7803b70b466ed4a75ec58c913cbcb8fd8832717913a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/util/LongValueSequenceIterator.java:114-128 | flink-core/src/main/java/org/apache/flink/util/NumberSequenceIterator.java:109-123 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/util/LongValueSequenceIterator.java:114\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/util/LongValueSequenceIterator.java"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac7c90244cfab481389a634d4101a9a386af8c5822498bb8b61abf7d533c9ce3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/window/groupwindow/operator/WindowOperatorBuilder.java:295-309 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/window/groupwindow/operator/WindowOperatorBuilder.java:362-376 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/window/groupwindow/operator/WindowOperatorBuilder.java:295\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/window/groupwindow/operator/WindowOperatorBuilder.java"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"e045892ffa6f15f782c3b2cfca2163188999d97ee3f70eac0da4c00d52ff10f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/window/groupwindow/operator/WindowOperatorBuilder.java:311-325 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/window/groupwindow/operator/WindowOperatorBuilder.java:379-393 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/window/groupwindow/operator/WindowOperatorBuilder.java:311\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/window/groupwindow/operator/WindowOperatorBuilder.java"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c861b8c5ff9c6ddb72ae5dbee03f9c61339cb86cc0bae99c55a4f3d6c99cf33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/scalar/JsonQuoteFunction.java:63-77 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/scalar/JsonUnquoteFunction.java:89-103 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/scalar/JsonQuoteFunction.java"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"f661085ff20a04d022ce4c7a8fba813f457527fffa7955a436b63e0d457bc033"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): flink-table/flink-table-common/src/main/java/org/apache/flink/table/factories/FactoryUtil.java:483-497 | flink-table/flink-table-common/src/main/java/org/apache/flink/table/factories/FactoryUtil.java:535-549 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-common/src/main/java/org/apache/flink/table/factories/FactoryUtil.java:483\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/factories/FactoryUtil.java"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea2b0dc62d5d03fa628d3949712d66f13bea8cff4f0ef7a6fe1b7206216d3a6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/functions/casting/RowToStringCastRule.java:186-200 | flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/functions/casting/StructuredToStringCastRule.java:222-236 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/functions/casting/RowToStringCastRule.java:186\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/functions/casting/RowToStringCastRule.java"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"35884538be28e2e08cabd73aa9cce72e94fa16afac471745edd83897b1485534"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/batch/BatchExecPythonGroupAggregate.java:178-192 | flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/batch/BatchExecPythonGroupWindowAggregate.java:244-258 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/batch/BatchExecPythonGroupAggregate.java:178\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/batch/BatchExecPythonGroupAggregate.java"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"09e744c1d9489da1915edb190b0e8f66f024c6eda3a2afe4643094ba3e27a70c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): flink-table/flink-sql-gateway/src/main/java/org/apache/flink/table/gateway/workflow/EmbeddedWorkflowScheduler.java:163-176 | flink-table/flink-sql-gateway/src/main/java/org/apache/flink/table/gateway/workflow/EmbeddedWorkflowScheduler.java:189-202 | flink-table/flink-sql-gateway/src/main/java/org/apache/flink/table/gateway/workflow/EmbeddedWorkflowScheduler.java:229-242 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-sql-gateway/src/main/java/org/apache/flink/table/gateway/workflow/EmbeddedWorkflowScheduler.java:163\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-sql-gateway/src/main/java/org/apache/flink/table/gateway/workflow/EmbeddedWorkflowScheduler.java"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7ee73a2f3197ad9986b1171a2ccc72c439e73c46ec2c52d4f30e7ca536d8232"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/util/collections/IntHashSet.java:94-107 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/util/collections/LongHashSet.java:94-107 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/util/collections/ShortHashSet.java:94-107 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/util/collections/IntHashSet.java:94\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/util/collections/IntHashSet.java"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbb9cfb641294e83f99cfd34f8543626561045caff030087fbc0b0d35a0c8c8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): flink-test-utils-parent/flink-connector-test-utils/src/main/java/org/apache/flink/connector/testframe/testsuites/SinkTestSuiteBase.java:306-320 | flink-test-utils-parent/flink-connector-test-utils/src/main/java/org/apache/flink/connector/testframe/testsuites/SinkTestSuiteBase.java:361-374 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-test-utils-parent/flink-connector-test-utils/src/main/java/org/apache/flink/connector/testframe/testsuites/SinkTestSuiteBase.java:306\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-test-utils-parent/flink-connector-test-utils/src/main/java/org/apache/flink/connector/testframe/testsuites/SinkTestSuiteBase.java"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"17855544aa8690671331b29190538ce3faec36b03d7d0741f2da1a8058bb0c1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): flink-test-utils-parent/flink-connector-test-utils/src/main/java/org/apache/flink/connector/testframe/testsuites/SinkTestSuiteBase.java:380-393 | flink-test-utils-parent/flink-connector-test-utils/src/main/java/org/apache/flink/connector/testframe/testsuites/SourceTestSuiteBase.java:444-457 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-test-utils-parent/flink-connector-test-utils/src/main/java/org/apache/flink/connector/testframe/testsuites/SinkTestSuiteBase.java:380\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-test-utils-parent/flink-connector-test-utils/src/main/java/org/apache/flink/connector/testframe/testsuites/SinkTestSuiteBase.java"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"51bd5207b7de92b0549fbd60872d4007a97659a2f0200655f4e98abc056744bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/sort/MultiInputSortingDataInput.java:244-257 | flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/sort/SortingDataInput.java:148-161 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/sort/MultiInputSortingDataInput.java:244\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/sort/MultiInputSortingDataInput.java"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"b55c774d33dfe3c5c516117394bcc6e31417a68d9508ef50e045696dab802d55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/AbstractStreamOperator.java:216-229 | flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/AbstractStreamOperatorV2.java:167-180 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/AbstractStreamOperator.java:216\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/AbstractStreamOperator.java"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ec9a6070faa17714a1c79ad1bc7a70e047644cb684ba71e2c1ad8134a8f1889"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): flink-runtime/src/main/java/org/apache/flink/streaming/api/datastream/AllWindowedStream.java:522-535 | flink-runtime/src/main/java/org/apache/flink/streaming/api/datastream/WindowedStream.java:311-324 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/datastream/AllWindowedStream.java"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c9d1bac05e5ad070048c1378657fa6105cbe0c3bf559442a717b8a1bf97a65a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): flink-examples/flink-examples-streaming/src/main/java/org/apache/flink/streaming/examples/windowing/WindowWordCount.java:158-171 | flink-examples/flink-examples-streaming/src/main/java/org/apache/flink/streaming/examples/wordcount/WordCount.java:166-179 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-examples/flink-examples-streaming/src/main/java/org/apache/flink/streaming/examples/windowing/WindowWordCount.java:158\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-examples/flink-examples-streaming/src/main/java/org/apache/flink/streaming/examples/windowing/WindowWordCount.java"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b7e934f2bfab5bdac03525e752a1478aa958bdd974c71d8746c9653bc08994a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): flink-connectors/flink-hadoop-compatibility/src/main/java/org/apache/flink/api/java/hadoop/mapred/HadoopInputFormatBase.java:139-152 | flink-connectors/flink-hadoop-compatibility/src/main/java/org/apache/flink/api/java/hadoop/mapreduce/HadoopInputFormatBase.java:135-148 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-connectors/flink-hadoop-compatibility/src/main/java/org/apache/flink/api/java/hadoop/mapred/HadoopInputFormatBase.java:139\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-connectors/flink-hadoop-compatibility/src/main/java/org/apache/flink/api/java/hadoop/mapred/HadoopInputFormatBase.java"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"596e589c06cd706a71571e5c00ed1008555ce10ab2e85b103c678f422ce51cc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): flink-connectors/flink-hadoop-compatibility/src/main/java/org/apache/flink/api/java/hadoop/mapred/HadoopInputFormatBase.java:293-306 | flink-connectors/flink-hadoop-compatibility/src/main/java/org/apache/flink/api/java/hadoop/mapreduce/HadoopInputFormatBase.java:317-330 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-connectors/flink-hadoop-compatibility/src/main/java/org/apache/flink/api/java/hadoop/mapred/HadoopInputFormatBase.java:293\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-connectors/flink-hadoop-compatibility/src/main/java/org/apache/flink/api/java/hadoop/mapred/HadoopInputFormatBase.java"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"61a7ddf0b8210ca2e77a544a22ab2212573632f9e381a26edc60015f119db6ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/api/common/operators/base/CoGroupOperatorBase.java:381-394 | flink-core/src/main/java/org/apache/flink/api/common/operators/base/OuterJoinOperatorBase.java:228-241 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/api/common/operators/base/CoGroupOperatorBase.java:381\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/common/operators/base/CoGroupOperatorBase.java"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dc5c05a2251a42e4dd5dbde4e08293f96969f4e238eba15b8f54dc7c687a5dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/types/Record.java:1578-1591 | flink-core/src/main/java/org/apache/flink/core/memory/DataInputDeserializer.java:384-397 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/types/Record.java:1578\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/Record.java"},"region":{"startLine":1578}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6052d1ab20e151315128df52de745c87cb4066b9a54386518f01945f23473d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/window/operators/TwoInputNonBroadcastWindowProcessOperator.java:643-656 | flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/window/operators/TwoInputNonBroadcastWindowProcessOperator.java:695-708 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/window/operators/TwoInputNonBroadcastWindowProcessOperator.java:643\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/window/operators/TwoInputNonBroadcastWindowProcessOperator.java"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"524aaca6c13117950a48bdd397109a3474eaf31c70f86bf2018aa7df16ffaa21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): flink-datastream/src/main/java/org/apache/flink/datastream/impl/stream/BroadcastStreamImpl.java:149-162 | flink-datastream/src/main/java/org/apache/flink/datastream/impl/stream/KeyedPartitionStreamImpl.java:465-478 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-datastream/src/main/java/org/apache/flink/datastream/impl/stream/BroadcastStreamImpl.java:149\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-datastream/src/main/java/org/apache/flink/datastream/impl/stream/BroadcastStreamImpl.java"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c6d5338a6dae4d5dc214ecf13d8ab9788e7c0aeb0fd66f17b1db324a56b0b80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): flink-datastream/src/main/java/org/apache/flink/datastream/impl/stream/KeyedPartitionStreamImpl.java:124-137 | flink-datastream/src/main/java/org/apache/flink/datastream/impl/stream/KeyedPartitionStreamImpl.java:160-173 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-datastream/src/main/java/org/apache/flink/datastream/impl/stream/KeyedPartitionStreamImpl.java:124\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-datastream/src/main/java/org/apache/flink/datastream/impl/stream/KeyedPartitionStreamImpl.java"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c9f6f1015577dd9839eda53b9786209b26dc9cec04e2fa29a23cc4de664d787"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): flink-python/src/main/java/org/apache/flink/table/runtime/operators/python/aggregate/arrow/stream/AbstractStreamArrowPythonBoundedRowsOperator.java:97-110 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/over/RowTimeRowsBoundedPrecedingFunction.java:197-210 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-python/src/main/java/org/apache/flink/table/runtime/operators/python/aggregate/arrow/stream/AbstractStreamArrowPythonBoundedRowsOperator.java:97\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/table/runtime/operators/python/aggregate/arrow/stream/AbstractStreamArrowPythonBoundedRowsOperator.java"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"9001fca8981a288de393d32ee8d3eb21eddcdf5bca0821813a68cb7dad64d4c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/aggregate/window/combines/AggCombiner.java:88-101 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/aggregate/window/combines/LocalAggCombiner.java:78-91 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/aggregate/window/combines/AggCombiner.java"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0fac8cd7b5735f58219e2045c3670a8939d2d3a89de8e7dca507f8a6440b055"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/stream/asyncprocessing/state/JoinRecordAsyncStateViews.java:56-69 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/stream/state/JoinRecordStateViews.java:55-68 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/stream/asyncprocessing/state/JoinRecordAsyncStateViews.java:56\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/stream/asyncprocessing/state/JoinRecordAsyncStateViews.java"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f3e3506ada834cd7620991d79e641156635a84177608357945f7d00296cfff8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/window/tvf/slicing/SliceAssigners.java:229-242 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/window/tvf/slicing/SliceAssigners.java:349-363 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/window/tvf/slicing/SliceAssigners.java:229\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/window/tvf/slicing/SliceAssigners.java"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"df682c74cc8712bf810bd469eda33600f7b48290c31450c00cf1d3557093235d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/aggregate/AbstractBitmapAndWithRetractAggFunction.java:115-128 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/aggregate/AbstractBitmapOrWithRetractAggFunction.java:121-134 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/aggregate/AbstractBitmapAndWithRetractAggFunction.java:115\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/aggregate/AbstractBitmapAndWithRetractAggFunction.java"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c688d5787eb2b8adcbffc3e0744efaf795c7a9c5c86ce5801a7e589b090924d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/aggregate/AbstractBitmapAndWithRetractAggFunction.java:141-154 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/aggregate/AbstractBitmapOrWithRetractAggFunction.java:151-164 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/aggregate/AbstractBitmapAndWithRetractAggFunction.java:141\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/aggregate/AbstractBitmapAndWithRetractAggFunction.java"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5bff24d67e0134a88d8bbe4fc19ca3062eb2314005490eed07457ecba394786"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/aggregate/ListAggWithRetractAggFunction.java:140-153 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/aggregate/ListAggWsWithRetractAggFunction.java:156-169 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/aggregate/ListAggWithRetractAggFunction.java:140\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/aggregate/ListAggWithRetractAggFunction.java"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5a9be65c1142a6a4abcb2503074b663443f26262064715e83cec41f80f2653f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/hashtable/BinaryHashTable.java:691-704 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/hashtable/LongHybridHashTable.java:619-632 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/hashtable/BinaryHashTable.java"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"b08b27aad3c3e0b1afc92d29435c3133d96b498d595b70e351d95b9535195a2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/hashtable/BinaryHashTable.java:718-731 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/hashtable/LongHybridHashTable.java:643-656 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/hashtable/BinaryHashTable.java:718\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/hashtable/BinaryHashTable.java"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2b213995b324f04979d59025f09f5d60b603c0f1e8c4d8b354b2ca9cf627ed0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/util/collections/DoubleHashSet.java:62-75 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/util/collections/FloatHashSet.java:60-73 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/util/collections/DoubleHashSet.java:62\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/util/collections/DoubleHashSet.java"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"d02f1ba1eaa5163652ab9520bcb2a7c656fd77d224284bfd3b1c3f2fa437e649"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/util/StringUtf8Utils.java:206-219 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/util/StringUtf8Utils.java:304-317 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/util/StringUtf8Utils.java:206\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/util/StringUtf8Utils.java"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"805498d178fa8af4c1c61666bc7764fd908489ad17b98f6fcc185e56aaf13926"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): flink-table/flink-table-common/src/main/java/org/apache/flink/table/functions/LegacyUserDefinedFunctionInference.java:163-176 | flink-table/flink-table-common/src/main/java/org/apache/flink/table/functions/LegacyUserDefinedFunctionInference.java:235-248 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-common/src/main/java/org/apache/flink/table/functions/LegacyUserDefinedFunctionInference.java:163\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/functions/LegacyUserDefinedFunctionInference.java"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"be1b3f632379224c8113c77514e45977b44c0ab0029988e1c83196a4bc52d0ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 5): flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/eventtime/functions/EventTimeWrappedOneInputStreamProcessFunction.java:100-112 | flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/eventtime/functions/EventTimeWrappedTwoInputBroadcastStreamProcessFunction.java:113-126 | flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/eventtime/functions/EventTimeWrappedTwoInputBroadcastStreamProcessFunction.java:139-151 | flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/eventtime/functions/EventTimeWrappedTwoInputNonBroadcastStreamProcessFunction.java:113-125 | flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/eventtime/functions/EventTimeWrappedTwoInputNonBroadcastStreamProcessFunction.java:138-150 \u2014 there are 5 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/eventtime/functions/EventTimeWrappedOneInputStreamProcessFunction.java:100\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/eventtime/functions/EventTimeWrappedOneInputStreamProcessFunction.java"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"960929e4817043adde845e862a1455c901271e30838efc74c2b638ec72c989db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): flink-core/src/main/java/org/apache/flink/types/parser/ByteParser.java:121-133 | flink-core/src/main/java/org/apache/flink/types/parser/IntParser.java:129-141 | flink-core/src/main/java/org/apache/flink/types/parser/LongParser.java:137-149 | flink-core/src/main/java/org/apache/flink/types/parser/ShortParser.java:128-140 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/types/parser/ByteParser.java:121\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/parser/ByteParser.java"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac7ebd52f8fb2c1d1a2eb99abd463a8b8a1ad8496041492ceadca3a6a0ab2f77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): flink-runtime/src/main/java/org/apache/flink/streaming/api/datastream/KeyedPartitionWindowedStream.java:97-109 | flink-runtime/src/main/java/org/apache/flink/streaming/api/datastream/KeyedPartitionWindowedStream.java:122-134 | flink-runtime/src/main/java/org/apache/flink/streaming/api/datastream/KeyedPartitionWindowedStream.java:148-160 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/datastream/KeyedPartitionWindowedStream.java"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"5213b5f8722e47a1aa67a3087034a62b491463407fa8c3c9fabb6f6209ace1d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): flink-runtime/src/main/java/org/apache/flink/streaming/api/datastream/NonKeyedPartitionWindowedStream.java:111-123 | flink-runtime/src/main/java/org/apache/flink/streaming/api/datastream/NonKeyedPartitionWindowedStream.java:134-146 | flink-runtime/src/main/java/org/apache/flink/streaming/api/datastream/NonKeyedPartitionWindowedStream.java:158-170 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-runtime/src/main/java/org/apache/flink/streaming/api/datastream/NonKeyedPartitionWindowedStream.java:111\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/datastream/NonKeyedPartitionWindowedStream.java"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"d19b7a3a2bb54c6ed7266a3dd5adfe1ef2f1c3ed625a1204e512fa25375d7f29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): flink-connectors/flink-connector-files/src/main/java/org/apache/flink/connector/file/sink/writer/FileWriterBucketState.java:113-125 | flink-streaming-java/src/main/java/org/apache/flink/streaming/api/functions/sink/filesystem/BucketState.java:104-116 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-connectors/flink-connector-files/src/main/java/org/apache/flink/connector/file/sink/writer/FileWriterBucketState.java:113\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-connectors/flink-connector-files/src/main/java/org/apache/flink/connector/file/sink/writer/FileWriterBucketState.java"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"35fc6274070ba1dc4a84a6b1d129b38d7a454e9270c5e152fc2a21584263f088"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): flink-python/src/main/java/org/apache/flink/streaming/api/operators/python/embedded/EmbeddedPythonKeyedCoProcessOperator.java:82-94 | flink-python/src/main/java/org/apache/flink/streaming/api/operators/python/embedded/EmbeddedPythonKeyedProcessOperator.java:81-93 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-python/src/main/java/org/apache/flink/streaming/api/operators/python/embedded/EmbeddedPythonKeyedCoProcessOperator.java:82\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/streaming/api/operators/python/embedded/EmbeddedPythonKeyedCoProcessOperator.java"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b12b394b284fd753d8b106bcc9d41c46e1073334b291a773a58e833ee0e9c5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/sortpartition/KeyedSortPartitionOperator.java:335-347 | flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/sortpartition/SortPartitionOperator.java:261-273 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/sortpartition/KeyedSortPartitionOperator.java:335\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/sortpartition/KeyedSortPartitionOperator.java"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb4b6e548d0a2a6318301956919a73457be81ff5164234b1d30c609239feeb40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): flink-python/src/main/java/org/apache/flink/streaming/api/utils/PythonTypeUtils.java:1706-1718 | flink-python/src/main/java/org/apache/flink/table/utils/python/PythonTableUtils.java:239-252 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-python/src/main/java/org/apache/flink/streaming/api/utils/PythonTypeUtils.java:1706\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/streaming/api/utils/PythonTypeUtils.java"},"region":{"startLine":1706}}}],"partialFingerprints":{"codehealthFindingId/v1":"21a1cd85330f024a34c28e46bf141572fd206c2266cda16fca4d87cd45a2f50f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): flink-python/src/main/java/org/apache/flink/streaming/api/utils/PythonTypeUtils.java:1723-1735 | flink-python/src/main/java/org/apache/flink/table/utils/python/PythonTableUtils.java:257-270 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-python/src/main/java/org/apache/flink/streaming/api/utils/PythonTypeUtils.java:1723\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/streaming/api/utils/PythonTypeUtils.java"},"region":{"startLine":1723}}}],"partialFingerprints":{"codehealthFindingId/v1":"43f121a706e0444980469b7725a078738b8f00bc1391a744b81bb94cf838586d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): flink-python/src/main/java/org/apache/flink/streaming/api/utils/PythonTypeUtils.java:1740-1752 | flink-python/src/main/java/org/apache/flink/table/utils/python/PythonTableUtils.java:275-288 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-python/src/main/java/org/apache/flink/streaming/api/utils/PythonTypeUtils.java:1740\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/streaming/api/utils/PythonTypeUtils.java"},"region":{"startLine":1740}}}],"partialFingerprints":{"codehealthFindingId/v1":"32e55d8943075b7537f1daaa4f863345e5cc5ffa56ad6afaeaf9b1ef130bbbf1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): flink-runtime/src/main/java/org/apache/flink/streaming/api/datastream/AllWindowedStream.java:251-263 | flink-runtime/src/main/java/org/apache/flink/streaming/api/datastream/AllWindowedStream.java:398-410 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/datastream/AllWindowedStream.java"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"b59582bf96c929ff265ca118450cdd3ff5ad0b12249b11b53ff5f22ed62330c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): flink-runtime/src/main/java/org/apache/flink/streaming/api/datastream/AllWindowedStream.java:653-665 | flink-runtime/src/main/java/org/apache/flink/streaming/api/datastream/WindowedStream.java:421-433 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/datastream/AllWindowedStream.java"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e7de1d97f9fda677f65550b5cec58c49856e93ad804b2b746cee87b63bb3477"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): flink-runtime/src/main/java/org/apache/flink/streaming/api/datastream/AllWindowedStream.java:827-839 | flink-runtime/src/main/java/org/apache/flink/streaming/api/datastream/WindowedStream.java:533-545 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/datastream/AllWindowedStream.java"},"region":{"startLine":827}}}],"partialFingerprints":{"codehealthFindingId/v1":"c114332dcf883ca90c6a6cb358a51c8b1dbad5fc8d17e61bbd0e93355f0553e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): flink-runtime/src/main/java/org/apache/flink/streaming/api/datastream/WindowedStream.java:423-435 | flink-runtime/src/main/java/org/apache/flink/streaming/api/datastream/WindowedStream.java:536-548 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/datastream/WindowedStream.java"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"088c3cf2fe4898ae3937d83b19fed68a2d9cfc73423d550ac8b8bd452a9e621a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): flink-runtime/src/main/java/org/apache/flink/streaming/api/graph/StreamingJobGraphGenerator.java:1297-1309 | flink-runtime/src/main/java/org/apache/flink/streaming/api/graph/StreamingJobGraphGenerator.java:1321-1333 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/graph/StreamingJobGraphGenerator.java"},"region":{"startLine":1297}}}],"partialFingerprints":{"codehealthFindingId/v1":"037cbe3cd31483be0476fde85a8e73dca852d64d9134c0b221da4e08715a9106"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): flink-runtime/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/EvictingWindowOperator.java:211-223 | flink-runtime/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/EvictingWindowOperator.java:247-259 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-runtime/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/EvictingWindowOperator.java:211\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/EvictingWindowOperator.java"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"7254950c79d14e79bbc3355d025da553a9e480d78963e859254cf6783e611e3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): flink-runtime/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/WindowOperator.java:384-396 | flink-runtime/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/WindowOperator.java:416-428 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-runtime/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/WindowOperator.java:384\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/WindowOperator.java"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"29f52cae540b17bec17e04aec2f25bc054127d9b1d95e16b5dd13bc166d984dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/api/java/typeutils/PojoTypeInfo.java:225-237 | flink-core/src/main/java/org/apache/flink/api/java/typeutils/TupleTypeInfoBase.java:169-181 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/api/java/typeutils/PojoTypeInfo.java:225\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/java/typeutils/PojoTypeInfo.java"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ae96517b7b350692450fca87883a39fb3eb551e8356056957ee46477710ff6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/api/common/operators/base/GroupCombineOperatorBase.java:134-146 | flink-core/src/main/java/org/apache/flink/api/common/operators/base/GroupReduceOperatorBase.java:218-230 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/api/common/operators/base/GroupCombineOperatorBase.java:134\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/common/operators/base/GroupCombineOperatorBase.java"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcf3c5223a25f0a71ec178f69d1a15ed846e0284ce0fc35120a9a059ebda69d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/api/common/operators/base/SortPartitionOperatorBase.java:83-95 | flink-core/src/main/java/org/apache/flink/api/common/operators/GenericDataSinkBase.java:202-214 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/api/common/operators/base/SortPartitionOperatorBase.java:83\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/common/operators/base/SortPartitionOperatorBase.java"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc0228714c5965511c5a4e1ce3b23250df0f99856543a9f6f1c007cd62044299"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/api/common/operators/CollectionExecutor.java:380-392 | flink-core/src/main/java/org/apache/flink/api/common/operators/CollectionExecutor.java:501-513 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/api/common/operators/CollectionExecutor.java:380\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/common/operators/CollectionExecutor.java"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd4b7234ce0ec153750319b7eff826cb8dda9144c9a42059f0afbd49112ced39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/types/parser/IntParser.java:71-83 | flink-core/src/main/java/org/apache/flink/types/parser/ShortParser.java:70-82 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/types/parser/IntParser.java:71\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/parser/IntParser.java"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a504b31a295758081c8ef6fc456d7568bae302d0c1612b86c8251eb300c6f66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/types/parser/IntValueParser.java:71-83 | flink-core/src/main/java/org/apache/flink/types/parser/ShortValueParser.java:74-86 \u2014 before extracting anything, compare \u0060flink-core/src/main/java/org/apache/flink/types/parser/IntValueParser.java\u0060 and \u0060flink-core/src/main/java/org/apache/flink/types/parser/ShortValueParser.java\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/types/parser/IntValueParser.java:71\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/parser/IntValueParser.java"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"00dc8c67cf76316e15081751e760a2449c06fcbb868f0383911f6e4db8e5292e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/window/operators/TwoInputNonBroadcastWindowProcessOperator.java:534-546 | flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/window/operators/TwoInputNonBroadcastWindowProcessOperator.java:574-586 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/window/operators/TwoInputNonBroadcastWindowProcessOperator.java:534\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/window/operators/TwoInputNonBroadcastWindowProcessOperator.java"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"4262a945c0a4db88d1644586cb888c2c9761aefc02d1177c1037e1bb8d211ee6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): flink-datastream/src/main/java/org/apache/flink/datastream/impl/operators/TwoInputBroadcastProcessOperator.java:93-105 | flink-datastream/src/main/java/org/apache/flink/datastream/impl/operators/TwoInputNonBroadcastProcessOperator.java:98-110 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-datastream/src/main/java/org/apache/flink/datastream/impl/operators/TwoInputBroadcastProcessOperator.java:93\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-datastream/src/main/java/org/apache/flink/datastream/impl/operators/TwoInputBroadcastProcessOperator.java"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"45be25c92c803089e994162bc2786c94af63396815c257920012b968d86808f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): flink-datastream/src/main/java/org/apache/flink/datastream/impl/stream/KeyedPartitionStreamImpl.java:318-330 | flink-datastream/src/main/java/org/apache/flink/datastream/impl/stream/KeyedPartitionStreamImpl.java:375-389 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-datastream/src/main/java/org/apache/flink/datastream/impl/stream/KeyedPartitionStreamImpl.java:318\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-datastream/src/main/java/org/apache/flink/datastream/impl/stream/KeyedPartitionStreamImpl.java"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"55fcf474a8e059c79b96e68c7e05e259b58cb557c08438786db4831b94b608a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): flink-table/flink-sql-gateway/src/main/java/org/apache/flink/table/gateway/service/materializedtable/MaterializedTableManager.java:430-442 | flink-table/flink-sql-gateway/src/main/java/org/apache/flink/table/gateway/service/materializedtable/MaterializedTableManager.java:541-553 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-sql-gateway/src/main/java/org/apache/flink/table/gateway/service/materializedtable/MaterializedTableManager.java:430\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-sql-gateway/src/main/java/org/apache/flink/table/gateway/service/materializedtable/MaterializedTableManager.java"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5b4edb9b6155fa7dc77aaf89046ea83c3bce8df031fd342bafca3cd9111ca59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/window/asyncprocessing/AsyncStateWindowJoinOperator.java:129-141 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/window/WindowJoinOperator.java:114-126 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/window/asyncprocessing/AsyncStateWindowJoinOperator.java"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc463e241867c8a2d1541e90bcc504bf6cccfc01cae4af044df781bf50bb3550"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/rank/RetractableTopNFunction.java:268-280 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/rank/RetractableTopNFunction.java:385-397 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/rank/RetractableTopNFunction.java:268\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/rank/RetractableTopNFunction.java"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"3241e8bc886b259fb33704f29612ba9e96853102e257125600b1eab398f531be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/sort/BinaryExternalSorter.java:1022-1034 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/sort/BufferedKVExternalSorter.java:182-194 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/sort/BinaryExternalSorter.java:1022\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/sort/BinaryExternalSorter.java"},"region":{"startLine":1022}}}],"partialFingerprints":{"codehealthFindingId/v1":"52e49b6c1920e21793975d37a473fda580a16e8c924eef3f2085c778eb27250b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/window/groupwindow/operator/WindowOperator.java:305-318 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/window/tvf/operator/UnalignedWindowTableFunctionOperator.java:167-179 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/window/groupwindow/operator/WindowOperator.java:305\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/window/groupwindow/operator/WindowOperator.java"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fe2cac6a40fd52ef796c12cd4f1f044739118f1be03d4a04ce8ccc6dce121d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/aggregate/MaxWithRetractAggFunction.java:139-151 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/aggregate/MinWithRetractAggFunction.java:139-151 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/aggregate/MaxWithRetractAggFunction.java:139\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/aggregate/MaxWithRetractAggFunction.java"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e084234b9ba3b19e070d23401160f61195beba1db314855baaf34c15b1bbabf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/hashtable/BinaryHashBucketArea.java:253-265 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/hashtable/BinaryHashBucketArea.java:636-649 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/hashtable/BinaryHashBucketArea.java:253\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/hashtable/BinaryHashBucketArea.java"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"6feb1be7bf2f17a32769aa1908781b33cb9f92a8a6eaf31374972672249040ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/utils/OperationTreeBuilder.java:265-277 | flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/utils/OperationTreeBuilder.java:805-817 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/utils/OperationTreeBuilder.java"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c97c2104d96649684f916c4579da704cef2d5d1f5b9c4718646753296d2ab89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/catalog/DefaultSchemaResolver.java:372-384 | flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/catalog/DefaultSchemaResolver.java:519-531 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/catalog/DefaultSchemaResolver.java:372\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/catalog/DefaultSchemaResolver.java"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"9740dead11f3543c68e11ccc81b9858aab2eca1e915c13b3382c7ef783ea0c07"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): flink-table/flink-table-common/src/main/java/org/apache/flink/table/functions/python/PythonAggregateFunction.java:176-188 | flink-table/flink-table-common/src/main/java/org/apache/flink/table/functions/python/PythonTableAggregateFunction.java:175-187 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-common/src/main/java/org/apache/flink/table/functions/python/PythonAggregateFunction.java:176\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/functions/python/PythonAggregateFunction.java"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"196f30b0c17006a3395f316ccfb5b617e7a92ba3c57248b92cf3f633e22b41b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/expressions/converter/converters/TemporalOverlapsConverter.java:50-62 | flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/expressions/converter/converters/TemporalOverlapsConverter.java:68-82 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/expressions/converter/converters/TemporalOverlapsConverter.java:50\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/expressions/converter/converters/TemporalOverlapsConverter.java"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6cc11ab8b0a2cac88cb3c5eccac97fd97f6fe89da97ae97f03067f2c7407d85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/functions/casting/BooleanToNumericCastRule.java:65-77 | flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/functions/casting/BooleanToNumericCastRule.java:87-99 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/functions/casting/BooleanToNumericCastRule.java:65\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/functions/casting/BooleanToNumericCastRule.java"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"3df496a0f19ec2f4f575d2c5b6244e5b9dcd4d0cf6ab38ecf26f9054f187ceea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/functions/sql/ml/SqlMLTableFunction.java:248-260 | flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/functions/sql/ml/SqlVectorSearchTableFunction.java:339-351 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/functions/sql/ml/SqlMLTableFunction.java:248\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/functions/sql/ml/SqlMLTableFunction.java"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"d633fb6e1bb16322908ce257aeb5011fb5c91b880391d4394de3a611acc31c65"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 5): flink-core/src/main/java/org/apache/flink/types/parser/BigIntParser.java:38-49 | flink-core/src/main/java/org/apache/flink/types/parser/DoubleParser.java:36-47 | flink-core/src/main/java/org/apache/flink/types/parser/DoubleValueParser.java:35-46 | flink-core/src/main/java/org/apache/flink/types/parser/SqlDateParser.java:37-48 | flink-core/src/main/java/org/apache/flink/types/parser/SqlTimestampParser.java:38-49 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/parser/BigIntParser.java"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"d16e6e4d27f5ca35745f5ac915a6c57c6037890a43fb4ea78af01aa2947197ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): flink-python/src/main/java/org/apache/flink/streaming/api/operators/python/embedded/EmbeddedPythonKeyedCoProcessOperator.java:98-109 | flink-python/src/main/java/org/apache/flink/streaming/api/operators/python/embedded/EmbeddedPythonKeyedProcessOperator.java:97-108 | flink-python/src/main/java/org/apache/flink/streaming/api/operators/python/embedded/EmbeddedPythonWindowOperator.java:98-109 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/streaming/api/operators/python/embedded/EmbeddedPythonKeyedCoProcessOperator.java"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"c39282de9b5164a4565d245fbdc8a13de162d58084244292bafe1fba68464d45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/co/CoBroadcastWithKeyedOperator.java:297-308 | flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/co/CoBroadcastWithKeyedOperator.java:384-395 | flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/co/CoBroadcastWithNonKeyedOperator.java:246-257 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/co/CoBroadcastWithKeyedOperator.java"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"565fe5d546bab289fc611244b5caaaacfc61f9edfac69b09544812e3505156d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): flink-examples/flink-examples-streaming/src/main/java/org/apache/flink/streaming/examples/dsv2/eventtime/CountNewsClicks.java:184-195 | flink-examples/flink-examples-streaming/src/main/java/org/apache/flink/streaming/examples/dsv2/join/Join.java:159-170 | flink-examples/flink-examples-streaming/src/main/java/org/apache/flink/streaming/examples/dsv2/windowing/CountProductSalesWindowing.java:154-166 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-examples/flink-examples-streaming/src/main/java/org/apache/flink/streaming/examples/dsv2/eventtime/CountNewsClicks.java:184\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-examples/flink-examples-streaming/src/main/java/org/apache/flink/streaming/examples/dsv2/eventtime/CountNewsClicks.java"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"26e1313e2d2f745be91fb581e4a8834e6cdbe4bd717e37633f498f403c08c715"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): flink-examples/flink-examples-streaming/src/main/java/org/apache/flink/streaming/examples/windowing/TopSpeedWindowing.java:90-101 | flink-examples/flink-examples-streaming/src/main/java/org/apache/flink/streaming/examples/windowing/WindowWordCount.java:105-116 | flink-examples/flink-examples-streaming/src/main/java/org/apache/flink/streaming/examples/wordcount/WordCount.java:120-131 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-examples/flink-examples-streaming/src/main/java/org/apache/flink/streaming/examples/windowing/TopSpeedWindowing.java:90\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-examples/flink-examples-streaming/src/main/java/org/apache/flink/streaming/examples/windowing/TopSpeedWindowing.java"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"b08789bcf31b80ee6dc3916cf6dce371ebfb2fe3a763f1fe374ff773392b73f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): flink-core/src/main/java/org/apache/flink/api/common/operators/base/GroupReduceOperatorBase.java:159-170 | flink-core/src/main/java/org/apache/flink/api/common/operators/base/PartitionOperatorBase.java:105-116 | flink-core/src/main/java/org/apache/flink/api/common/operators/base/ReduceOperatorBase.java:183-194 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/api/common/operators/base/GroupReduceOperatorBase.java:159\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/common/operators/base/GroupReduceOperatorBase.java"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"c189c74c8f004e8d2079b83b3c180e944344d033640d9674836fe5d68acc06c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): flink-core/src/main/java/org/apache/flink/core/asyncprocessing/AsyncFutureImpl.java:234-245 | flink-core/src/main/java/org/apache/flink/core/asyncprocessing/AsyncFutureImpl.java:284-296 | flink-core/src/main/java/org/apache/flink/core/asyncprocessing/AsyncFutureImpl.java:330-341 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/core/asyncprocessing/AsyncFutureImpl.java:234\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/core/asyncprocessing/AsyncFutureImpl.java"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ee81cfb5c2b44df9ca885205f9612ec61c6607142f298f5730e39433b678fdf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): flink-datastream/src/main/java/org/apache/flink/datastream/impl/operators/TwoInputBroadcastProcessOperator.java:211-222 | flink-datastream/src/main/java/org/apache/flink/datastream/impl/operators/TwoInputNonBroadcastProcessOperator.java:219-230 | flink-datastream/src/main/java/org/apache/flink/datastream/impl/operators/TwoOutputProcessOperator.java:187-198 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-datastream/src/main/java/org/apache/flink/datastream/impl/operators/TwoInputBroadcastProcessOperator.java:211\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-datastream/src/main/java/org/apache/flink/datastream/impl/operators/TwoInputBroadcastProcessOperator.java"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"06119f15d9f3aa2bc137373d531dbc1c1704a320f1d7c176a8a1d3328deca59b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): flink-python/src/main/java/org/apache/flink/table/runtime/operators/python/aggregate/PythonStreamGroupWindowAggregateOperator.java:172-183 | flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/batch/BatchExecHashWindowAggregate.java:91-102 | flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/batch/BatchExecSortWindowAggregate.java:91-102 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-python/src/main/java/org/apache/flink/table/runtime/operators/python/aggregate/PythonStreamGroupWindowAggregateOperator.java:172\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/table/runtime/operators/python/aggregate/PythonStreamGroupWindowAggregateOperator.java"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0ff7660b7576d2045d0492a62c9f54efc535e7149c138b28df67b0e281b46ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): flink-table/flink-table-common/src/main/java/org/apache/flink/table/api/DataTypes.java:778-789 | flink-table/flink-table-common/src/main/java/org/apache/flink/table/api/DataTypes.java:967-978 | flink-table/flink-table-common/src/main/java/org/apache/flink/table/api/DataTypes.java:1013-1024 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-common/src/main/java/org/apache/flink/table/api/DataTypes.java:778\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/api/DataTypes.java"},"region":{"startLine":778}}}],"partialFingerprints":{"codehealthFindingId/v1":"da1671649fc87af481510779aaa38ed9308163cf38084686dabe36dfb3e8b0f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): flink-connectors/flink-connector-files/src/main/java/org/apache/flink/connector/file/src/assigners/LocalityAwareSplitAssigner.java:287-298 | flink-core/src/main/java/org/apache/flink/api/common/io/LocatableInputSplitAssigner.java:312-323 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-connectors/flink-connector-files/src/main/java/org/apache/flink/connector/file/src/assigners/LocalityAwareSplitAssigner.java:287\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-connectors/flink-connector-files/src/main/java/org/apache/flink/connector/file/src/assigners/LocalityAwareSplitAssigner.java"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"b76bf5c2361f26ba1d58c97d02090d6ece7ce2e9303baf9c7879ea12e6fd8775"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): flink-python/src/main/java/org/apache/flink/streaming/api/operators/python/process/ExternalPythonKeyedCoProcessOperator.java:115-126 | flink-python/src/main/java/org/apache/flink/streaming/api/operators/python/process/ExternalPythonKeyedProcessOperator.java:141-152 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-python/src/main/java/org/apache/flink/streaming/api/operators/python/process/ExternalPythonKeyedCoProcessOperator.java:115\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/streaming/api/operators/python/process/ExternalPythonKeyedCoProcessOperator.java"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9a7782e880952e6a857b3b8fb06e90908f29c727b9127477eb3b14d70dd764e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): flink-python/src/main/java/org/apache/flink/streaming/api/utils/PythonTypeUtils.java:1690-1701 | flink-python/src/main/java/org/apache/flink/table/utils/python/PythonTableUtils.java:222-234 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-python/src/main/java/org/apache/flink/streaming/api/utils/PythonTypeUtils.java:1690\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/streaming/api/utils/PythonTypeUtils.java"},"region":{"startLine":1690}}}],"partialFingerprints":{"codehealthFindingId/v1":"9324503169e2febbc03f44dbb3142bcc4f9b501add185b98d6df2883954eabc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): flink-runtime/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/WindowOperator.java:474-485 | flink-runtime/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/WindowOperator.java:521-532 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-runtime/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/WindowOperator.java:474\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/WindowOperator.java"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cb9104011558a36817f6f997e30654b7316c8702c97d30bf9564e70e35a74e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): flink-runtime/src/main/java/org/apache/flink/streaming/runtime/tasks/SystemProcessingTimeService.java:116-127 | flink-runtime/src/main/java/org/apache/flink/streaming/runtime/tasks/SystemProcessingTimeService.java:154-165 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-runtime/src/main/java/org/apache/flink/streaming/runtime/tasks/SystemProcessingTimeService.java:116\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/runtime/tasks/SystemProcessingTimeService.java"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d5dcde780590b2141c4b41a2d12dd4de1d5cbea7cd4891bb7f53d031c167564"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): flink-connectors/flink-hadoop-compatibility/src/main/java/org/apache/flink/api/java/hadoop/mapreduce/HadoopInputFormatBase.java:304-315 | flink-connectors/flink-hadoop-compatibility/src/main/java/org/apache/flink/api/java/hadoop/mapreduce/HadoopOutputFormatBase.java:255-266 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-connectors/flink-hadoop-compatibility/src/main/java/org/apache/flink/api/java/hadoop/mapreduce/HadoopInputFormatBase.java:304\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-connectors/flink-hadoop-compatibility/src/main/java/org/apache/flink/api/java/hadoop/mapreduce/HadoopInputFormatBase.java"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e38983e16c598fc3ca63df665a046f6ad9b0f69715151ace006dd31daa6dbc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/api/java/typeutils/RowTypeInfo.java:173-184 | flink-core/src/main/java/org/apache/flink/api/java/typeutils/TupleTypeInfoBase.java:188-199 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/java/typeutils/RowTypeInfo.java"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c80e5a9e185a8d8bc617d748e0ce05b4d88ea4b47ee910e6f7efafc0b1be67f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): flink-core-api/src/main/java/org/apache/flink/configuration/MemorySize.java:268-279 | flink-core-api/src/main/java/org/apache/flink/configuration/MemorySize.java:392-404 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core-api/src/main/java/org/apache/flink/configuration/MemorySize.java:268\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core-api/src/main/java/org/apache/flink/configuration/MemorySize.java"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"2955917d9973c413a783b1ea6da01aa2ba0afc1dd09eee517b225f297244554c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/types/parser/FloatParser.java:33-44 | flink-core/src/main/java/org/apache/flink/types/parser/FloatValueParser.java:35-46 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/parser/FloatParser.java"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"917273c1cb4fc4a40be80c4c17ac711f5dca4b5ef28db5e360b6c1287d1d36d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): flink-test-utils-parent/flink-test-utils-junit/src/main/java/org/apache/flink/util/TestLogger.java:78-89 | flink-test-utils-parent/flink-test-utils-junit/src/main/java/org/apache/flink/util/TestLoggerExtension.java:69-80 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-test-utils-parent/flink-test-utils-junit/src/main/java/org/apache/flink/util/TestLogger.java:78\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-test-utils-parent/flink-test-utils-junit/src/main/java/org/apache/flink/util/TestLogger.java"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe6af68b35e430edfd98f0407c9e088269beace5f2c26bb1a2c1d72efe8d7279"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/core/asyncprocessing/AsyncFutureImpl.java:391-402 | flink-core/src/main/java/org/apache/flink/core/asyncprocessing/AsyncFutureImpl.java:454-465 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/core/asyncprocessing/AsyncFutureImpl.java:391\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/core/asyncprocessing/AsyncFutureImpl.java"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"952f0ffd854fd8a24d692a4b12ac2576756ad3dc26b2a50909924d9c5b11a946"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): flink-datastream/src/main/java/org/apache/flink/datastream/impl/stream/KeyedPartitionStreamImpl.java:429-440 | flink-datastream/src/main/java/org/apache/flink/datastream/impl/stream/NonKeyedPartitionStreamImpl.java:246-257 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-datastream/src/main/java/org/apache/flink/datastream/impl/stream/KeyedPartitionStreamImpl.java"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a3cbbe22287e18ee5d2721320581b2ed9a173de62b167581240f6dc1f3619aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): flink-table/flink-sql-parser/src/main/java/org/apache/flink/sql/parser/ddl/SqlAlterFunction.java:133-144 | flink-table/flink-sql-parser/src/main/java/org/apache/flink/sql/parser/ddl/SqlDropFunction.java:66-77 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-sql-parser/src/main/java/org/apache/flink/sql/parser/ddl/SqlAlterFunction.java"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"125211d7c1681218e2cc63aa41fa978ecfaef670383e6e8c3cbf78350ef77981"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): flink-python/src/main/java/org/apache/flink/table/runtime/operators/python/aggregate/AbstractPythonStreamAggregateOperator.java:184-195 | flink-python/src/main/java/org/apache/flink/table/runtime/operators/python/AbstractStatelessFunctionOperator.java:114-125 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-python/src/main/java/org/apache/flink/table/runtime/operators/python/aggregate/AbstractPythonStreamAggregateOperator.java:184\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/table/runtime/operators/python/aggregate/AbstractPythonStreamAggregateOperator.java"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c91648dd3ffe7815c9b6545e931b508adcfc54f2a335c332b049077658f8dcd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/aggregate/asyncwindow/processors/AbstractAsyncStateSliceWindowAggProcessor.java:115-126 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/aggregate/window/processors/AbstractSliceSyncStateWindowAggProcessor.java:98-109 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/aggregate/asyncwindow/processors/AbstractAsyncStateSliceWindowAggProcessor.java:115\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/aggregate/asyncwindow/processors/AbstractAsyncStateSliceWindowAggProcessor.java"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"50d59908646b9538bd14f9fc79307835ed3ec1b28e9301c34904546c60ca9bae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/window/tvf/slicing/SliceAssigners.java:681-692 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/window/tvf/unslicing/UnsliceAssigners.java:130-141 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/window/tvf/slicing/SliceAssigners.java:681\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/window/tvf/slicing/SliceAssigners.java"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"39df710ddc0eba9e375ef3b6498df3fa5163c0975f9f6429c798cae6a2640895"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): flink-python/src/main/java/org/apache/flink/table/runtime/typeutils/serializers/python/DecimalDataSerializer.java:178-189 | flink-table/flink-table-type-utils/src/main/java/org/apache/flink/table/runtime/typeutils/DecimalDataSerializer.java:188-199 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-python/src/main/java/org/apache/flink/table/runtime/typeutils/serializers/python/DecimalDataSerializer.java:178\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/table/runtime/typeutils/serializers/python/DecimalDataSerializer.java"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"4897ea25f173192cf32a480bf1e8d15dca3eccb3643f51b5a88851a08eab1266"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/hashtable/BinaryHashTable.java:503-514 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/hashtable/LongHybridHashTable.java:522-533 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/hashtable/BinaryHashTable.java:503\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/hashtable/BinaryHashTable.java"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec9d12abd754d7915d353e7b0f9fa61ad7f9a93c7255604a7f1c822d093ef5e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/hashtable/BinaryHashTable.java:544-555 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/hashtable/LongHybridHashTable.java:555-566 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/hashtable/BinaryHashTable.java:544\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/hashtable/BinaryHashTable.java"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"edd1577cddeb60fc370939fe44c70d4e5af6d68b87571eb4349e67d03da61aa7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/strategy/BaseAdaptiveJoinOperatorOptimizationStrategy.java:109-120 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/strategy/BaseAdaptiveJoinOperatorOptimizationStrategy.java:127-138 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/strategy/BaseAdaptiveJoinOperatorOptimizationStrategy.java:109\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/strategy/BaseAdaptiveJoinOperatorOptimizationStrategy.java"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5ca01dab7d3c6d7437a8d28754b2a4af8523a989079ae1cdbbd60b0d86c5256"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/util/StringUtf8Utils.java:177-188 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/util/StringUtf8Utils.java:275-286 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/util/StringUtf8Utils.java:177\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/util/StringUtf8Utils.java"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"5364d38ddfad071cc77c1c6e32f29fc834a4fed2da746701c56281e4574f932e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/utils/AggregateOperationFactory.java:594-605 | flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/utils/CorrelatedFunctionTableFactory.java:83-94 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/utils/AggregateOperationFactory.java:594\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/utils/AggregateOperationFactory.java"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"73afd5527cc93e341624c80071ff12b8625298df8815037e2d4dfabdbb18755a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/utils/OperationTreeBuilder.java:323-334 | flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/utils/OperationTreeBuilder.java:809-820 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/utils/OperationTreeBuilder.java"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"07cf9b4942efd7e308ce844fbd587edf070aa627ab393d80c0eb1af564be97c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/PartitionQueryOperation.java:88-99 | flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/expressions/resolver/rules/ResolveCallByArgumentsRule.java:818-829 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/PartitionQueryOperation.java:88\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/PartitionQueryOperation.java"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"4687e0b61d25bdbb6bc48cd9315894cf8e05884aeb9929a9a27e30ad474ec2e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/PartitionQueryOperation.java:104-115 | flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/expressions/resolver/rules/ResolveCallByArgumentsRule.java:834-847 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/PartitionQueryOperation.java:104\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/PartitionQueryOperation.java"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"295f30df2bf3fcf2bff854b3765faa0225a847fc51fd6af0d7990035f8a0f329"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): flink-table/flink-table-common/src/main/java/org/apache/flink/table/functions/LegacyUserDefinedFunctionInference.java:132-143 | flink-table/flink-table-common/src/main/java/org/apache/flink/table/functions/LegacyUserDefinedFunctionInference.java:210-221 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-common/src/main/java/org/apache/flink/table/functions/LegacyUserDefinedFunctionInference.java:132\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/functions/LegacyUserDefinedFunctionInference.java"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"e04810356ea7525c08c0906cafcf4dd626cd688f0eb1069da7ba1a80a87c4c6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/calcite/RelTimeIndicatorConverter.java:356-367 | flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/calcite/RelTimeIndicatorConverter.java:386-397 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/calcite/RelTimeIndicatorConverter.java:356\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/calcite/RelTimeIndicatorConverter.java"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aa43552407ba657f248cf516adddba653cce9b129b1a1f48a51338950a3e236"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/expressions/CallExpressionResolver.java:45-56 | flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/operations/DeletePushDownUtils.java:241-252 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/expressions/CallExpressionResolver.java:45\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/expressions/CallExpressionResolver.java"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce32966b4cf25cf7e766229042ff1ba049cfb43d0b7ef22a123d2238dbaeb539"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/expressions/SqlAggFunctionVisitor.java:158-169 | flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/expressions/SqlAggFunctionVisitor.java:178-189 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/expressions/SqlAggFunctionVisitor.java:158\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/expressions/SqlAggFunctionVisitor.java"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b3373ff921747ca397b0bdc329f9b75f1fb955190624e8fa9fa2d6990f2dc0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 21): flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:138-149 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:221-233 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:243-254 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:317-328 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:379-390 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:479-490 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:557-568 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:637-648 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:673-684 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:727-738 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:765-777 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:797-809 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:869-880 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:891-903 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:910-921 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:976-986 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:1033-1044 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:1052-1062 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:1075-1086 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:1149-1159 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:1263-1274 \u2014 all 21 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2caa59bb8c127e40d2412f5a218bddbcc7e7c94d0f48e9f120c8cb908be50d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 6): flink-datastream/src/main/java/org/apache/flink/datastream/impl/operators/ProcessOperator.java:146-157 | flink-datastream/src/main/java/org/apache/flink/datastream/impl/operators/TwoInputBroadcastProcessOperator.java:147-157 | flink-datastream/src/main/java/org/apache/flink/datastream/impl/operators/TwoInputBroadcastProcessOperator.java:167-177 | flink-datastream/src/main/java/org/apache/flink/datastream/impl/operators/TwoInputNonBroadcastProcessOperator.java:155-165 | flink-datastream/src/main/java/org/apache/flink/datastream/impl/operators/TwoInputNonBroadcastProcessOperator.java:175-185 | flink-datastream/src/main/java/org/apache/flink/datastream/impl/operators/TwoOutputProcessOperator.java:156-166 \u2014 there are 6 copies across 4 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 6 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-datastream/src/main/java/org/apache/flink/datastream/impl/operators/ProcessOperator.java:146\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-datastream/src/main/java/org/apache/flink/datastream/impl/operators/ProcessOperator.java"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"f78b5cf1e2f1f12c577753b754666e8b30ef49360bf8949c7979003e5ba158bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): flink-runtime/src/main/java/org/apache/flink/streaming/api/datastream/AllWindowedStream.java:592-602 | flink-runtime/src/main/java/org/apache/flink/streaming/api/datastream/AllWindowedStream.java:784-794 | flink-runtime/src/main/java/org/apache/flink/streaming/api/datastream/WindowedStream.java:380-390 | flink-runtime/src/main/java/org/apache/flink/streaming/api/datastream/WindowedStream.java:469-479 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/datastream/AllWindowedStream.java"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd61c66e6f97bf2c344fbcff260c2f8da3a6af513052eefd11a85a7423fc78f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): flink-core/src/main/java/org/apache/flink/types/parser/ByteValueParser.java:57-68 | flink-core/src/main/java/org/apache/flink/types/parser/IntValueParser.java:57-67 | flink-core/src/main/java/org/apache/flink/types/parser/LongValueParser.java:54-64 | flink-core/src/main/java/org/apache/flink/types/parser/ShortValueParser.java:60-70 \u2014 before extracting anything, compare \u0060flink-core/src/main/java/org/apache/flink/types/parser/IntValueParser.java\u0060 and \u0060flink-core/src/main/java/org/apache/flink/types/parser/ShortValueParser.java\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/types/parser/ByteValueParser.java:57\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/parser/ByteValueParser.java"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cd437dd0f3fea84e483047f9afa6a11d6b015423827bf80530db4521150ec80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:226-237 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:874-884 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:896-907 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:1226-1236 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"44edcae80fa92c557bad51c8d36fa3f713424246612e63c80da58b8989e93381"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/aggregate/window/LocalSlicingWindowAggOperator.java:152-162 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/AsyncStateTableStreamOperator.java:62-72 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/TableStreamOperator.java:67-77 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/aggregate/window/LocalSlicingWindowAggOperator.java:152\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/aggregate/window/LocalSlicingWindowAggOperator.java"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"c75bad4f3cde0e95ce55cf0946c092a8ae2791befab1d51bdb70cdf9a6093ef6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): flink-table/flink-table-common/src/main/java/org/apache/flink/table/functions/python/PythonAsyncScalarFunction.java:139-149 | flink-table/flink-table-common/src/main/java/org/apache/flink/table/functions/python/PythonScalarFunction.java:158-168 | flink-table/flink-table-common/src/main/java/org/apache/flink/table/functions/python/PythonTableFunction.java:159-169 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-common/src/main/java/org/apache/flink/table/functions/python/PythonAsyncScalarFunction.java:139\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/functions/python/PythonAsyncScalarFunction.java"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"18b4cb30bf486d4d7eeaa99d58682975d5a24685a29ebecaed7811d607138d35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/functions/sql/SqlCumulateTableFunction.java:56-66 | flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/functions/sql/SqlHopTableFunction.java:56-66 | flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/functions/sql/SqlTumbleTableFunction.java:54-64 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/functions/sql/SqlCumulateTableFunction.java"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"864f3f5a2fe7492ff8b44e073f075c33ef56195486046e3af69e2106c62fe909"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): flink-test-utils-parent/flink-connector-test-utils/src/main/java/org/apache/flink/connector/testframe/testsuites/SourceTestSuiteBase.java:183-193 | flink-test-utils-parent/flink-connector-test-utils/src/main/java/org/apache/flink/connector/testframe/testsuites/SourceTestSuiteBase.java:499-509 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-test-utils-parent/flink-connector-test-utils/src/main/java/org/apache/flink/connector/testframe/testsuites/SourceTestSuiteBase.java:183\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-test-utils-parent/flink-connector-test-utils/src/main/java/org/apache/flink/connector/testframe/testsuites/SourceTestSuiteBase.java"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"29921e2f79e0b256428687739dc3779b8aeb553b247617a419fc58c2e9cccd9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): flink-runtime/src/main/java/org/apache/flink/streaming/api/functions/windowing/ReduceApplyProcessAllWindowFunction.java:56-66 | flink-runtime/src/main/java/org/apache/flink/streaming/api/functions/windowing/ReduceApplyProcessWindowFunction.java:56-66 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/functions/windowing/ReduceApplyProcessAllWindowFunction.java"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e76ddd1ed886eb1f61a2f195523d8e8f41b194ad6eeb78ac686f603b0e48747"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): flink-python/src/main/java/org/apache/flink/streaming/api/operators/python/embedded/EmbeddedPythonCoProcessOperator.java:73-83 | flink-python/src/main/java/org/apache/flink/streaming/api/operators/python/embedded/EmbeddedPythonProcessOperator.java:72-82 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/streaming/api/operators/python/embedded/EmbeddedPythonCoProcessOperator.java"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea6b5cf0178c551602538bb551a293ed90f2da4cb34c457df10556ee81f5f000"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/co/CoBroadcastWithKeyedOperator.java:98-108 | flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/co/CoBroadcastWithNonKeyedOperator.java:84-94 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/co/CoBroadcastWithKeyedOperator.java:98\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/co/CoBroadcastWithKeyedOperator.java"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca77354d076ec7ae4a2e782ef70424f0c2e1f623251f00a73d0eeac25043def9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/co/CoBroadcastWithKeyedOperator.java:198-208 | flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/co/CoBroadcastWithNonKeyedOperator.java:164-174 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/co/CoBroadcastWithKeyedOperator.java"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f0e6ffe5a58148378f8864bf002ac29e5d07afddfc90cf461267c025780b74f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/sort/VariableLengthByteKeyComparator.java:108-119 | flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/sortpartition/VariableLengthByteKeyAndValueComparator.java:113-123 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/sort/VariableLengthByteKeyComparator.java:108\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/sort/VariableLengthByteKeyComparator.java"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"17b89679d9c04b71bbdb4b13a61f7781de552cf0d5f87c73dab6d1a209d2caa5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): flink-python/src/main/java/org/apache/flink/streaming/api/runners/python/beam/state/BeamKeyedStateStore.java:168-178 | flink-python/src/main/java/org/apache/flink/streaming/api/runners/python/beam/state/BeamOperatorStateStore.java:90-100 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/streaming/api/runners/python/beam/state/BeamKeyedStateStore.java"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"00d30c3d0365b2d35b77bca7b22bb17d37673691388264da4861e8162c3f28a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): flink-streaming-java/src/main/java/org/apache/flink/streaming/api/windowing/triggers/AsyncProcessingTimeoutTrigger.java:119-129 | flink-streaming-java/src/main/java/org/apache/flink/streaming/api/windowing/triggers/AsyncProcessingTimeoutTrigger.java:136-146 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-streaming-java/src/main/java/org/apache/flink/streaming/api/windowing/triggers/AsyncProcessingTimeoutTrigger.java:119\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-streaming-java/src/main/java/org/apache/flink/streaming/api/windowing/triggers/AsyncProcessingTimeoutTrigger.java"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8e45bfd734a9ed6a1569ca1b0f44ff258fffdccadaf0ad9040a4290d0af9c1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): flink-runtime/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/EvictingWindowOperator.java:304-314 | flink-runtime/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/EvictingWindowOperator.java:352-362 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-runtime/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/EvictingWindowOperator.java:304\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/EvictingWindowOperator.java"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"693ab0cb323b915c08d0ffa0a1f08799c35bf8e05e6099286ac314850dc1da85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): flink-runtime/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/MergingWindowSet.java:84-94 | flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/window/operators/MergingWindowSet.java:76-86 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-runtime/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/MergingWindowSet.java:84\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/MergingWindowSet.java"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"6945d05d2b4f8ad3c95527202d6ef14c105077fd4e4900231a122ea92d844720"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): flink-runtime/src/main/java/org/apache/flink/streaming/util/typeutils/FieldAccessor.java:156-166 | flink-runtime/src/main/java/org/apache/flink/streaming/util/typeutils/FieldAccessor.java:201-211 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/util/typeutils/FieldAccessor.java"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec871fe866b6034d64a00a4708c09b0190b3f86553abd33961b376747f858f17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/api/java/typeutils/PojoTypeInfo.java:157-167 | flink-core/src/main/java/org/apache/flink/api/java/typeutils/TupleTypeInfoBase.java:104-114 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/api/java/typeutils/PojoTypeInfo.java:157\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/java/typeutils/PojoTypeInfo.java"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f1c61b1e464189e18c75eb1476270ce70c4a656783613cbc03173fefedbbdf2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/api/common/io/GenericCsvInputFormat.java:212-222 | flink-core/src/main/java/org/apache/flink/api/common/io/GenericCsvInputFormat.java:248-258 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/api/common/io/GenericCsvInputFormat.java:212\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/common/io/GenericCsvInputFormat.java"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"18eb0a8c8bb0b920168e526563681589b160931382e4c1c493a97620408e515b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/api/common/io/GenericCsvInputFormat.java:426-436 | flink-core/src/main/java/org/apache/flink/api/common/io/GenericCsvInputFormat.java:457-467 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/api/common/io/GenericCsvInputFormat.java:426\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/common/io/GenericCsvInputFormat.java"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6b2c3b59f5a2061074f13ffaa51bc79fda9fca5fe07adbbb1adc0b612f4c020"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/api/common/io/LocatableInputSplitAssigner.java:85-95 | flink-core/src/main/java/org/apache/flink/api/common/io/LocatableInputSplitAssigner.java:184-194 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/api/common/io/LocatableInputSplitAssigner.java:85\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/common/io/LocatableInputSplitAssigner.java"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a84bf54f63a1e1120146acf33fc192ad70feca0fd50836ec3798bf780d27103"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/api/common/operators/base/CoGroupOperatorBase.java:248-258 | flink-core/src/main/java/org/apache/flink/api/common/operators/base/CoGroupOperatorBase.java:273-283 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/common/operators/base/CoGroupOperatorBase.java"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5a0ef88ee42d2f2af01fb9a041b5f793fdb1fae35db9f41338725f567769a18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/api/common/operators/base/GroupCombineOperatorBase.java:168-178 | flink-core/src/main/java/org/apache/flink/api/common/operators/base/GroupReduceOperatorBase.java:251-261 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/common/operators/base/GroupCombineOperatorBase.java"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"7266232cc190edd561b5e516fb6732cf90a1a756c02c2d7319d02e1c4c6c3043"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/api/common/typeutils/base/MapSerializer.java:174-184 | flink-table/flink-table-type-utils/src/main/java/org/apache/flink/table/runtime/typeutils/AbstractMapSerializer.java:162-172 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/api/common/typeutils/base/MapSerializer.java:174\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/common/typeutils/base/MapSerializer.java"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3eb71c116b3e50b27071d6a3204d8ea783c092c3fabbf3d03fb5b8ef2f4fc57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/types/parser/LongParser.java:61-71 | flink-core/src/main/java/org/apache/flink/types/parser/LongValueParser.java:65-75 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/types/parser/LongParser.java:61\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/parser/LongParser.java"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8e7d9ec5d3f9e9887892a487684fa3aeccb3f4ac73aa1331ccfd8fc9a8cde0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/types/parser/LongParser.java:79-89 | flink-core/src/main/java/org/apache/flink/types/parser/LongValueParser.java:83-93 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/types/parser/LongParser.java:79\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/parser/LongParser.java"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5f351bca93995876c613baa703df6147c090b03b4be5fef15dab54cd5d849a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/types/parser/StringParser.java:59-69 | flink-core/src/main/java/org/apache/flink/types/parser/StringValueParser.java:63-73 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/types/parser/StringParser.java:59\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/parser/StringParser.java"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"574ce781174cea802aad674efe2ab6568dcff60d9f47074a98518004081b2127"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/types/Record.java:591-601 | flink-core/src/main/java/org/apache/flink/types/Record.java:685-695 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/types/Record.java:591\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/Record.java"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d51347f44b3794fc6fbd1c4a22f184ccbc9cf510ded685b940dc69196d98d36"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/types/Record.java:1732-1742 | flink-core/src/main/java/org/apache/flink/core/memory/AbstractPagedOutputView.java:323-333 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/types/Record.java:1732\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/Record.java"},"region":{"startLine":1732}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdedef428a95e6bb7d604906fcc1e69d0754c7c51e1beb0de2d2ec5ac3a47790"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/util/StringUtils.java:293-303 | flink-table/flink-sql-jdbc-driver/src/main/java/org/apache/flink/table/jdbc/utils/DriverUtils.java:73-83 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/util/StringUtils.java:293\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/util/StringUtils.java"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0f89eb58273fb10742b7e570e47d0a2390b642fc64ba9738c7773caa5ab807f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): flink-datastream/src/main/java/org/apache/flink/datastream/impl/stream/BroadcastStreamImpl.java:66-76 | flink-datastream/src/main/java/org/apache/flink/datastream/impl/stream/BroadcastStreamImpl.java:131-141 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-datastream/src/main/java/org/apache/flink/datastream/impl/stream/BroadcastStreamImpl.java"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"eab9248172fc4c715465ed6e6dbd0d781e6c6937b2ad38bbe8e96033feb69f88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): flink-table/flink-sql-parser/src/main/java/org/apache/flink/sql/parser/ddl/materializedtable/SqlCreateMaterializedTable.java:70-80 | flink-table/flink-sql-parser/src/main/java/org/apache/flink/sql/parser/ddl/materializedtable/SqlCreateOrAlterMaterializedTable.java:54-64 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-sql-parser/src/main/java/org/apache/flink/sql/parser/ddl/materializedtable/SqlCreateMaterializedTable.java:70\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-sql-parser/src/main/java/org/apache/flink/sql/parser/ddl/materializedtable/SqlCreateMaterializedTable.java"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"60888f25e42afd2b49de541514f28050b4da6d1048c0ba6a5ad91f4d77af0e49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/aggregate/window/processors/UnsliceSyncStateWindowAggProcessor.java:373-383 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/window/tvf/operator/UnalignedWindowTableFunctionOperator.java:489-499 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/aggregate/window/processors/UnsliceSyncStateWindowAggProcessor.java:373\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/aggregate/window/processors/UnsliceSyncStateWindowAggProcessor.java"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"119d6f5548c8fb98d3b9ca625510f11a6173a07568557e929e6156029c626943"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/window/utils/WindowJoinHelper.java:317-328 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/window/utils/WindowJoinHelper.java:345-355 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/window/utils/WindowJoinHelper.java:317\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/window/utils/WindowJoinHelper.java"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3d8e0be5710149d2e4457922d6034b571ee30cabbc76c402cd9584f985168ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/over/RowTimeRangeBoundedPrecedingFunction.java:153-163 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/over/RowTimeRowsBoundedPrecedingFunction.java:162-172 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/over/RowTimeRangeBoundedPrecedingFunction.java:153\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/over/RowTimeRangeBoundedPrecedingFunction.java"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f7c6f742da225a7642db338fbd9ca583cb8abd474f369ad6dd0b95c025175c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/sort/BinaryIndexedSortable.java:236-246 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/sort/BinaryKVInMemorySortBuffer.java:80-90 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/sort/BinaryIndexedSortable.java:236\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/sort/BinaryIndexedSortable.java"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"341c2ef9809b3636fdd18acd3c096a7407f0a4c3a4bb10bcabdc5d41be1aeaf6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/window/tvf/operator/AlignedWindowTableFunctionOperator.java:56-66 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/window/tvf/operator/UnalignedWindowTableFunctionOperator.java:197-208 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/window/tvf/operator/AlignedWindowTableFunctionOperator.java:56\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/window/tvf/operator/AlignedWindowTableFunctionOperator.java"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"8df3c9f41e1853739f9549e647141f2b7eafeb1cd8e9347603f359c6d78e864d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/aggregate/MaxWithRetractAggFunction.java:199-209 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/aggregate/MinWithRetractAggFunction.java:199-209 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/aggregate/MaxWithRetractAggFunction.java:199\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/aggregate/MaxWithRetractAggFunction.java"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f8dcc48f1ce8a31739641537531f380b3671844978603db86beb3e34d13b1b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/scalar/ArrayMaxFunction.java:73-83 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/scalar/ArrayMinFunction.java:73-83 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/scalar/ArrayMaxFunction.java:73\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/scalar/ArrayMaxFunction.java"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e7f8f217493e6c65900dcc2eb3533bf51bd661f6356430f17f7591b843f9fd2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/hashtable/BinaryHashBucketArea.java:284-294 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/hashtable/BinaryHashBucketArea.java:662-672 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/hashtable/BinaryHashBucketArea.java:284\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/hashtable/BinaryHashBucketArea.java"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"f81156219a2573c2ecc7ccc88931f81973f46ab4a2512dfdf2321f37f534fe18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/hashtable/BinaryHashPartition.java:432-442 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/hashtable/LongHashPartition.java:795-805 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/hashtable/BinaryHashPartition.java:432\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/hashtable/BinaryHashPartition.java"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"55523848bd406b89b1f025ee85b8f943a1d63fca9b0c75f6f1e1d75129c0ccd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/hashtable/BinaryHashPartition.java:579-590 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/hashtable/LongHashPartition.java:730-740 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/hashtable/BinaryHashPartition.java:579\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/hashtable/BinaryHashPartition.java"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"a96ba32a111fceef77e5e67a1cb8d851bcfad5324619ac2309baed71bef790ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): flink-table/flink-table-common/src/main/java/org/apache/flink/table/catalog/Column.java:270-280 | flink-table/flink-table-common/src/main/java/org/apache/flink/table/legacy/api/TableColumn.java:244-254 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/catalog/Column.java"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"25f6300b4a14206accd75a2c5036d25971b81a65f45d8dcb9b1204a795442cab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): flink-table/flink-table-common/src/main/java/org/apache/flink/table/catalog/Column.java:367-377 | flink-table/flink-table-common/src/main/java/org/apache/flink/table/legacy/api/TableColumn.java:314-324 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/catalog/Column.java"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8474d9f9bbda6117e16e9118ab127f657dd3b989dd3a1052c089a97dfb907a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): flink-table/flink-table-common/src/main/java/org/apache/flink/table/catalog/UniqueConstraint.java:98-108 | flink-table/flink-table-common/src/main/java/org/apache/flink/table/legacy/api/constraints/UniqueConstraint.java:94-104 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/catalog/UniqueConstraint.java"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"e83c761f2551ba80992927b0a9ee5e2d51701db5a266bc165079714148dda7da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/functions/SqlLikeUtils.java:95-105 | flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/functions/SqlLikeUtils.java:243-253 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/functions/SqlLikeUtils.java:95\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/functions/SqlLikeUtils.java"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"73297e05e534573691b859ce3780001ae6a35c8ba04dd7cdba4bca46f516ccf3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): flink-table/flink-table-common/src/main/java/org/apache/flink/table/functions/ScalarFunction.java:125-135 | flink-table/flink-table-common/src/main/java/org/apache/flink/table/functions/TableFunction.java:176-186 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-common/src/main/java/org/apache/flink/table/functions/ScalarFunction.java:125\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/functions/ScalarFunction.java"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf2737d6cac239a60d15fd2f234fb98c362ca27f12d74550dc7005ca778cc9f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/operations/converters/SqlAlterModelResetConverter.java:54-64 | flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/operations/converters/SqlAlterModelSetConverter.java:50-60 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/operations/converters/SqlAlterModelResetConverter.java"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e9b3b8107881f2eb4d2b3b0e58f72d2586546078e6ca5263a7427a59fa5e255"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/batch/BatchExecHashAggregate.java:172-183 | flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/batch/BatchExecSortAggregate.java:154-164 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/batch/BatchExecHashAggregate.java"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"40d726ba1cdfe8282d306e30e75b8efa39da97b9eb0a3235dd31b8137b41a100"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/batch/BatchExecHashWindowAggregate.java:111-121 | flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/batch/BatchExecSortWindowAggregate.java:111-122 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/batch/BatchExecHashWindowAggregate.java"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"b16f8c66425ed20b53386188c7d756ad0d747a0d8686a1d6dc42afb13bb0d10f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 13): flink-clients/src/main/java/org/apache/flink/client/deployment/application/PackagedProgramApplicationEntry.java:75-84 | flink-connectors/flink-connector-files/src/main/java/org/apache/flink/connector/file/table/FileSystemOutputFormat.java:89-98 | flink-runtime/src/main/java/org/apache/flink/streaming/api/graph/NonChainedOutput.java:78-87 | flink-dstl/flink-dstl-dfs/src/main/java/org/apache/flink/changelog/fs/RetryingExecutor.java:205-214 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/deltajoin/AsyncDeltaJoinRunner.java:119-131 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/deltajoin/AsyncDeltaJoinRunner.java:310-319 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/stream/MiniBatchStreamingJoinOperator.java:332-341 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/HashJoinOperator.java:412-421 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/SortMergeJoinFunction.java:113-122 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/process/RuntimeTableSemantics.java:64-73 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/StreamingDeltaJoinOperatorFactory.java:70-79 | flink-table/flink-table-api-java-bridge/src/main/java/org/apache/flink/table/sources/CsvTableSource.java:552-561 | flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/adaptive/AdaptiveJoinOperatorGenerator.java:71-80 \u2014 there are 13 copies across 12 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 13 sites; resolving a subset leaves the remainder to drift apart. Note what the matched lines are: every one of them assigns one field to another, so the block is a hand-written mapper between two data shapes rather than behaviour with a helper inside it. Extracting one shared function only works if both sites map the SAME pair of types in the same direction \u2014 check that first, because inverse or differently-typed mappers have no single function they can both call. Where they do not, the moves that exist are a generated or reflective mapper, a common embedded/base type the fields live on once, or accepting the run and covering it with a test that fails when a field is added to one side only."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-clients/src/main/java/org/apache/flink/client/deployment/application/PackagedProgramApplicationEntry.java"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9b8a557862972f8c40bbcf8e808e2fc1c0755e0f93be7d17a4c3331869dfab1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 9): flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:725-734 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:763-773 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:795-805 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:1030-1040 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:1049-1058 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:1073-1082 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:1178-1188 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:1261-1270 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:1332-1342 \u2014 all 9 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java"},"region":{"startLine":725}}}],"partialFingerprints":{"codehealthFindingId/v1":"da1b6e4b87d05d1b9785c95976316c3b57a725e61edcd0d1daa53536f4266008"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 6): flink-core/src/main/java/org/apache/flink/types/parser/BigIntParser.java:99-108 | flink-core/src/main/java/org/apache/flink/types/parser/DoubleParser.java:96-105 | flink-core/src/main/java/org/apache/flink/types/parser/FloatParser.java:93-102 | flink-core/src/main/java/org/apache/flink/types/parser/SqlDateParser.java:97-106 | flink-core/src/main/java/org/apache/flink/types/parser/SqlTimeParser.java:90-99 | flink-core/src/main/java/org/apache/flink/types/parser/SqlTimestampParser.java:99-108 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/parser/BigIntParser.java"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f58771331da5db38822b43cde75d2195235ff96bd37427a03a5a66fbc5d306d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): flink-core/src/main/java/org/apache/flink/types/parser/ByteParser.java:60-69 | flink-core/src/main/java/org/apache/flink/types/parser/IntParser.java:68-77 | flink-core/src/main/java/org/apache/flink/types/parser/LongValueParser.java:65-75 | flink-core/src/main/java/org/apache/flink/types/parser/ShortParser.java:67-76 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/types/parser/ByteParser.java:60\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/parser/ByteParser.java"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4e1b2e310807564c9fb6c1d73824cb27acdc03559ab288624606163def7c0b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): flink-test-utils-parent/flink-connector-test-utils/src/main/java/org/apache/flink/connector/testframe/testsuites/SourceTestSuiteBase.java:128-137 | flink-test-utils-parent/flink-connector-test-utils/src/main/java/org/apache/flink/connector/testframe/testsuites/SourceTestSuiteBase.java:181-190 | flink-test-utils-parent/flink-connector-test-utils/src/main/java/org/apache/flink/connector/testframe/testsuites/SourceTestSuiteBase.java:497-506 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-test-utils-parent/flink-connector-test-utils/src/main/java/org/apache/flink/connector/testframe/testsuites/SourceTestSuiteBase.java"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bc953fca3805c80dd7e05d508ebb80e0497326a72341cc9fe0377eb8e50aba2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/sort/MultiInputSortingDataInput.java:470-479 | flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/sort/VariableLengthByteKeyComparator.java:88-97 | flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/sortpartition/VariableLengthByteKeyAndValueComparator.java:93-102 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/sort/MultiInputSortingDataInput.java"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3ac64059d89d3fc69b9b2ef9d120c441ba3d3a3fa6bd9608273c869119855f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): flink-runtime/src/main/java/org/apache/flink/streaming/runtime/translators/LegacySinkTransformationTranslator.java:91-100 | flink-runtime/src/main/java/org/apache/flink/streaming/runtime/translators/LegacySourceTransformationTranslator.java:82-91 | flink-runtime/src/main/java/org/apache/flink/streaming/runtime/translators/SourceTransformationTranslator.java:91-101 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/runtime/translators/LegacySinkTransformationTranslator.java"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"07061bf5a716eabc0216c74fc77a52bea26ddbb4a2a942ac37b79d9c754057c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): flink-core/src/main/java/org/apache/flink/api/common/io/GenericCsvInputFormat.java:486-496 | flink-core/src/main/java/org/apache/flink/types/parser/StringParser.java:53-62 | flink-core/src/main/java/org/apache/flink/types/parser/StringValueParser.java:57-66 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/api/common/io/GenericCsvInputFormat.java:486\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/common/io/GenericCsvInputFormat.java"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"34dde0ec02247f0d69fd0cfda5ae4717d5ad4405530efa15e266c719973a12e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): flink-core/src/main/java/org/apache/flink/types/parser/ByteValueParser.java:69-78 | flink-core/src/main/java/org/apache/flink/types/parser/IntValueParser.java:68-77 | flink-core/src/main/java/org/apache/flink/types/parser/ShortValueParser.java:71-80 \u2014 before extracting anything, compare \u0060flink-core/src/main/java/org/apache/flink/types/parser/IntValueParser.java\u0060 and \u0060flink-core/src/main/java/org/apache/flink/types/parser/ShortValueParser.java\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/types/parser/ByteValueParser.java:69\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/parser/ByteValueParser.java"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"77daa516754865d2892cd96644da45f009797a40dd34c6a7a0de3ce05c96927e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/aggregate/BuiltInAggregateFunction.java:68-77 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/scalar/BuiltInScalarFunction.java:64-73 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/table/BuiltInTableFunction.java:64-73 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/aggregate/BuiltInAggregateFunction.java"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ee5c27d162a32df7e5494924ecbc63b47a741850e8cd1b47440f52bd957ac2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/operations/SqlNodeToOperationConversion.java:434-443 | flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/operations/SqlNodeToOperationConversion.java:455-464 | flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/operations/SqlNodeToOperationConversion.java:474-483 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/operations/SqlNodeToOperationConversion.java"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"35b6010d8840c276040f59ff49ea2fbd86993fe59c7b37a8d416393a83188e98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/batch/BatchExecHashAggregate.java:123-132 | flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/batch/BatchExecHashWindowAggregate.java:90-99 | flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/batch/BatchExecSortWindowAggregate.java:90-99 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/batch/BatchExecHashAggregate.java:123\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/batch/BatchExecHashAggregate.java"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f32cc234f644ed1b12dacd7d0a474390b65626b3fdd971f6a9a306bb9a4c023"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): flink-clients/src/main/java/org/apache/flink/client/cli/CliFrontendParser.java:386-395 | flink-clients/src/main/java/org/apache/flink/client/cli/CliFrontendParser.java:403-412 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-clients/src/main/java/org/apache/flink/client/cli/CliFrontendParser.java:386\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-clients/src/main/java/org/apache/flink/client/cli/CliFrontendParser.java"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e7a8668c772096447cc9327a2c5a017ff6f4a081fdd42da5fe3159bdcb8c234"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): flink-connectors/flink-connector-datagen/src/main/java/org/apache/flink/connector/datagen/functions/FromElementsGeneratorFunction.java:97-106 | flink-connectors/flink-connector-datagen/src/main/java/org/apache/flink/connector/datagen/functions/IndexLookupGeneratorFunction.java:128-137 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-connectors/flink-connector-datagen/src/main/java/org/apache/flink/connector/datagen/functions/FromElementsGeneratorFunction.java:97\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-connectors/flink-connector-datagen/src/main/java/org/apache/flink/connector/datagen/functions/FromElementsGeneratorFunction.java"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbc04d401d53e55499a86cb59ca0a763e9bd667ab190e7b4a64f33344c72d4e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): flink-connectors/flink-connector-files/src/main/java/org/apache/flink/connector/file/table/FileSystemTableSink.java:124-133 | flink-connectors/flink-connector-files/src/main/java/org/apache/flink/connector/file/table/FileSystemTableSource.java:114-123 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-connectors/flink-connector-files/src/main/java/org/apache/flink/connector/file/table/FileSystemTableSink.java"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4ae47f2757811359a2c1328b21faf83c211852a8391f156dda33eafdb33f0c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): flink-test-utils-parent/flink-connector-test-utils/src/main/java/org/apache/flink/connector/testframe/container/FlinkContainersSettings.java:420-429 | flink-table/flink-sql-gateway/src/main/java/org/apache/flink/table/gateway/workflow/scheduler/QuartzSchedulerUtils.java:68-79 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-test-utils-parent/flink-connector-test-utils/src/main/java/org/apache/flink/connector/testframe/container/FlinkContainersSettings.java:420\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-test-utils-parent/flink-connector-test-utils/src/main/java/org/apache/flink/connector/testframe/container/FlinkContainersSettings.java"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"56f390e2305640b0efaff7bdd012d3b3c01e3f6b28bb5c8c6bd90e7f8dfe7942"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): flink-python/src/main/java/org/apache/flink/streaming/api/operators/python/embedded/EmbeddedPythonKeyedCoProcessOperator.java:150-159 | flink-python/src/main/java/org/apache/flink/streaming/api/operators/python/embedded/EmbeddedPythonKeyedProcessOperator.java:144-153 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/streaming/api/operators/python/embedded/EmbeddedPythonKeyedCoProcessOperator.java"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"d584962628cbec84839ea939dec7e6d91921359672d55792b140e45f4db23586"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/co/KeyedCoProcessOperator.java:68-77 | flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/co/LegacyKeyedCoProcessOperator.java:65-74 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/co/KeyedCoProcessOperator.java"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ae5ed43b3465588061f0e2ddf8d480db88b56804253b6677da8fe4c0d5dca1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/KeyedProcessOperator.java:54-63 | flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/LegacyKeyedProcessOperator.java:58-67 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/KeyedProcessOperator.java"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"e31b30b1814421c2b040c197f9fe52fa8cd1245713bd95972c592de5e627afc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): flink-python/src/main/java/org/apache/flink/streaming/api/utils/PythonTypeUtils.java:1045-1055 | flink-python/src/main/java/org/apache/flink/streaming/api/utils/PythonTypeUtils.java:1151-1160 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-python/src/main/java/org/apache/flink/streaming/api/utils/PythonTypeUtils.java:1045\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/streaming/api/utils/PythonTypeUtils.java"},"region":{"startLine":1045}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c861050a928ac2108a48fe45bca910116f1be2c144e982f6978a31ced59d8c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): flink-python/src/main/java/org/apache/flink/streaming/api/utils/PythonTypeUtils.java:1880-1889 | flink-python/src/main/java/org/apache/flink/table/utils/python/PythonTableUtils.java:409-419 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-python/src/main/java/org/apache/flink/streaming/api/utils/PythonTypeUtils.java:1880\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/streaming/api/utils/PythonTypeUtils.java"},"region":{"startLine":1880}}}],"partialFingerprints":{"codehealthFindingId/v1":"9af24fcc77c973229275f825117bf403c6a1606f2fcad0897e96836d68a26d12"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): flink-python/src/main/java/org/apache/flink/streaming/api/utils/PythonTypeUtils.java:1990-1999 | flink-python/src/main/java/org/apache/flink/table/utils/python/PythonTableUtils.java:492-501 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-python/src/main/java/org/apache/flink/streaming/api/utils/PythonTypeUtils.java:1990\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/streaming/api/utils/PythonTypeUtils.java"},"region":{"startLine":1990}}}],"partialFingerprints":{"codehealthFindingId/v1":"3604067aafc59298e23a619fbba9bfe4adb6098f0cd48ee8d8c3af4fd9a0fa0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): flink-runtime/src/main/java/org/apache/flink/streaming/api/windowing/windows/TimeWindow.java:90-99 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/window/TimeWindow.java:78-87 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/windowing/windows/TimeWindow.java"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"757717791c732db0e71c76df026b8dd61afb0886cdb57a95329b30d37da32d8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): flink-runtime/src/main/java/org/apache/flink/streaming/runtime/translators/AbstractOneInputTransformationTranslator.java:55-64 | flink-runtime/src/main/java/org/apache/flink/streaming/runtime/translators/AbstractTwoInputTransformationTranslator.java:60-69 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-runtime/src/main/java/org/apache/flink/streaming/runtime/translators/AbstractOneInputTransformationTranslator.java:55\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/runtime/translators/AbstractOneInputTransformationTranslator.java"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"65327f9344c4e5072512c4fc3bcae35b58cc531580e5c5cfa975537f5a9ab8e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): flink-runtime/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/WindowOperator.java:196-205 | flink-runtime/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/WindowOperatorFactory.java:77-86 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/WindowOperator.java"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"4be6f2cad083c0316ead757305504120644a27a49987c9f2d012a6efcb7ac7a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): flink-examples/flink-examples-streaming/src/main/java/org/apache/flink/streaming/examples/sideoutput/SideOutputExample.java:140-149 | flink-examples/flink-examples-streaming/src/main/java/org/apache/flink/streaming/examples/windowing/SessionWindowing.java:101-110 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-examples/flink-examples-streaming/src/main/java/org/apache/flink/streaming/examples/sideoutput/SideOutputExample.java:140\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-examples/flink-examples-streaming/src/main/java/org/apache/flink/streaming/examples/sideoutput/SideOutputExample.java"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"39481bc684e9705ee67f621e39575725453445a29c19230bbc1ca708638dd2ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): flink-runtime/src/main/java/org/apache/flink/streaming/util/RemoteEnvironmentConfigUtils.java:81-91 | flink-core/src/main/java/org/apache/flink/util/JarUtils.java:66-75 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-runtime/src/main/java/org/apache/flink/streaming/util/RemoteEnvironmentConfigUtils.java:81\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/util/RemoteEnvironmentConfigUtils.java"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"0afe55a30efd77e890884e78c1083db0e9c257ae50bd13be2bbe716f1ef52366"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/api/java/typeutils/runtime/MaskUtils.java:78-87 | flink-core/src/main/java/org/apache/flink/api/java/typeutils/runtime/MaskUtils.java:108-117 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/api/java/typeutils/runtime/MaskUtils.java:78\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/java/typeutils/runtime/MaskUtils.java"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"bda5e2f2f21966c6e6fc257c3eb0c8fda7ace765f50492dc537e1c5761b241c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/api/java/typeutils/TypeExtractor.java:160-169 | flink-core/src/main/java/org/apache/flink/api/common/serialization/SerializerConfigImpl.java:472-481 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/java/typeutils/TypeExtractor.java"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"678ca2fbee78015c2375f290e1644866ffad298e4ca0978b040f1a5822234119"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/api/common/operators/base/CoGroupOperatorBase.java:302-311 | flink-core/src/main/java/org/apache/flink/api/common/operators/base/CoGroupRawOperatorBase.java:224-233 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/common/operators/base/CoGroupOperatorBase.java"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"42eb504a50643ee411b4f04af6958258f963b11fd26a528f91870c92fe5bfe9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/api/common/operators/base/FlatMapOperatorBase.java:68-77 | flink-core/src/main/java/org/apache/flink/api/common/operators/base/MapOperatorBase.java:69-78 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/common/operators/base/FlatMapOperatorBase.java"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"14e0755969eb78ccd9103f1e08378f212e6b8f237653decc98c6dd25c42cfccc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/api/common/operators/CollectionExecutor.java:552-561 | flink-core/src/main/java/org/apache/flink/api/common/operators/CollectionExecutor.java:567-576 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/api/common/operators/CollectionExecutor.java:552\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/common/operators/CollectionExecutor.java"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"c40d70cf8563ef125b32dd5696c3ef8e6bd61c1ac928d60117635bf4d5f5d030"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/api/common/typeutils/base/MapSerializer.java:136-145 | flink-table/flink-table-type-utils/src/main/java/org/apache/flink/table/runtime/typeutils/AbstractMapSerializer.java:124-133 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/api/common/typeutils/base/MapSerializer.java:136\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/common/typeutils/base/MapSerializer.java"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"0df228c2a4fe2c1962d53cb8894d6d392123a027cd73299797ca95a88cdb6f29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/api/common/typeutils/base/MapSerializer.java:152-161 | flink-table/flink-table-type-utils/src/main/java/org/apache/flink/table/runtime/typeutils/AbstractMapSerializer.java:140-149 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/common/typeutils/base/MapSerializer.java"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a69eeed5e1e89467d71555fb87e451cee702ee54e908a36d2291f5f3fad062a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/api/common/typeutils/base/StringComparator.java:89-98 | flink-core/src/main/java/org/apache/flink/types/StringValue.java:668-677 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/api/common/typeutils/base/StringComparator.java:89\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/common/typeutils/base/StringComparator.java"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1fc78958fab0dfa05a382f988fe7d8c6713e554fa0772c6345f9db6443e304b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/types/parser/IntParser.java:146-155 | flink-core/src/main/java/org/apache/flink/types/parser/ShortParser.java:145-155 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/types/parser/IntParser.java:146\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/parser/IntParser.java"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c3e5660a987c7bb4cc7fedd87b3068f0d80cc4750b8e63145b61bf4a2b4720c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/types/Record.java:573-582 | flink-core/src/main/java/org/apache/flink/types/Record.java:657-666 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/types/Record.java:573\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/Record.java"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4ca35c3b13785d9d223fe8957c9e78045dd5cfdbc8cd231a58350f79d97209b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/types/Record.java:1417-1426 | flink-core/src/main/java/org/apache/flink/core/memory/DataInputDeserializer.java:211-220 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/types/Record.java:1417\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/Record.java"},"region":{"startLine":1417}}}],"partialFingerprints":{"codehealthFindingId/v1":"c27959914870e1df63f861ef80999bd5a80e09c0c598fac03d72ed9d40d13cd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/types/StringValue.java:761-772 | flink-core/src/main/java/org/apache/flink/types/StringValue.java:784-793 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/types/StringValue.java:761\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/StringValue.java"},"region":{"startLine":761}}}],"partialFingerprints":{"codehealthFindingId/v1":"e464b73edd3208ef730e09d22b4a53a70f5c250e3b046df0e35a9d893ef0ea97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/util/concurrent/FutureUtils.java:169-178 | flink-core/src/main/java/org/apache/flink/util/concurrent/FutureUtils.java:263-272 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/util/concurrent/FutureUtils.java:169\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/util/concurrent/FutureUtils.java"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb4b5fcc100078d79e47a072e28bb93e33723f0391ed2ec55614816158f9089c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/util/concurrent/FutureUtils.java:259-268 | flink-core/src/main/java/org/apache/flink/util/concurrent/FutureUtils.java:351-360 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/util/concurrent/FutureUtils.java:259\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/util/concurrent/FutureUtils.java"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcd1dbda139fe9141ba5ddf7b686012d1eea624ef81bd67d2569ddaeda055dc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/util/MultipleParameterTool.java:227-236 | flink-core/src/main/java/org/apache/flink/util/ParameterTool.java:305-314 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/util/MultipleParameterTool.java:227\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/util/MultipleParameterTool.java"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7c455d14e84af61469767d534571f8c869d8232ea154b8d197a86ee347c2bb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): flink-table/flink-sql-parser/src/main/java/org/apache/flink/sql/parser/ddl/materializedtable/SqlCreateMaterializedTable.java:89-98 | flink-table/flink-sql-parser/src/main/java/org/apache/flink/sql/parser/ddl/materializedtable/SqlCreateOrAlterMaterializedTable.java:73-82 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-sql-parser/src/main/java/org/apache/flink/sql/parser/ddl/materializedtable/SqlCreateMaterializedTable.java"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e964ad8c6dd64564b5944cdd6214bbd50f92c2bb5a02bd2f314f6bbdb60d4db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:54-63 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:260-269 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:54\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbd5382a9f4049a1caca3e22a812c30f88ab45cae3efcd6b8a2a6d7f6e646802"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/over/NonTimeRangeUnboundedPrecedingFunction.java:330-339 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/over/NonTimeRowsUnboundedPrecedingFunction.java:311-320 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/over/NonTimeRangeUnboundedPrecedingFunction.java"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"c432e3c7cc7caadbf314c8f7427d5880f7386aa5460c63c92862df14ebd3415a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/rank/UpdatableTopNFunction.java:427-436 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/rank/UpdatableTopNFunction.java:446-455 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/rank/UpdatableTopNFunction.java:427\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/rank/UpdatableTopNFunction.java"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"d082be0b8fd7dc44665f8740929b060a8f6ad702e2b638a874a5cc4747b493db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/sort/BinaryInMemorySortBuffer.java:201-210 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/sort/BinaryKVInMemorySortBuffer.java:131-140 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/sort/BinaryInMemorySortBuffer.java:201\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/sort/BinaryInMemorySortBuffer.java"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"00b9f9f8bf05212082eca2747e5f62c785cb874143e155a610181b40e3b55b1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/window/groupwindow/operator/WindowOperator.java:197-206 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/window/groupwindow/operator/WindowOperator.java:233-242 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/window/groupwindow/operator/WindowOperator.java"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4b7bb7883bea0fd1f733ab7ede7e9c8d99abfa19dba317e77e6dc6065b850a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): flink-python/src/main/java/org/apache/flink/table/runtime/typeutils/serializers/python/DecimalDataSerializer.java:108-117 | flink-table/flink-table-type-utils/src/main/java/org/apache/flink/table/runtime/typeutils/DecimalDataSerializer.java:118-127 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/table/runtime/typeutils/serializers/python/DecimalDataSerializer.java"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"b14f0d2fd83dfdb7f01635646d399781fac5ce3f5c47c9cdfe17d477f4a9d9bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/aggregate/FirstValueWithRetractAggFunction.java:63-72 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/aggregate/LastValueWithRetractAggFunction.java:63-72 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/aggregate/FirstValueWithRetractAggFunction.java:63\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/aggregate/FirstValueWithRetractAggFunction.java"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"9632e071049ec4fae64a0f6f6ace3cb84188913268ef41f98d6ba7caab2843a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/aggregate/FirstValueWithRetractAggFunction.java:179-188 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/aggregate/LastValueWithRetractAggFunction.java:174-183 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/aggregate/FirstValueWithRetractAggFunction.java:179\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/aggregate/FirstValueWithRetractAggFunction.java"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"d08c822ab9681dd3897c2dd73e749c4483f9dd969055bd17e55b8e804d121faf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/aggregate/FirstValueWithRetractAggFunction.java:196-205 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/aggregate/LastValueWithRetractAggFunction.java:191-200 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/aggregate/FirstValueWithRetractAggFunction.java:196\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/aggregate/FirstValueWithRetractAggFunction.java"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"a18c687a73fa3368c6764d5bea722c2f3c38ad9352bc5ce7ab14e7eec36b5ca3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/SqlFunctionUtils.java:308-318 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/SqlFunctionUtils.java:343-352 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/SqlFunctionUtils.java:308\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/SqlFunctionUtils.java"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba4d4ab4be37d3c3b6cea60d534cf9b01ef16fcfcdf2619169a6d2017cf57581"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/hashtable/BinaryHashBucketArea.java:322-331 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/hashtable/BinaryHashBucketArea.java:348-357 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/hashtable/BinaryHashBucketArea.java:322\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/hashtable/BinaryHashBucketArea.java"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f9563d4e0fbef4a0740d46a0bb434a2d858cb34fa25a05ef207d4286b1d2e39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/types/PlannerTypeUtils.java:98-107 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/types/PlannerTypeUtils.java:141-153 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/types/PlannerTypeUtils.java:98\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/types/PlannerTypeUtils.java"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"98f1a9742886b93297e79637405ebdd6887ae34878bf838c28eeb6f70768d1d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/api/ModelDescriptor.java:126-135 | flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/api/TableDescriptor.java:158-167 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/api/ModelDescriptor.java:126\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/api/ModelDescriptor.java"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d29852f32e5fff228c6a6f9775aa9a83d588cc82713051820b715a3d7c06503"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): flink-table/flink-table-api-java-bridge/src/main/java/org/apache/flink/table/sinks/CsvTableSinkFactoryBase.java:119-128 | flink-table/flink-table-api-java-bridge/src/main/java/org/apache/flink/table/sources/CsvTableSourceFactoryBase.java:139-151 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-api-java-bridge/src/main/java/org/apache/flink/table/sinks/CsvTableSinkFactoryBase.java"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9ccc98a1fdf2746691e762357ea919468aa18051a80d8afc8a6f65636defbae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): flink-table/flink-table-common/src/main/java/org/apache/flink/table/catalog/CatalogPropertiesUtil.java:240-249 | flink-table/flink-table-common/src/main/java/org/apache/flink/table/catalog/CatalogPropertiesUtil.java:276-285 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/catalog/CatalogPropertiesUtil.java"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3415ef619771b04e02996c5199f257a61e65ca987dcf4597624e0045d0be2fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/batch/BatchExecHashJoin.java:142-151 | flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/batch/BatchExecHashJoin.java:172-181 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/batch/BatchExecHashJoin.java:142\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/batch/BatchExecHashJoin.java"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fdec167b1b8d9eadd8e4d640846a4f3459d22a05407aafe8cf188a84ad9fdfa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 11): flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:105-114 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:118-127 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:156-165 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:176-185 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:256-265 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:302-311 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:336-344 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:392-401 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:444-452 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:469-478 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:492-500 \u2014 all 11 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:105\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"088543192276bb13f937d40a4e0dccbc9f943590e43c77719a62ae737d133d7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/schema/TpcdsSchemaProvider.java:236-245 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/schema/TpcdsSchemaProvider.java:387-395 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/schema/TpcdsSchemaProvider.java:455-463 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/schema/TpcdsSchemaProvider.java:522-531 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/schema/TpcdsSchemaProvider.java:543-552 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/schema/TpcdsSchemaProvider.java:236\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/schema/TpcdsSchemaProvider.java"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"162eccaae62939a567ae4de1c3f79b32119b39c3058025ee2c54235f98dc76dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): flink-examples/flink-examples-streaming/src/main/java/org/apache/flink/streaming/examples/join/WindowJoin.java:98-106 | flink-examples/flink-examples-streaming/src/main/java/org/apache/flink/streaming/examples/sideoutput/SideOutputExample.java:126-134 | flink-examples/flink-examples-streaming/src/main/java/org/apache/flink/streaming/examples/sideoutput/SideOutputExample.java:139-147 | flink-examples/flink-examples-streaming/src/main/java/org/apache/flink/streaming/examples/windowing/SessionWindowing.java:100-108 \u2014 there are 4 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-examples/flink-examples-streaming/src/main/java/org/apache/flink/streaming/examples/join/WindowJoin.java:98\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-examples/flink-examples-streaming/src/main/java/org/apache/flink/streaming/examples/join/WindowJoin.java"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae7d35a6f1838640d10c9daa2b042945461d5ca41ff9cc828871e4d9e76dc0dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): flink-table/flink-sql-parser/src/main/java/org/apache/flink/sql/parser/ddl/table/SqlCreateTable.java:69-77 | flink-table/flink-sql-parser/src/main/java/org/apache/flink/sql/parser/ddl/table/SqlCreateTableAs.java:87-95 | flink-table/flink-sql-parser/src/main/java/org/apache/flink/sql/parser/ddl/table/SqlCreateTableLike.java:88-96 | flink-table/flink-sql-parser/src/main/java/org/apache/flink/sql/parser/ddl/SqlReplaceTableAs.java:103-111 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-sql-parser/src/main/java/org/apache/flink/sql/parser/ddl/table/SqlCreateTable.java"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"6991c8e459fbca24bf9d760b8719e6858da1359b46f5dac25b0e15a49b30b420"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): flink-runtime/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/WindowOperator.java:259-267 | flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/window/operators/OneInputWindowProcessOperator.java:164-173 | flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/window/operators/TwoOutputWindowProcessOperator.java:173-182 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-runtime/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/WindowOperator.java:259\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/WindowOperator.java"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bc630832d2f24ba0689136db614c59b7268b7beadaf9e041fb9461d6622216c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): flink-examples/flink-examples-streaming/src/main/java/org/apache/flink/streaming/examples/windowing/TopSpeedWindowing.java:167-175 | flink-examples/flink-examples-streaming/src/main/java/org/apache/flink/streaming/examples/windowing/WindowWordCount.java:158-166 | flink-examples/flink-examples-streaming/src/main/java/org/apache/flink/streaming/examples/wordcount/WordCount.java:166-174 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-examples/flink-examples-streaming/src/main/java/org/apache/flink/streaming/examples/windowing/TopSpeedWindowing.java:167\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-examples/flink-examples-streaming/src/main/java/org/apache/flink/streaming/examples/windowing/TopSpeedWindowing.java"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"85d42a2c8f9019950e0772724f68c0ec2c1c8177623f2ef8daf838a429c282c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): flink-core/src/main/java/org/apache/flink/types/Record.java:1756-1764 | flink-core/src/main/java/org/apache/flink/core/memory/AbstractPagedOutputView.java:347-355 | flink-core/src/main/java/org/apache/flink/core/memory/DataOutputSerializer.java:301-309 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/types/Record.java:1756\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/Record.java"},"region":{"startLine":1756}}}],"partialFingerprints":{"codehealthFindingId/v1":"94bc724e69c0a9bf3a7df72e4d6d4e4945b17376b8f129af02e01132610df4da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): flink-python/src/main/java/org/apache/flink/table/runtime/operators/python/aggregate/arrow/stream/StreamArrowPythonRowTimeBoundedRangeOperator.java:66-74 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/over/RowTimeRangeBoundedPrecedingFunction.java:155-165 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/over/RowTimeRowsBoundedPrecedingFunction.java:164-174 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-python/src/main/java/org/apache/flink/table/runtime/operators/python/aggregate/arrow/stream/StreamArrowPythonRowTimeBoundedRangeOperator.java:66\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/table/runtime/operators/python/aggregate/arrow/stream/StreamArrowPythonRowTimeBoundedRangeOperator.java"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a9071843ee5006e5837a4ab2ec9a3632021d5f23cbf51f13ab818437f109183"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/util/collections/IntHashSet.java:113-121 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/util/collections/LongHashSet.java:113-121 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/util/collections/ShortHashSet.java:113-121 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/util/collections/IntHashSet.java:113\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/util/collections/IntHashSet.java"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"c252c20d4fd4cee1eac2c580cc785b6b8d5dcdb6c3bbea374e6760ce9c3ac9b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): flink-clients/src/main/java/org/apache/flink/client/deployment/executors/AbstractSessionClusterExecutor.java:142-150 | flink-clients/src/main/java/org/apache/flink/client/deployment/executors/AbstractSessionClusterExecutor.java:161-169 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-clients/src/main/java/org/apache/flink/client/deployment/executors/AbstractSessionClusterExecutor.java:142\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-clients/src/main/java/org/apache/flink/client/deployment/executors/AbstractSessionClusterExecutor.java"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"c19ad76d390e33e031b4986b311f73f509e6f2850534f68231e72ffdd78e6ca7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): flink-streaming-java/src/main/java/org/apache/flink/streaming/api/functions/sink/filesystem/BucketStateSerializer.java:163-171 | flink-streaming-java/src/main/java/org/apache/flink/streaming/api/functions/sink/filesystem/BucketStateSerializer.java:208-216 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-streaming-java/src/main/java/org/apache/flink/streaming/api/functions/sink/filesystem/BucketStateSerializer.java:163\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-streaming-java/src/main/java/org/apache/flink/streaming/api/functions/sink/filesystem/BucketStateSerializer.java"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"db65ae8397f65616d1ebd39e60e48a548920765e65092ac52fce4e74ee8f4ec3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): flink-runtime/src/main/java/org/apache/flink/streaming/api/functions/aggregation/SumAggregator.java:42-50 | flink-runtime/src/main/java/org/apache/flink/streaming/api/functions/aggregation/SumAggregator.java:54-62 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-runtime/src/main/java/org/apache/flink/streaming/api/functions/aggregation/SumAggregator.java:42\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/functions/aggregation/SumAggregator.java"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"98d8451fb71931559ea2701d93edae5f0560eda4c31eccfa82558644cabace94"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/sort/FixedLengthByteKeyComparator.java:107-117 | flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/sortpartition/FixedLengthByteKeyAndValueComparator.java:107-115 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/sort/FixedLengthByteKeyComparator.java"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"92fc0207ac2272d4f433dc2d29ed353467a3a808f2f18f6d0800be5e419f88da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/sort/KeyAndValueSerializer.java:149-157 | flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/sortpartition/KeyAndValueSerializer.java:141-149 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/sort/KeyAndValueSerializer.java:149\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/sort/KeyAndValueSerializer.java"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"b494483e57d21090227e050f9e9aba3077b7f14ced2cb25cbd4fe2a53df63cab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/sortpartition/KeyedSortPartitionOperator.java:269-277 | flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/sortpartition/SortPartitionOperator.java:210-218 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/sortpartition/KeyedSortPartitionOperator.java:269\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/sortpartition/KeyedSortPartitionOperator.java"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ba8ce1081f859385b06a6b12d8348c432516e2a8ef8363ac6802c40610a2681"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/AbstractStreamOperator.java:693-701 | flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/AbstractStreamOperatorV2.java:552-561 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/AbstractStreamOperator.java:693\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/AbstractStreamOperator.java"},"region":{"startLine":693}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4c8534b030cbfb579d4c6976e3acc2e522bc97345da000536959c4fa4e9f398"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): flink-python/src/main/java/org/apache/flink/streaming/api/utils/PythonTypeUtils.java:1912-1920 | flink-python/src/main/java/org/apache/flink/table/utils/python/PythonTableUtils.java:452-460 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-python/src/main/java/org/apache/flink/streaming/api/utils/PythonTypeUtils.java:1912\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/streaming/api/utils/PythonTypeUtils.java"},"region":{"startLine":1912}}}],"partialFingerprints":{"codehealthFindingId/v1":"50862c7032ddfe99f74a1627487994e1bb2a4655d8ab2169ae10ae79e1f87179"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): flink-python/src/main/java/org/apache/flink/streaming/api/utils/PythonTypeUtils.java:1927-1935 | flink-python/src/main/java/org/apache/flink/table/utils/python/PythonTableUtils.java:467-475 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-python/src/main/java/org/apache/flink/streaming/api/utils/PythonTypeUtils.java:1927\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/streaming/api/utils/PythonTypeUtils.java"},"region":{"startLine":1927}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb5bd97e4d9447149f817a41e64bde8003db62113ba4cec73069d41e70b8a699"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/api/java/typeutils/runtime/PojoSerializer.java:435-443 | flink-core/src/main/java/org/apache/flink/api/java/typeutils/runtime/PojoSerializer.java:491-499 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/api/java/typeutils/runtime/PojoSerializer.java:435\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/java/typeutils/runtime/PojoSerializer.java"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"b294e53679150a5ed62777fb6c709f87bfb0fbc1cd480305c653c53f53c90cc2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/api/java/typeutils/TypeExtractor.java:1585-1593 | flink-core/src/main/java/org/apache/flink/api/java/typeutils/TypeExtractor.java:1607-1616 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/api/java/typeutils/TypeExtractor.java:1585\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/java/typeutils/TypeExtractor.java"},"region":{"startLine":1585}}}],"partialFingerprints":{"codehealthFindingId/v1":"26a595654e861d0845c944dd1a3196bc631e74892524d3be2c5c61a5281323a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/api/common/io/GenericCsvInputFormat.java:537-545 | flink-core/src/main/java/org/apache/flink/api/common/io/GenericCsvInputFormat.java:570-578 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/api/common/io/GenericCsvInputFormat.java:537\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/common/io/GenericCsvInputFormat.java"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"121df5012e9af28b08b1ca25fa5a187668ef012f133e18340deb1ae00924304a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/api/common/operators/base/CoGroupOperatorBase.java:220-228 | flink-core/src/main/java/org/apache/flink/api/common/operators/base/CoGroupRawOperatorBase.java:201-209 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/common/operators/base/CoGroupOperatorBase.java"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"7650d952bf43bc22e8c1941f4895b55577f93bbb6db90f49a837fd6ab0daf9db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/api/common/operators/CollectionExecutor.java:265-273 | flink-core/src/main/java/org/apache/flink/api/common/operators/CollectionExecutor.java:309-317 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/api/common/operators/CollectionExecutor.java:265\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/common/operators/CollectionExecutor.java"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbba53f939bb3138feba3f7fac039e4c73e22d1548ba6f98927782e2da66c7be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/api/common/typeutils/base/StringValueSerializer.java:83-91 | flink-core/src/main/java/org/apache/flink/types/StringValue.java:854-862 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/api/common/typeutils/base/StringValueSerializer.java:83\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/common/typeutils/base/StringValueSerializer.java"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8b773282acafa2961116a1bbba6b804c1fb55d773332e735827bceef13ae8d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/api/common/typeutils/base/StringValueSerializer.java:99-107 | flink-core/src/main/java/org/apache/flink/types/StringValue.java:719-727 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/api/common/typeutils/base/StringValueSerializer.java:99\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/common/typeutils/base/StringValueSerializer.java"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"069845bb68b2483b1eda126f03ce3655b128b204aaa1b4eb2dfaf278fa020bf2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/types/Record.java:229-237 | flink-core/src/main/java/org/apache/flink/types/Record.java:276-285 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/Record.java"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7f1dd9a8b4cffd3767059bc2969530bfec879efbd85a13af29dccd2559fe8c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/types/Record.java:1143-1151 | flink-core/src/main/java/org/apache/flink/types/Record.java:1184-1192 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/types/Record.java:1143\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/Record.java"},"region":{"startLine":1143}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b01fea910c565145725bbf1864c297ff3f40dc9db12da9ea0892f2858b7607a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/types/StringValue.java:494-502 | flink-core/src/main/java/org/apache/flink/types/StringValue.java:783-791 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/types/StringValue.java:494\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/StringValue.java"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7077494972a8d6c2e578467f81b0ef726a12c5c4e18c88ee86a3181c5d62c56"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/util/concurrent/ExponentialBackoffRetryStrategy.java:41-49 | flink-core/src/main/java/org/apache/flink/util/concurrent/IncrementalDelayRetryStrategy.java:43-51 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/util/concurrent/ExponentialBackoffRetryStrategy.java"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"279f337c42ae93905d510894dc86ea0487010f8b121f057deb4dca9bc221db0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): flink-datastream/src/main/java/org/apache/flink/datastream/impl/operators/TwoInputNonBroadcastProcessOperator.java:89-97 | flink-datastream/src/main/java/org/apache/flink/datastream/impl/operators/TwoOutputProcessOperator.java:96-104 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-datastream/src/main/java/org/apache/flink/datastream/impl/operators/TwoInputNonBroadcastProcessOperator.java:89\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-datastream/src/main/java/org/apache/flink/datastream/impl/operators/TwoInputNonBroadcastProcessOperator.java"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"b92a4123f76b04704d00ebd220a8b735e94fd55c39af23d09f9869647d3bc95f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): flink-datastream/src/main/java/org/apache/flink/datastream/impl/stream/KeyedPartitionStreamImpl.java:304-312 | flink-datastream/src/main/java/org/apache/flink/datastream/impl/stream/NonKeyedPartitionStreamImpl.java:160-168 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-datastream/src/main/java/org/apache/flink/datastream/impl/stream/KeyedPartitionStreamImpl.java:304\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-datastream/src/main/java/org/apache/flink/datastream/impl/stream/KeyedPartitionStreamImpl.java"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"07444affc35f69f2cca2335536d6c3a19e1de193ef4d9ec9003743427160d9fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): flink-docs/src/main/java/org/apache/flink/docs/configuration/ConfigOptionsDocGenerator.java:324-333 | flink-docs/src/main/java/org/apache/flink/docs/rest/RestAPIDocGenerator.java:197-205 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-docs/src/main/java/org/apache/flink/docs/configuration/ConfigOptionsDocGenerator.java"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e643fa13a6b19efa0c35e456bbb777f36296f8977d354c77b23b05f54b5b1dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): flink-docs/src/main/java/org/apache/flink/docs/rest/RestAPIDocGenerator.java:164-172 | flink-docs/src/main/java/org/apache/flink/docs/rest/RestAPIDocGenerator.java:176-184 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-docs/src/main/java/org/apache/flink/docs/rest/RestAPIDocGenerator.java:164\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-docs/src/main/java/org/apache/flink/docs/rest/RestAPIDocGenerator.java"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"a955bc1193a6174962e784c460a4ba20687f2fc4cccf976985ea61ca8efd7f6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): flink-table/flink-sql-jdbc-driver/src/main/java/org/apache/flink/table/jdbc/FlinkConnection.java:158-166 | flink-table/flink-sql-jdbc-driver/src/main/java/org/apache/flink/table/jdbc/FlinkConnection.java:238-246 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-sql-jdbc-driver/src/main/java/org/apache/flink/table/jdbc/FlinkConnection.java:158\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-sql-jdbc-driver/src/main/java/org/apache/flink/table/jdbc/FlinkConnection.java"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c2d4e2d4f518159061c2554367274b01171b4b4d398dc9835a101bac72455b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): flink-python/src/main/java/org/apache/flink/table/runtime/operators/python/aggregate/arrow/batch/BatchArrowPythonOverWindowAggregateFunctionOperator.java:267-275 | flink-python/src/main/java/org/apache/flink/table/runtime/operators/python/aggregate/AbstractPythonStreamAggregateOperator.java:258-266 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/table/runtime/operators/python/aggregate/arrow/batch/BatchArrowPythonOverWindowAggregateFunctionOperator.java"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"01d51f8e87f2bc7614b8797a4f611fa5b877bb43f337f55cfcb0132522b505a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/stream/asyncprocessing/state/JoinRecordAsyncStateViews.java:134-142 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/stream/state/JoinRecordStateViews.java:126-134 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/stream/asyncprocessing/state/JoinRecordAsyncStateViews.java"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff7512c9baf3bd817ca6fb3bfb6780f87b123e7f54f5408f273de52db8966dd0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/over/NonTimeRangeUnboundedPrecedingFunction.java:130-138 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/over/NonTimeRowsUnboundedPrecedingFunction.java:132-140 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/over/NonTimeRangeUnboundedPrecedingFunction.java:130\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/over/NonTimeRangeUnboundedPrecedingFunction.java"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"a25ec1d989e5b501e8e2458e33d44e7371ed65c1ae8699f4172194c99602d031"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/over/ProcTimeRangeBoundedPrecedingFunction.java:101-109 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/over/ProcTimeRowsBoundedPrecedingFunction.java:108-116 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/over/ProcTimeRangeBoundedPrecedingFunction.java"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"df50878bbc9cf3b9be4cfe678d5a23c0d1c6ae2f00af786619ba82bae7ad6c62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/sink/constraint/ConstraintEnforcerExecutor.java:270-278 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/sink/constraint/ConstraintEnforcerExecutor.java:294-302 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/sink/constraint/ConstraintEnforcerExecutor.java:270\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/sink/constraint/ConstraintEnforcerExecutor.java"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"a81543379ab3ca587a0554a1bee756d8fde7b8fd3d0aad0f89f82a0195d5770a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/hashtable/LongHybridHashTable.java:139-147 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/hashtable/LongHybridHashTable.java:185-193 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/hashtable/LongHybridHashTable.java:139\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/hashtable/LongHybridHashTable.java"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0a2a18a6829a1db2289d9844cdf11105769637ce17f98d3899ce753c361bfcf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/util/SegmentsUtil.java:640-648 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/util/SegmentsUtil.java:953-961 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/util/SegmentsUtil.java:640\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/util/SegmentsUtil.java"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb29c3fed2e7cecebe5bbbbe3731f91bb2329a4a2a4c33fa652b5c643f063622"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): flink-table/flink-table-common/src/main/java/org/apache/flink/table/utils/DateTimeUtils.java:593-601 | flink-table/flink-table-common/src/main/java/org/apache/flink/table/utils/DateTimeUtils.java:659-667 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-common/src/main/java/org/apache/flink/table/utils/DateTimeUtils.java:593\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/utils/DateTimeUtils.java"},"region":{"startLine":593}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea8d8fd2f115c1b8d57309b4c1325f2ca9ea73e4149787e8d266eb327c8d4167"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/api/internal/TableEnvironmentImpl.java:1113-1121 | flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/api/internal/TableEnvironmentImpl.java:1147-1155 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/api/internal/TableEnvironmentImpl.java:1113\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/api/internal/TableEnvironmentImpl.java"},"region":{"startLine":1113}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf102ce324af2c68ab365045dbae166d0f92add99b78913d794516f031e9000c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): flink-table/flink-table-api-bridge-base/src/main/java/org/apache/flink/table/operations/DataStreamQueryOperation.java:95-103 | flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/operations/InternalDataStreamQueryOperation.java:90-98 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-api-bridge-base/src/main/java/org/apache/flink/table/operations/DataStreamQueryOperation.java"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"97549e1cfb90110601d1f7ac2760ee4d87be08d2e03758a6e6ea8624cfa1d075"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): flink-table/flink-table-common/src/main/java/org/apache/flink/table/descriptors/DescriptorProperties.java:831-839 | flink-table/flink-table-common/src/main/java/org/apache/flink/table/descriptors/DescriptorProperties.java:889-898 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-common/src/main/java/org/apache/flink/table/descriptors/DescriptorProperties.java:831\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/descriptors/DescriptorProperties.java"},"region":{"startLine":831}}}],"partialFingerprints":{"codehealthFindingId/v1":"2feee4241a1a5653bc6150279824cfc8b1904e862da1f86a6e983e5a9fec1521"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/catalog/SchemaTranslator.java:382-390 | flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/catalog/SchemaTranslator.java:400-408 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/catalog/SchemaTranslator.java"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"d77f1adb63db677124d699db49ead0abd0ddbf0900e0ff9c398b8998b6a81ea6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): flink-table/flink-table-common/src/main/java/org/apache/flink/table/catalog/CatalogPropertiesUtil.java:88-96 | flink-table/flink-table-common/src/main/java/org/apache/flink/table/catalog/CatalogPropertiesUtil.java:146-154 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-common/src/main/java/org/apache/flink/table/catalog/CatalogPropertiesUtil.java:88\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/catalog/CatalogPropertiesUtil.java"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac3b3e765c86e756110cef12965864140551381acf829f27ee403df054445859"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/batch/BatchExecPythonOverAggregate.java:124-132 | flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/batch/BatchExecPythonOverAggregate.java:145-153 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/batch/BatchExecPythonOverAggregate.java:124\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/batch/BatchExecPythonOverAggregate.java"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7c746aaab85c71723ad5a9d41429c57cb47f0b4f9c83563ffda94b68fd15df7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 8): flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/schema/TpcdsSchemaProvider.java:77-84 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/schema/TpcdsSchemaProvider.java:108-115 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/schema/TpcdsSchemaProvider.java:143-150 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/schema/TpcdsSchemaProvider.java:167-174 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/schema/TpcdsSchemaProvider.java:205-212 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/schema/TpcdsSchemaProvider.java:233-240 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/schema/TpcdsSchemaProvider.java:271-278 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/schema/TpcdsSchemaProvider.java:487-494 \u2014 all 8 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/schema/TpcdsSchemaProvider.java:77\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/schema/TpcdsSchemaProvider.java"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"d560777f5d632017996f3eb4d44e52b71b7b9963a06b8f2ec8285c1373deeb3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 6): flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/schema/TpcdsSchemaProvider.java:41-48 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/schema/TpcdsSchemaProvider.java:79-86 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/schema/TpcdsSchemaProvider.java:118-125 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/schema/TpcdsSchemaProvider.java:145-152 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/schema/TpcdsSchemaProvider.java:169-176 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/schema/TpcdsSchemaProvider.java:207-214 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/schema/TpcdsSchemaProvider.java:41\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/schema/TpcdsSchemaProvider.java"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf08fcf5a00720e756af5a1a7e04d03e5ad1fe6c7e83c4b97e62df511fedae1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): flink-runtime/src/main/java/org/apache/flink/streaming/api/datastream/WindowedStream.java:230-238 | flink-runtime/src/main/java/org/apache/flink/streaming/api/datastream/WindowedStream.java:281-288 | flink-runtime/src/main/java/org/apache/flink/streaming/api/datastream/WindowedStream.java:432-441 | flink-runtime/src/main/java/org/apache/flink/streaming/api/datastream/WindowedStream.java:545-554 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/datastream/WindowedStream.java"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"5316034b8d5d950c0fa0da3550cec88f6c425732ba7fb4a9380584c4c327c1b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): flink-core/src/main/java/org/apache/flink/api/common/typeutils/base/array/BytePrimitiveArrayComparator.java:44-51 | flink-core/src/main/java/org/apache/flink/api/common/typeutils/base/array/CharPrimitiveArrayComparator.java:44-51 | flink-core/src/main/java/org/apache/flink/api/common/typeutils/base/array/IntPrimitiveArrayComparator.java:44-51 | flink-core/src/main/java/org/apache/flink/api/common/typeutils/base/array/ShortPrimitiveArrayComparator.java:45-52 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/api/common/typeutils/base/array/BytePrimitiveArrayComparator.java:44\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/common/typeutils/base/array/BytePrimitiveArrayComparator.java"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"af8face9da4c66a388323f35fdb9bf0798ab97933f038f335666531aea00c4c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/schema/TpcdsSchemaProvider.java:308-315 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/schema/TpcdsSchemaProvider.java:325-332 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/schema/TpcdsSchemaProvider.java:444-451 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/schema/TpcdsSchemaProvider.java:503-510 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/schema/TpcdsSchemaProvider.java:308\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/schema/TpcdsSchemaProvider.java"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"98bbc50b1d788c3439b21cd4a8e18cdf9be95bb01c12905801f10abc7574c994"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/schema/TpcdsSchemaProvider.java:367-374 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/schema/TpcdsSchemaProvider.java:434-441 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/schema/TpcdsSchemaProvider.java:451-458 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/schema/TpcdsSchemaProvider.java:500-507 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/schema/TpcdsSchemaProvider.java:367\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/schema/TpcdsSchemaProvider.java"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"7242af0cec7eb1419bcb210eae5ed45c96ba816dee51d52e34cc8a86c636ba11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): flink-core/src/main/java/org/apache/flink/util/ExceptionUtils.java:440-447 | flink-core/src/main/java/org/apache/flink/util/ExceptionUtils.java:473-480 | flink-core/src/main/java/org/apache/flink/util/ExceptionUtils.java:517-524 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/util/ExceptionUtils.java:440\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/util/ExceptionUtils.java"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"18937bfa52db36a95efe11339530a5b17d926d01b50ccd88804967a0f3543523"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): flink-datastream/src/main/java/org/apache/flink/datastream/impl/stream/GlobalStreamImpl.java:107-114 | flink-datastream/src/main/java/org/apache/flink/datastream/impl/stream/KeyedPartitionStreamImpl.java:197-204 | flink-datastream/src/main/java/org/apache/flink/datastream/impl/stream/KeyedPartitionStreamImpl.java:266-273 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-datastream/src/main/java/org/apache/flink/datastream/impl/stream/GlobalStreamImpl.java"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"98a158a1c065846529366af8a3bc78e6c489420f197f05bb652c2648a1b49c2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/schema/TpcdsSchemaProvider.java:324-331 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/schema/TpcdsSchemaProvider.java:436-443 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/schema/TpcdsSchemaProvider.java:502-509 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/schema/TpcdsSchemaProvider.java:324\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/schema/TpcdsSchemaProvider.java"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a64e822d83aa71bfb6c15e3390e8c46582827d1d031e8a1f395c57ff9a9df8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/sink/constraint/ConstraintEnforcerExecutor.java:131-138 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/sink/constraint/ConstraintEnforcerExecutor.java:174-181 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/sink/constraint/ConstraintEnforcerExecutor.java:213-220 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/sink/constraint/ConstraintEnforcerExecutor.java:131\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/sink/constraint/ConstraintEnforcerExecutor.java"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7f09f2883a992851ce8347291d64554f2cf199dec988ae73da9da538a0e0796"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/aggregate/AbstractBitmapAndWithRetractAggFunction.java:172-179 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/aggregate/AbstractBitmapBuildWithRetractAggFunction.java:157-165 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/aggregate/AbstractBitmapOrWithRetractAggFunction.java:187-195 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/aggregate/AbstractBitmapAndWithRetractAggFunction.java:172\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/aggregate/AbstractBitmapAndWithRetractAggFunction.java"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"500af1962d95e43906ebd982d1aaa0c3b988f120fe7b296406dc1a4bfeda4a57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): flink-table/flink-table-common/src/main/java/org/apache/flink/table/utils/DateTimeUtils.java:247-254 | flink-table/flink-table-common/src/main/java/org/apache/flink/table/utils/DateTimeUtils.java:930-937 | flink-table/flink-table-common/src/main/java/org/apache/flink/table/utils/DateTimeUtils.java:1088-1095 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/utils/DateTimeUtils.java"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"4427597f1423a130724d1c3934690640144b6634bdb3cac6304d44d6d99660cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/batch/BatchExecAdaptiveJoin.java:109-116 | flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/batch/BatchExecHashJoin.java:188-195 | flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/batch/BatchExecNestedLoopJoin.java:130-138 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/batch/BatchExecAdaptiveJoin.java"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd94ecceb693a2a5b225fc8d16c6b1e73a5447ce281339434b684c53571b3a39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): flink-table/flink-table-api-java-bridge/src/main/java/org/apache/flink/connector/datagen/table/RandomGeneratorVisitor.java:216-223 | flink-table/flink-table-api-java-bridge/src/main/java/org/apache/flink/connector/datagen/table/RandomGeneratorVisitor.java:285-292 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-api-java-bridge/src/main/java/org/apache/flink/connector/datagen/table/RandomGeneratorVisitor.java:216\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-api-java-bridge/src/main/java/org/apache/flink/connector/datagen/table/RandomGeneratorVisitor.java"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"40a48d61148aa64cd705ecb1a168093e7e28e62e6681f958902bcae39954506a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): flink-table/flink-table-api-java-bridge/src/main/java/org/apache/flink/connector/datagen/table/RandomGeneratorVisitor.java:229-236 | flink-table/flink-table-api-java-bridge/src/main/java/org/apache/flink/connector/datagen/table/RandomGeneratorVisitor.java:298-305 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-api-java-bridge/src/main/java/org/apache/flink/connector/datagen/table/RandomGeneratorVisitor.java:229\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-api-java-bridge/src/main/java/org/apache/flink/connector/datagen/table/RandomGeneratorVisitor.java"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"1864a47fae936aac747b6398a0c3b7c800bc60a334cf252b083ae5dbc88a3dba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): flink-connectors/flink-connector-files/src/main/java/org/apache/flink/connector/file/src/enumerate/BlockSplittingRecursiveAllDirEnumerator.java:82-89 | flink-connectors/flink-connector-files/src/main/java/org/apache/flink/connector/file/src/enumerate/NonSplittingRecursiveAllDirEnumerator.java:69-76 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-connectors/flink-connector-files/src/main/java/org/apache/flink/connector/file/src/enumerate/BlockSplittingRecursiveAllDirEnumerator.java:82\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-connectors/flink-connector-files/src/main/java/org/apache/flink/connector/file/src/enumerate/BlockSplittingRecursiveAllDirEnumerator.java"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"587d7abd03c162dbe5a3a6be3222664e9c6f5defe0787a4e4313a57122913b64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): flink-test-utils-parent/flink-connector-test-utils/src/main/java/org/apache/flink/connector/testframe/testsuites/SinkTestSuiteBase.java:611-618 | flink-test-utils-parent/flink-connector-test-utils/src/main/java/org/apache/flink/connector/testframe/testsuites/SourceTestSuiteBase.java:670-677 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-test-utils-parent/flink-connector-test-utils/src/main/java/org/apache/flink/connector/testframe/testsuites/SinkTestSuiteBase.java"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e68e05d9312ebcf3d4879658db6969455f1d15b2d37a657e064bfe86df89c2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): flink-runtime/src/main/java/org/apache/flink/streaming/api/functions/source/legacy/StatefulSequenceSource.java:102-109 | flink-streaming-java/src/main/java/org/apache/flink/streaming/api/functions/source/datagen/SequenceGenerator.java:85-92 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-runtime/src/main/java/org/apache/flink/streaming/api/functions/source/legacy/StatefulSequenceSource.java:102\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/functions/source/legacy/StatefulSequenceSource.java"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"047faf8b27aa74c5ef61d60653674a82a9a1e3dbf8bead88e8827407a05d3020"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): flink-python/src/main/java/org/apache/flink/streaming/api/operators/python/process/AbstractExternalOneInputPythonFunctionOperator.java:128-135 | flink-python/src/main/java/org/apache/flink/streaming/api/operators/python/process/AbstractExternalTwoInputPythonFunctionOperator.java:119-126 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-python/src/main/java/org/apache/flink/streaming/api/operators/python/process/AbstractExternalOneInputPythonFunctionOperator.java:128\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/streaming/api/operators/python/process/AbstractExternalOneInputPythonFunctionOperator.java"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"84b860e2e2c3ddf4e044ebde1bb752585acd929ee9f0260bbe7767888fc26250"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/sort/KeyAndValueSerializer.java:165-172 | flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/sortpartition/KeyAndValueSerializer.java:156-163 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/sort/KeyAndValueSerializer.java"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ed127f634eac8d59949d95f361023f47a38952319e9635ff9fc284293af8959"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/InternalTimersSnapshotReaderWriters.java:228-235 | flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/InternalTimersSnapshotReaderWriters.java:240-247 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/InternalTimersSnapshotReaderWriters.java"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c7bd5aafa3386db80e56ca7da8444f519b683ff97de4e6b81d01d88194e63a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): flink-runtime/src/main/java/org/apache/flink/streaming/api/windowing/assigners/TumblingEventTimeWindows.java:72-80 | flink-runtime/src/main/java/org/apache/flink/streaming/api/windowing/assigners/TumblingProcessingTimeWindows.java:72-79 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/windowing/assigners/TumblingEventTimeWindows.java"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"94cc555c79ab9ca390144adb0a07067b8b29ad90f1b423869692d2422b0b9e78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): flink-runtime/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/WindowOperatorBuilder.java:203-210 | flink-runtime/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/WindowOperatorBuilder.java:255-262 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-runtime/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/WindowOperatorBuilder.java:203\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/WindowOperatorBuilder.java"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"253b6761f3acc9df0066ef457613852249033b3dee2c09156a4f6b363e8eddd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): flink-runtime/src/main/java/org/apache/flink/streaming/runtime/streamrecord/StreamElementSerializer.java:215-222 | flink-runtime/src/main/java/org/apache/flink/streaming/runtime/streamrecord/StreamElementSerializer.java:246-253 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-runtime/src/main/java/org/apache/flink/streaming/runtime/streamrecord/StreamElementSerializer.java:215\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/runtime/streamrecord/StreamElementSerializer.java"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"ada3e928e45865cdb29617faab8ec6d0a865ceff63666cfc59d555b72665030a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/api/java/typeutils/runtime/PojoComparator.java:180-187 | flink-core/src/main/java/org/apache/flink/api/java/typeutils/runtime/TupleComparatorBase.java:153-160 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/api/java/typeutils/runtime/PojoComparator.java:180\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/java/typeutils/runtime/PojoComparator.java"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ccc58d6f1cd6a3a48d71c4944949b1e072b8be1ba64bfa9a3f7a70db5fda19b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/api/common/operators/base/GroupCombineOperatorBase.java:97-104 | flink-core/src/main/java/org/apache/flink/api/common/operators/base/GroupReduceOperatorBase.java:182-189 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/api/common/operators/base/GroupCombineOperatorBase.java:97\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/common/operators/base/GroupCombineOperatorBase.java"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bf24369c3efbbfc58f48bc06052a4fad0cde047baa443e3559999b7525e5803"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/api/common/operators/base/GroupCombineOperatorBase.java:152-159 | flink-core/src/main/java/org/apache/flink/api/common/operators/base/GroupReduceOperatorBase.java:237-244 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/common/operators/base/GroupCombineOperatorBase.java"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b07c3b563074f03526a50db4babcd81682e17a40ac3d0acebfb5637c82cf271"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/api/common/operators/CollectionExecutor.java:348-355 | flink-core/src/main/java/org/apache/flink/api/common/operators/CollectionExecutor.java:459-466 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/common/operators/CollectionExecutor.java"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"33d0fd4eb1970b760864acf84485611525d886cb416f6f24cd89c08e3e2fd992"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/types/Record.java:669-676 | flink-core/src/main/java/org/apache/flink/types/Record.java:702-709 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/types/Record.java:669\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/types/Record.java"},"region":{"startLine":669}}}],"partialFingerprints":{"codehealthFindingId/v1":"11dcb3cfd4cf95f2a671c79a2c29565aca9966179a82dad9974d32b9a82ec860"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/util/CompressionUtils.java:169-176 | flink-core/src/main/java/org/apache/flink/util/CompressionUtils.java:224-234 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/util/CompressionUtils.java:169\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/util/CompressionUtils.java"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8dcaee4236c358bcf77fd3621ecefbd16bc43def71312e03ac08bfc0277657f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/util/MultipleParameterTool.java:104-111 | flink-core/src/main/java/org/apache/flink/util/ParameterTool.java:164-171 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/util/MultipleParameterTool.java"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb036209b923dfb77da2a12d2ac1e7391a7ddab992bbf72d560f6c6436c52c4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/schema/TpcdsSchemaProvider.java:335-342 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/schema/TpcdsSchemaProvider.java:539-546 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/schema/TpcdsSchemaProvider.java:335\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/schema/TpcdsSchemaProvider.java"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"18a0b13ee31081ee621104dc75cd07219c7e33d5920523ebc4cec4ef466295bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:923-930 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:1294-1301 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:923\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java"},"region":{"startLine":923}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cd8574826dd0b7bec39b798a6a45e111e27379b62fc0ac9f14846ba4f383250"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:949-956 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:1282-1289 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:1282\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java"},"region":{"startLine":949}}}],"partialFingerprints":{"codehealthFindingId/v1":"6debc354d3d7d4a437b437f6096214a307255a06fc71aa916941f6fd0bb3816c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:1246-1253 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:1295-1302 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:1246\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java"},"region":{"startLine":1246}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ae5c1d124b4071ed8a449df149e21b548942c6994b2736fb4e8f6fb627f76c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): flink-python/src/main/java/org/apache/flink/table/runtime/arrow/ArrowUtils.java:301-308 | flink-python/src/main/java/org/apache/flink/table/runtime/arrow/ArrowUtils.java:378-385 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-python/src/main/java/org/apache/flink/table/runtime/arrow/ArrowUtils.java:301\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/table/runtime/arrow/ArrowUtils.java"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"afc62166fba59345b9c95bbe1bc9e8b579a21cfd3f8e3a96b3b9c657deae0508"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/aggregate/async/AsyncStateGroupAggFunction.java:82-89 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/aggregate/GroupAggFunction.java:74-81 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/aggregate/async/AsyncStateGroupAggFunction.java"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"7385a37408c2e86b79add2397d0535dad660b9cfb0034bf88f1049b050061b17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/lookup/AsyncLookupJoinRunner.java:316-323 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/search/AsyncVectorSearchRunner.java:114-121 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/lookup/AsyncLookupJoinRunner.java:316\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/lookup/AsyncLookupJoinRunner.java"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"8034e58fba514b6311a5f62971712bfd24e686a2771b67bcf609bb59b4b542cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/stream/asyncprocessing/state/OuterJoinRecordAsyncStateViews.java:151-158 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/stream/state/OuterJoinRecordStateViews.java:161-168 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/stream/asyncprocessing/state/OuterJoinRecordAsyncStateViews.java:151\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/stream/asyncprocessing/state/OuterJoinRecordAsyncStateViews.java"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"54c1e12b405238a5e751889f0dcbffb23bbb57fa71c8fb4e2e4d44c3c493b7b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/stream/asyncprocessing/AbstractAsyncStateStreamingJoinOperator.java:81-88 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/stream/AbstractStreamingJoinOperator.java:87-94 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/stream/asyncprocessing/AbstractAsyncStateStreamingJoinOperator.java"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eb2b37af6b6bcdcdacabcccd8096b08a53335618be72514d76247b29a69fad2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/stream/bundle/InputSideHasUniqueKeyBundle.java:94-101 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/stream/bundle/JoinKeyContainsUniqueKeyBundle.java:85-92 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/stream/bundle/InputSideHasUniqueKeyBundle.java:94\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/stream/bundle/InputSideHasUniqueKeyBundle.java"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"d417c703005c6957eba6a0f9046850273785d1ffc38312314ce8314af8cbdbce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/over/ProcTimeUnboundedPrecedingFunction.java:65-72 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/over/RowTimeUnboundedPrecedingOverFunctionV2.java:114-122 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/over/ProcTimeUnboundedPrecedingFunction.java"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"87a0c98c8af9810dc9973fe542ae2e44fa66bd2161ac064c0d2b2f3e10427396"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/over/RowTimeRangeBoundedPrecedingFunction.java:115-122 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/over/RowTimeRowsBoundedPrecedingFunction.java:119-126 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/over/RowTimeRangeBoundedPrecedingFunction.java"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"5633001f6707fd8b86ba813ba073872b26115a1d9f092872088ea2c5f47e7369"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/over/RowTimeRangeBoundedPrecedingFunction.java:124-131 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/over/RowTimeRowsBoundedPrecedingFunction.java:132-139 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/over/RowTimeRangeBoundedPrecedingFunction.java"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"996c3de9240792a58d525a45a66ce88d169b7ee90d7411aa0daa832ac16d18c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/rank/async/AsyncStateAppendOnlyTopNFunction.java:94-101 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/rank/AppendOnlyTopNFunction.java:91-98 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/rank/async/AsyncStateAppendOnlyTopNFunction.java"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"d577c08053225ecc0fb2276194d562c59dde3628f7e99d16ef42c9e27e444490"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): flink-python/src/main/java/org/apache/flink/table/runtime/typeutils/serializers/python/MapDataSerializer.java:241-248 | flink-table/flink-table-type-utils/src/main/java/org/apache/flink/table/runtime/typeutils/MapDataSerializer.java:327-334 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-python/src/main/java/org/apache/flink/table/runtime/typeutils/serializers/python/MapDataSerializer.java:241\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/table/runtime/typeutils/serializers/python/MapDataSerializer.java"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a2c66c611ce78228304d64a93597029c849b15993570f1540eaecdf015621de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): flink-python/src/main/java/org/apache/flink/table/runtime/typeutils/PythonTypeUtils.java:382-389 | flink-python/src/main/java/org/apache/flink/table/runtime/typeutils/PythonTypeUtils.java:450-458 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/table/runtime/typeutils/PythonTypeUtils.java"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"5146ee492f3ac9dfe857255026937df9d051a5b2c8fe7a70aaaabe41a991a98a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/aggregate/FirstValueWithRetractAggFunction.java:125-132 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/aggregate/LastValueWithRetractAggFunction.java:120-127 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/aggregate/FirstValueWithRetractAggFunction.java:125\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/aggregate/FirstValueWithRetractAggFunction.java"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"c81a11871b05d650386143d99e018b26c869592ab470d60215107e2eead317a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/aggregate/ListAggWithRetractAggFunction.java:58-65 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/aggregate/ListAggWsWithRetractAggFunction.java:58-65 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/aggregate/ListAggWithRetractAggFunction.java:58\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/aggregate/ListAggWithRetractAggFunction.java"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"eddad4f9c25257a274c388d1da0c86c4e2148f211ad05d3544c78b0a1bd7ae5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): flink-table/flink-table-test-utils/src/main/java/org/apache/flink/table/runtime/functions/ProcessTableFunctionTestHarness.java:1545-1552 | flink-table/flink-table-test-utils/src/main/java/org/apache/flink/table/runtime/functions/ProcessTableFunctionTestHarness.java:1626-1633 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-test-utils/src/main/java/org/apache/flink/table/runtime/functions/ProcessTableFunctionTestHarness.java:1545\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-test-utils/src/main/java/org/apache/flink/table/runtime/functions/ProcessTableFunctionTestHarness.java"},"region":{"startLine":1545}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb6f785990d03783c2de8d0fdc793e62b5ee68e8757391a62591f9308f2104ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/hashtable/BinaryHashTable.java:598-605 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/hashtable/LongHybridHashTable.java:329-336 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/hashtable/BinaryHashTable.java:598\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/hashtable/BinaryHashTable.java"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"de7bad4344e221618cf961c56a55bb49677197788fc0ac8653e88c3c97939565"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/util/StringUtf8Utils.java:154-161 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/util/StringUtf8Utils.java:252-259 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/util/StringUtf8Utils.java:154\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/util/StringUtf8Utils.java"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"62120b1ec0b21e54845bf0a0874823c2a0838591739a44645a038d9dad5fa51e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): flink-table/flink-table-api-java-bridge/src/main/java/org/apache/flink/table/api/bridge/java/internal/StreamTableEnvironmentImpl.java:108-116 | flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/api/internal/TableEnvironmentImpl.java:272-279 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-api-java-bridge/src/main/java/org/apache/flink/table/api/bridge/java/internal/StreamTableEnvironmentImpl.java"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"9256983275633f392681679af784ce971d7ec2c75f38a62faddc85eb4586e224"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/ddl/AlterCatalogFunctionOperation.java:106-113 | flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/ddl/DropCatalogFunctionOperation.java:95-102 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/ddl/AlterCatalogFunctionOperation.java:106\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/ddl/AlterCatalogFunctionOperation.java"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"7378117ee833ff04e517f48c74571cb4a02e94d7d1c4a3d78dcfa3ccd05218a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/utils/AggregateOperationFactory.java:199-206 | flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/utils/AggregateOperationFactory.java:222-229 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/utils/AggregateOperationFactory.java:199\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/utils/AggregateOperationFactory.java"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ddc7bd8d7e35fd96f5b4572bc58868e207a3f64eec9d18f9e8bd54aa1763fe2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): flink-table/flink-table-api-java-bridge/src/main/java/org/apache/flink/table/sinks/CsvTableSinkFactoryBase.java:78-85 | flink-table/flink-table-api-java-bridge/src/main/java/org/apache/flink/table/sources/CsvTableSourceFactoryBase.java:84-91 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-api-java-bridge/src/main/java/org/apache/flink/table/sinks/CsvTableSinkFactoryBase.java"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c9e00236d36fa15bc98087be470d0b974a2628c28b63f142d28e97be4f0c834"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/catalog/GenericInMemoryCatalog.java:179-186 | flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/catalog/GenericInMemoryCatalog.java:583-590 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/catalog/GenericInMemoryCatalog.java:179\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/catalog/GenericInMemoryCatalog.java"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"0516b66dfa239731213c9301945a8b8470bc375e1612adbb6e26ef376f0c5d58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): flink-table/flink-table-common/src/main/java/org/apache/flink/table/catalog/AbstractConstraint.java:56-63 | flink-table/flink-table-common/src/main/java/org/apache/flink/table/legacy/api/constraints/AbstractConstraint.java:55-62 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/catalog/AbstractConstraint.java"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e9fde79a1f20975436f89753805245dd68722fc9f7e0a242325ebd67f9363fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/functions/SqlLikeUtils.java:201-208 | flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/functions/SqlLikeUtils.java:272-280 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/functions/SqlLikeUtils.java:201\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/functions/SqlLikeUtils.java"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f377226b38b5e720eac886da616c4600d317b2c85c0f64048608222cde898c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/functions/casting/ArrayToStringCastRule.java:132-139 | flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/functions/casting/MapAndMultisetToStringCastRule.java:169-176 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/functions/casting/ArrayToStringCastRule.java:132\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/functions/casting/ArrayToStringCastRule.java"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8124eddabe7ae1e7c69b1ab770bc792d10075c10db96b53ddc59ed9b72f16ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/functions/casting/CastRuleProvider.java:230-237 | flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/functions/casting/CastRuleProvider.java:240-247 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/functions/casting/CastRuleProvider.java:230\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/functions/casting/CastRuleProvider.java"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"540b835658369958e35606477466811d8913309e5da860afe69c60e83d705366"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/functions/casting/RowToStringCastRule.java:116-123 | flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/functions/casting/StructuredToStringCastRule.java:149-156 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/functions/casting/RowToStringCastRule.java"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"d464a782084c72f39e03b32cb4caae4364ee143ad95620be6ef4384ce9eefae3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/functions/sql/ml/SqlMLTableFunction.java:204-211 | flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/functions/sql/ml/SqlVectorSearchTableFunction.java:296-303 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/functions/sql/ml/SqlMLTableFunction.java:204\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/functions/sql/ml/SqlMLTableFunction.java"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"a316607f090f5905944123bb62fa35cdb30fc9b73507e54f3bc559b9f91592fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/functions/sql/ml/SqlMLTableFunction.java:225-233 | flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/functions/sql/ml/SqlVectorSearchTableFunction.java:317-324 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/functions/sql/ml/SqlMLTableFunction.java:225\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/functions/sql/ml/SqlMLTableFunction.java"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"27239653a1064138f016e2ca7b4daa09a95ed8202dccdb0932e62c69b9a25970"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 19): flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:607-614 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:622-629 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:657-666 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:690-697 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:757-763 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:778-785 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:832-838 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:841-847 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:933-941 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:947-954 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:961-968 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:996-1004 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:1016-1023 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:1067-1073 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:1093-1099 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:1105-1113 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:1170-1176 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:1280-1288 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:1299-1307 \u2014 all 19 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:607\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f851ec294199e6c1bd3dff7c580d92a9ba5b3d965fb4fdf929c68766d54a262"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/batch/runtimefilter/BatchExecRuntimeFilter.java:70-76 | flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/batch/BatchExecAdaptiveJoin.java:108-114 | flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/batch/BatchExecHashJoin.java:187-193 | flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/batch/BatchExecNestedLoopJoin.java:129-135 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/batch/runtimefilter/BatchExecRuntimeFilter.java"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dc982a4d56a30a7de5225fa6152050de21c1a22f5ed6ff0628a13d0cd231495"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): flink-table/flink-table-api-java-bridge/src/main/java/org/apache/flink/connector/datagen/table/RandomGeneratorVisitor.java:310-316 | flink-table/flink-table-api-java-bridge/src/main/java/org/apache/flink/connector/datagen/table/RandomGeneratorVisitor.java:322-328 | flink-table/flink-table-api-java-bridge/src/main/java/org/apache/flink/connector/datagen/table/RandomGeneratorVisitor.java:334-340 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-api-java-bridge/src/main/java/org/apache/flink/connector/datagen/table/RandomGeneratorVisitor.java"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"1981a006f455e3d87d20ddd01a52c13c5f3d4dcc70d7b6d034044d06d7b906e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): flink-connectors/flink-connector-files/src/main/java/org/apache/flink/connector/file/sink/writer/FileWriterBucketStateSerializer.java:186-192 | flink-streaming-java/src/main/java/org/apache/flink/streaming/api/functions/sink/filesystem/BucketStateSerializer.java:167-173 | flink-streaming-java/src/main/java/org/apache/flink/streaming/api/functions/sink/filesystem/BucketStateSerializer.java:212-218 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-connectors/flink-connector-files/src/main/java/org/apache/flink/connector/file/sink/writer/FileWriterBucketStateSerializer.java:186\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-connectors/flink-connector-files/src/main/java/org/apache/flink/connector/file/sink/writer/FileWriterBucketStateSerializer.java"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"0930d33d6681cddab14b3528866b34bf5b40e4ff964ba8fba8411df37af8b973"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): flink-python/src/main/java/org/apache/flink/streaming/api/runners/python/beam/BeamPythonFunctionRunner.java:605-611 | flink-python/src/main/java/org/apache/flink/streaming/api/runners/python/beam/BeamPythonFunctionRunner.java:613-619 | flink-python/src/main/java/org/apache/flink/streaming/api/runners/python/beam/BeamPythonFunctionRunner.java:623-629 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-python/src/main/java/org/apache/flink/streaming/api/runners/python/beam/BeamPythonFunctionRunner.java:605\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/streaming/api/runners/python/beam/BeamPythonFunctionRunner.java"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a8ba1ed0c6ea4239eade8404933dbc838db9eab5df5eb28779f0c60f616169b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): flink-core/src/main/java/org/apache/flink/api/common/typeutils/base/DateComparator.java:93-99 | flink-core/src/main/java/org/apache/flink/api/common/typeutils/base/EnumComparator.java:73-79 | flink-core/src/main/java/org/apache/flink/api/common/typeutils/base/NormalizedKeyUtil.java:143-149 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/api/common/typeutils/base/DateComparator.java:93\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/common/typeutils/base/DateComparator.java"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"53fc8f77990f73f89ad023814c0065b26213bcf1c37a9c970c661962f6027c1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:739-745 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:1125-1131 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:1283-1290 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:739\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java"},"region":{"startLine":739}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa8b80754cb5f49842bbed44e3834f58cfac374eeb737eac737c661966aa9419"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/over/AbstractRowTimeUnboundedPrecedingOver.java:113-119 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/over/RowTimeRangeBoundedPrecedingFunction.java:127-133 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/over/RowTimeRowsBoundedPrecedingFunction.java:135-141 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/over/AbstractRowTimeUnboundedPrecedingOver.java:113\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/over/AbstractRowTimeUnboundedPrecedingOver.java"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"73688dd2879b073fc0272215e968951ff852aad1b0aec7dd34e02969da12b62c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/scalar/ArrayContainsFunction.java:47-53 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/scalar/ArrayPositionFunction.java:51-57 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/scalar/ArrayRemoveFunction.java:52-58 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/scalar/ArrayContainsFunction.java:47\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/scalar/ArrayContainsFunction.java"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7e70e630146e1843f9f423215b13d20849a708841f2317707426385f430fc57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/api/internal/AnalyzeTableUtil.java:306-312 | flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/api/internal/AnalyzeTableUtil.java:315-321 | flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/api/internal/AnalyzeTableUtil.java:324-330 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/api/internal/AnalyzeTableUtil.java"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"f18b7005a4df8a9f27a958b064ea078e9accacc14ee98923f0de5e2c0d0ffcb7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): flink-python/src/main/java/org/apache/flink/client/python/PythonShellParser.java:199-205 | flink-examples/flink-examples-streaming/src/main/java/org/apache/flink/streaming/examples/statemachine/StateMachineExample.java:71-79 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-examples/flink-examples-streaming/src/main/java/org/apache/flink/streaming/examples/statemachine/StateMachineExample.java:71\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/client/python/PythonShellParser.java"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c8325d2249a9b33d593f0d7bac540810b8dba704f87bdd45b191119b500c5c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): flink-connectors/flink-connector-files/src/main/java/org/apache/flink/connector/file/table/FileSystemCommitter.java:103-109 | flink-connectors/flink-connector-files/src/main/java/org/apache/flink/connector/file/table/FileSystemCommitter.java:135-141 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-connectors/flink-connector-files/src/main/java/org/apache/flink/connector/file/table/FileSystemCommitter.java:103\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-connectors/flink-connector-files/src/main/java/org/apache/flink/connector/file/table/FileSystemCommitter.java"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e2be4b929abf78dbab7c28c7ffcdd48bf9a70c7cbbbb12d6915c84dcd4e2453"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): flink-python/src/main/java/org/apache/flink/streaming/api/runners/python/beam/state/BeamKeyedStateStore.java:97-103 | flink-python/src/main/java/org/apache/flink/streaming/api/runners/python/beam/state/BeamKeyedStateStore.java:152-158 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/streaming/api/runners/python/beam/state/BeamKeyedStateStore.java"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"7afa15bac208c74f083d15c2736307b60203ff0743e3c090f044867ccd4b3289"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): flink-runtime/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/WindowOperatorBuilder.java:314-320 | flink-runtime/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/WindowOperatorBuilder.java:372-378 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-runtime/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/WindowOperatorBuilder.java:314\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/WindowOperatorBuilder.java"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a63c4af8da76d9a7744b0213b26e0ec8006846d0508e918b600c08b47fb0fd2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/api/java/typeutils/runtime/PojoComparator.java:134-140 | flink-core/src/main/java/org/apache/flink/api/java/typeutils/runtime/TupleComparatorBase.java:132-138 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/java/typeutils/runtime/PojoComparator.java"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cbcccb0b5081bf9143f99ebcc9d3f61882801441da496e8f262e9a9010f62a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/api/java/typeutils/runtime/RowSerializer.java:225-231 | flink-core/src/main/java/org/apache/flink/api/java/typeutils/runtime/RowSerializer.java:250-256 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/api/java/typeutils/runtime/RowSerializer.java:225\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/java/typeutils/runtime/RowSerializer.java"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"12528bb7b59fa7eecf7afe0dfdce542efa7445cd4ea8eed14a46db5fc293ddea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/api/java/typeutils/TupleTypeInfo.java:211-217 | flink-core/src/main/java/org/apache/flink/api/java/typeutils/TupleTypeInfo.java:239-245 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/api/java/typeutils/TupleTypeInfo.java:211\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/java/typeutils/TupleTypeInfo.java"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eeb467f6bbce736d8c02072283c0534f28f1558300cea6337f8daeaba804bb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/api/common/operators/util/FieldSet.java:65-71 | flink-core/src/main/java/org/apache/flink/api/common/operators/util/FieldSet.java:83-89 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/api/common/operators/util/FieldSet.java:65\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/common/operators/util/FieldSet.java"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6ed6bc9bab464b5dd89a1b7749900e1aeed97cfad09065a38ee824807799b98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/api/common/operators/SlotSharingGroup.java:122-128 | flink-core-api/src/main/java/org/apache/flink/api/common/SlotSharingGroup.java:120-126 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/api/common/operators/SlotSharingGroup.java:122\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/common/operators/SlotSharingGroup.java"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"42d95572de0815cc65ef7372fec4cb52b178117dca3654fa2fdc4abb9eccb5a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/api/common/typeutils/base/LocalDateComparator.java:162-168 | flink-core/src/main/java/org/apache/flink/api/common/typeutils/base/LocalTimeComparator.java:112-118 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/api/common/typeutils/base/LocalDateComparator.java:162\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/common/typeutils/base/LocalDateComparator.java"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"682a60e721cd4cfa2fced9540a058248c3418343c2301d10fb4fdb20a10d0f78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/api/common/typeutils/CompositeSerializer.java:111-117 | flink-core/src/main/java/org/apache/flink/api/common/typeutils/CompositeSerializer.java:125-132 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/api/common/typeutils/CompositeSerializer.java:111\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/common/typeutils/CompositeSerializer.java"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"a29dc88d60c79657005f5b94819b6930abb46f5694e9e8f58ad482347aac9c23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/core/memory/MemorySegment.java:456-462 | flink-core/src/main/java/org/apache/flink/core/memory/MemorySegment.java:488-495 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/core/memory/MemorySegment.java:456\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/core/memory/MemorySegment.java"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"eebea8ab18baf01b8ac6782bd40b941ec2234525ed45331364cea9b0479a8639"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): flink-table/flink-sql-parser/src/main/java/org/apache/flink/sql/parser/ddl/SqlAlterFunction.java:53-59 | flink-table/flink-sql-parser/src/main/java/org/apache/flink/sql/parser/ddl/SqlCreateFunction.java:54-60 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-sql-parser/src/main/java/org/apache/flink/sql/parser/ddl/SqlAlterFunction.java:53\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-sql-parser/src/main/java/org/apache/flink/sql/parser/ddl/SqlAlterFunction.java"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0253d5fe641c235ca33a6b3b1ff946120bd7b57d77ea435707939c083768735"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): flink-table/flink-sql-parser/src/main/java/org/apache/flink/sql/parser/expr/SqlUnresolvedTryCastFunction.java:51-57 | flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/functions/sql/SqlTryCastFunction.java:82-88 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-sql-parser/src/main/java/org/apache/flink/sql/parser/expr/SqlUnresolvedTryCastFunction.java"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb644021848ab302ac0d4de838615d73a755300389f61d7fd3fae2eba933e852"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): flink-table/flink-sql-gateway/src/main/java/org/apache/flink/table/gateway/service/operation/OperationExecutor.java:866-872 | flink-table/flink-sql-gateway/src/main/java/org/apache/flink/table/gateway/service/operation/OperationExecutor.java:917-923 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-sql-gateway/src/main/java/org/apache/flink/table/gateway/service/operation/OperationExecutor.java:866\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-sql-gateway/src/main/java/org/apache/flink/table/gateway/service/operation/OperationExecutor.java"},"region":{"startLine":866}}}],"partialFingerprints":{"codehealthFindingId/v1":"db6115f7b4f75e017f77abdd62890e483534c93746a7904c0612bef243621fb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:815-821 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:1322-1328 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:815\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java"},"region":{"startLine":815}}}],"partialFingerprints":{"codehealthFindingId/v1":"20e76233e0a3165cfaae8f382632b7337f44421b20575e3cff4ebe67beade472"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:1136-1143 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:1242-1248 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:1136\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java"},"region":{"startLine":1136}}}],"partialFingerprints":{"codehealthFindingId/v1":"d29d6d5925f94b65b9f6a51573d90631b56096ef34b3215b673b721f13788835"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): flink-python/src/main/java/org/apache/flink/table/runtime/arrow/ArrowUtils.java:288-294 | flink-python/src/main/java/org/apache/flink/table/runtime/arrow/ArrowUtils.java:365-371 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/table/runtime/arrow/ArrowUtils.java"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"29d59cc35d2e37ab594cefa096b8177cac0b6a6f7cd6920b7cea61b4901689a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): flink-python/src/main/java/org/apache/flink/table/runtime/arrow/ArrowUtils.java:310-316 | flink-python/src/main/java/org/apache/flink/table/runtime/arrow/ArrowUtils.java:387-393 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-python/src/main/java/org/apache/flink/table/runtime/arrow/ArrowUtils.java:310\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/table/runtime/arrow/ArrowUtils.java"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"e324f339cc03a9c393e977ff7424e03acebc966bbe61057eadb80b810d21dfc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/aggregate/MiniBatchGlobalGroupAggFunction.java:128-134 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/aggregate/MiniBatchGroupAggFunction.java:136-142 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/aggregate/MiniBatchGlobalGroupAggFunction.java:128\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/aggregate/MiniBatchGlobalGroupAggFunction.java"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"56bc0bf52d50f2945b22bec23789ceda480dc855e99b852080c64ddc30802cbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/stream/asyncprocessing/state/OuterJoinRecordAsyncStateViews.java:90-96 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/stream/state/OuterJoinRecordStateViews.java:88-94 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/stream/asyncprocessing/state/OuterJoinRecordAsyncStateViews.java"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b60130c7fba0ed872f2ead4beca7fa8fb260cbed200babf3bbe08149ebf1cde"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/stream/asyncprocessing/state/OuterJoinRecordAsyncStateViews.java:221-227 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/stream/state/OuterJoinRecordStateViews.java:217-223 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/stream/asyncprocessing/state/OuterJoinRecordAsyncStateViews.java"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e78bd2ef9c7f3b4f4aa3c5ce2ce1af8e5f40e2a01f1a9fd8dc21b749f6b6ed9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/stream/keyselector/AttributeBasedJoinKeyExtractor.java:315-321 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/stream/keyselector/AttributeBasedJoinKeyExtractor.java:334-340 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/stream/keyselector/AttributeBasedJoinKeyExtractor.java:315\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/stream/keyselector/AttributeBasedJoinKeyExtractor.java"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec75f0b8e39b82abf5557b444e5a1d85e638f07f04ade98e4ff11a860b66a780"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/over/NonTimeRangeUnboundedPrecedingFunction.java:145-151 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/over/NonTimeRowsUnboundedPrecedingFunction.java:147-153 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/over/NonTimeRangeUnboundedPrecedingFunction.java:145\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/over/NonTimeRangeUnboundedPrecedingFunction.java"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"535572513445042c9230bccb86be22a2d5876f6064fe144b3508ed585c10f180"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/rank/utils/AppendOnlyTopNHelper.java:59-65 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/rank/utils/FastTop1Helper.java:63-69 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/rank/utils/AppendOnlyTopNHelper.java:59\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/rank/utils/AppendOnlyTopNHelper.java"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"b733b5167cc9be49526106541059cb393220c180cf4df9638fcd268521682eb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/rank/RetractableTopNFunction.java:251-257 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/rank/RetractableTopNFunction.java:347-353 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/rank/RetractableTopNFunction.java:251\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/rank/RetractableTopNFunction.java"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"8167f8c619ec764234f2e9c7accacbbd00856b7dea274e7d0fa840baa7140286"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/rank/RetractableTopNFunction.java:352-358 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/rank/RetractableTopNFunction.java:426-432 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/rank/RetractableTopNFunction.java:352\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/rank/RetractableTopNFunction.java"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf4686b7867ca4690d5686be66963c815040ab97230ea7cb5ff938bea6c8d2e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/window/tvf/unslicing/UnsliceAssigners.java:104-110 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/window/tvf/unslicing/UnsliceAssigners.java:120-126 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/window/tvf/unslicing/UnsliceAssigners.java:104\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/window/tvf/unslicing/UnsliceAssigners.java"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ef16218623c30ce72ad82c0c04081355b799af31df64274498ff18ede9d1455"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/scalar/ArrayDistinctFunction.java:51-57 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/scalar/ArrayUnionFunction.java:55-61 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/scalar/ArrayDistinctFunction.java:51\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/scalar/ArrayDistinctFunction.java"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"52d93db28905c23510cee161af93cc6a3719e3732e1f0a67475f1db7263baa9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/hashtable/BinaryHashPartition.java:413-419 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/hashtable/LongHashPartition.java:784-790 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/hashtable/BinaryHashPartition.java:413\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/hashtable/BinaryHashPartition.java"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb5ffc93ae3d4983bbc3019975a049512562aebdc87aab9f4757e54e178bfe4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): flink-table/flink-table-api-java-bridge/src/main/java/org/apache/flink/table/sinks/CsvTableSinkFactoryBase.java:69-75 | flink-table/flink-table-api-java-bridge/src/main/java/org/apache/flink/table/sources/CsvTableSourceFactoryBase.java:75-81 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-api-java-bridge/src/main/java/org/apache/flink/table/sinks/CsvTableSinkFactoryBase.java:69\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-api-java-bridge/src/main/java/org/apache/flink/table/sinks/CsvTableSinkFactoryBase.java"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"24c834538ee4732fbf6c2c36716c8bbb5caf29083fcac201c4953d0683ed9cb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/catalog/AbstractCatalogTable.java:54-60 | flink-table/flink-table-common/src/main/java/org/apache/flink/table/catalog/DefaultCatalogView.java:51-57 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/catalog/AbstractCatalogTable.java:54\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/catalog/AbstractCatalogTable.java"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"08ba59d36526ea69e060768af83bf340a747e2e42afaa8961c9c910bb0fdda20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): flink-table/flink-table-common/src/main/java/org/apache/flink/table/functions/UserDefinedFunctionHelper.java:511-517 | flink-table/flink-table-common/src/main/java/org/apache/flink/table/functions/UserDefinedFunctionHelper.java:523-530 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-common/src/main/java/org/apache/flink/table/functions/UserDefinedFunctionHelper.java:511\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/functions/UserDefinedFunctionHelper.java"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"8605ed7620163fe151f7233abee99e3fbe3bc20d653dbee36650931022489cd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/catalog/CatalogSchemaModel.java:104-110 | flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/catalog/CatalogSchemaTable.java:135-141 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/catalog/CatalogSchemaModel.java"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"f976160b3a2517644a12b64e39c808ec7d8eda726839bc6512bd1a7bfb96e662"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/connectors/DynamicSinkUtils.java:595-602 | flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/connectors/DynamicSinkUtils.java:748-754 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/connectors/DynamicSinkUtils.java"},"region":{"startLine":595}}}],"partialFingerprints":{"codehealthFindingId/v1":"cde952b95beba4fb10450a35dac5215a4eebd65bae4f959d98e7ed0094acc14d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/operations/converters/materializedtable/SqlCreateOrAlterMaterializedTableConverter.java:151-157 | flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/operations/converters/materializedtable/SqlCreateOrAlterMaterializedTableConverter.java:227-233 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/operations/converters/materializedtable/SqlCreateOrAlterMaterializedTableConverter.java:151\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/operations/converters/materializedtable/SqlCreateOrAlterMaterializedTableConverter.java"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"e07976da551344c7320bc4ea0980554c45eee3ac2da1ff4d93ee4e2c940a72a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/operations/converters/table/SqlAnalyzeTableConverter.java:72-79 | flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/operations/converters/SqlNodeConvertUtils.java:179-185 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/operations/converters/table/SqlAnalyzeTableConverter.java"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9120d7f4bc25da5b6bf62cc2ded4279f8ed171936e80dff84fb658c2c772531"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/common/CommonExecLookupJoin.java:455-461 | flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/common/CommonExecLookupJoin.java:604-610 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/common/CommonExecLookupJoin.java"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"644e58eacfe5c3398649b5a8cd8c57a67426b4004e07f4e46b5d447f59ffa249"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 8): flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:708-715 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:718-724 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:828-833 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:849-854 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:863-868 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:991-998 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:1162-1167 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:1237-1243 \u2014 all 8 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java:708\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java"},"region":{"startLine":708}}}],"partialFingerprints":{"codehealthFindingId/v1":"01236fecb7da90b548b576d6efd6b6317aa2e408861270984cd7b46ca85e8c70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/KeyMap.java:155-160 | flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/KeyMap.java:189-194 | flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/KeyMap.java:216-221 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/KeyMap.java:155\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/KeyMap.java"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3694fde655430c31db90d85c4ccba3531cf8174c52b9374eeca65992cced3f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): flink-python/src/main/java/org/apache/flink/table/runtime/arrow/ArrowUtils.java:295-300 | flink-python/src/main/java/org/apache/flink/table/runtime/arrow/ArrowUtils.java:372-377 | flink-python/src/main/java/org/apache/flink/table/runtime/arrow/ArrowUtils.java:451-456 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-python/src/main/java/org/apache/flink/table/runtime/arrow/ArrowUtils.java:295\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/table/runtime/arrow/ArrowUtils.java"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"206276990964981b3923bed94334691447fefc0950fbbc609a83a69a990811f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): flink-python/src/main/java/org/apache/flink/table/runtime/operators/python/aggregate/arrow/batch/BatchArrowPythonGroupAggregateFunctionOperator.java:93-98 | flink-python/src/main/java/org/apache/flink/table/runtime/operators/python/aggregate/arrow/batch/BatchArrowPythonOverWindowAggregateFunctionOperator.java:241-246 | flink-python/src/main/java/org/apache/flink/table/runtime/operators/python/scalar/arrow/ArrowPythonScalarFunctionOperator.java:120-125 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-python/src/main/java/org/apache/flink/table/runtime/operators/python/aggregate/arrow/batch/BatchArrowPythonGroupAggregateFunctionOperator.java:93\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/table/runtime/operators/python/aggregate/arrow/batch/BatchArrowPythonGroupAggregateFunctionOperator.java"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"e465b9ebe1e9ce943601243685ba76f6b2b5391c97ec15d6f0d109e8aa687af1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): flink-table/flink-table-common/src/main/java/org/apache/flink/table/descriptors/DescriptorProperties.java:328-333 | flink-table/flink-table-common/src/main/java/org/apache/flink/table/descriptors/DescriptorProperties.java:359-364 | flink-table/flink-table-common/src/main/java/org/apache/flink/table/catalog/CatalogPropertiesUtil.java:877-882 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-common/src/main/java/org/apache/flink/table/descriptors/DescriptorProperties.java:328\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/descriptors/DescriptorProperties.java"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9f68196d782a0e122b0b54d4c35591d9917759a56c7bba70e9f8bf85fc071de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): flink-connectors/flink-connector-files/src/main/java/org/apache/flink/connector/file/table/DeserializationSchemaAdapter.java:189-194 | flink-streaming-java/src/main/java/org/apache/flink/streaming/api/legacy/io/TextInputFormat.java:90-95 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-connectors/flink-connector-files/src/main/java/org/apache/flink/connector/file/table/DeserializationSchemaAdapter.java:189\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-connectors/flink-connector-files/src/main/java/org/apache/flink/connector/file/table/DeserializationSchemaAdapter.java"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"eee19910cbd5b244d317ea284e098d4bfc10c19e578940866b9278cf56644ff3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): flink-connectors/flink-connector-files/src/main/java/org/apache/flink/connector/file/table/RowDataPartitionComputer.java:79-84 | flink-connectors/flink-connector-files/src/main/java/org/apache/flink/connector/file/table/RowPartitionComputer.java:54-59 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-connectors/flink-connector-files/src/main/java/org/apache/flink/connector/file/table/RowDataPartitionComputer.java"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"54c1dcf90cb9b823228eecd4b5bdcea0214ced66994b1516100a761ad972d17e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): flink-test-utils-parent/flink-connector-test-utils/src/main/java/org/apache/flink/connector/testframe/utils/MetricQuerier.java:82-87 | flink-test-utils-parent/flink-connector-test-utils/src/main/java/org/apache/flink/connector/testframe/utils/MetricQuerier.java:101-106 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-test-utils-parent/flink-connector-test-utils/src/main/java/org/apache/flink/connector/testframe/utils/MetricQuerier.java"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9886f7af946c2ad87e9b9197d31665b7490d8dea8cafb50c59b395674995fcb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): flink-streaming-java/src/main/java/org/apache/flink/streaming/api/functions/sink/filesystem/Buckets.java:106-111 | flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/expressions/resolver/ExpressionResolver.java:146-153 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-streaming-java/src/main/java/org/apache/flink/streaming/api/functions/sink/filesystem/Buckets.java"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"faf520d7219ba483c990a98af002cde65188d2f5443b800de39e747853093383"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/sortpartition/KeyedSortPartitionOperator.java:307-312 | flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/sortpartition/SortPartitionOperator.java:248-253 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/sortpartition/KeyedSortPartitionOperator.java:307\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/sortpartition/KeyedSortPartitionOperator.java"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"006c789e5be5377283362bf07aabfc4690576f406407d854bb7f9dd885c4f30c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): flink-runtime/src/main/java/org/apache/flink/streaming/api/windowing/assigners/SlidingProcessingTimeWindows.java:73-78 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/window/groupwindow/assigners/SlidingWindowAssigner.java:74-79 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-runtime/src/main/java/org/apache/flink/streaming/api/windowing/assigners/SlidingProcessingTimeWindows.java:73\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/windowing/assigners/SlidingProcessingTimeWindows.java"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"48759f3a6fd7af4f81bf77b3db6efd73c5f36433d5c57fa64ab5c8c4b2120c94"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): flink-datastream/src/main/java/org/apache/flink/streaming/runtime/translators/DataStreamV2SinkTransformationTranslator.java:285-290 | flink-runtime/src/main/java/org/apache/flink/streaming/runtime/translators/SinkTransformationTranslator.java:366-371 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-datastream/src/main/java/org/apache/flink/streaming/runtime/translators/DataStreamV2SinkTransformationTranslator.java"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e5317b05508538034d50947abb712f63397bef2c3f023c41aa00593e1b83eec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): flink-runtime/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/MergingWindowSet.java:101-106 | flink-datastream/src/main/java/org/apache/flink/datastream/impl/extension/window/operators/MergingWindowSet.java:93-98 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-runtime/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/MergingWindowSet.java:101\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/runtime/operators/windowing/MergingWindowSet.java"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"46d55e2c5a62d39959a1c168413b2a2728ae71828c6b5f199e6c9739faaf6780"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): flink-runtime/src/main/java/org/apache/flink/streaming/runtime/streamrecord/StreamElementSerializer.java:207-212 | flink-runtime/src/main/java/org/apache/flink/streaming/runtime/streamrecord/StreamElementSerializer.java:240-245 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-runtime/src/main/java/org/apache/flink/streaming/runtime/streamrecord/StreamElementSerializer.java:207\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/runtime/streamrecord/StreamElementSerializer.java"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"05831108c0b789a5db52461e3a7967ac7eb38b2ca973f34e46b088e125a3ac4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): flink-examples/flink-examples-streaming/src/main/java/org/apache/flink/streaming/examples/windowing/WindowWordCount.java:97-102 | flink-examples/flink-examples-streaming/src/main/java/org/apache/flink/streaming/examples/wordcount/WordCount.java:87-92 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-examples/flink-examples-streaming/src/main/java/org/apache/flink/streaming/examples/windowing/WindowWordCount.java:97\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-examples/flink-examples-streaming/src/main/java/org/apache/flink/streaming/examples/windowing/WindowWordCount.java"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cd727d01df599fb4b0b590ab4ef891fb972a0e990e1d97a166f43eda58b5033"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/api/java/typeutils/runtime/PojoSerializer.java:261-266 | flink-core/src/main/java/org/apache/flink/api/java/typeutils/runtime/PojoSerializer.java:308-313 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/api/java/typeutils/runtime/PojoSerializer.java:261\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/java/typeutils/runtime/PojoSerializer.java"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"6579077c8cc93c0a85e05c6e930337e1f908cc4414849813f00b09ea35fa7643"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/api/common/operators/Keys.java:152-157 | flink-core/src/main/java/org/apache/flink/api/common/operators/Keys.java:390-395 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/api/common/operators/Keys.java:152\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/common/operators/Keys.java"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"4058f5b0fc0dc32cbcccb405b699906a28592628f2ff31aef538a0fc545a83fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/api/common/operators/SlotSharingGroup.java:133-138 | flink-core-api/src/main/java/org/apache/flink/api/common/SlotSharingGroup.java:131-136 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/api/common/operators/SlotSharingGroup.java:133\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/common/operators/SlotSharingGroup.java"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"45ca58aa416b50598817447cba20dec6ff460b95f6d0113b7416199dd1710f43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/api/common/typeutils/base/BigDecComparator.java:106-112 | flink-core/src/main/java/org/apache/flink/api/common/typeutils/base/BigIntComparator.java:87-92 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/api/common/typeutils/base/BigDecComparator.java:106\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/common/typeutils/base/BigDecComparator.java"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"711abcadcb0570c85b9007e3b70e631dbed1489287042c7947b38e3156f0eab2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): flink-connectors/flink-hadoop-compatibility/src/main/java/org/apache/flink/hadoopcompatibility/mapred/HadoopMapFunction.java:114-119 | flink-connectors/flink-hadoop-compatibility/src/main/java/org/apache/flink/hadoopcompatibility/mapred/HadoopReducerWrappedFunction.java:126-131 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-connectors/flink-hadoop-compatibility/src/main/java/org/apache/flink/hadoopcompatibility/mapred/HadoopMapFunction.java:114\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-connectors/flink-hadoop-compatibility/src/main/java/org/apache/flink/hadoopcompatibility/mapred/HadoopMapFunction.java"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"5068f558cde336137e7dbbd64d021512cf4b9abb191de004dd68752f734f42ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): flink-table/flink-sql-parser/src/main/java/org/apache/flink/sql/parser/ddl/materializedtable/SqlCreateMaterializedTable.java:246-251 | flink-table/flink-sql-parser/src/main/java/org/apache/flink/sql/parser/ddl/table/SqlCreateTable.java:250-255 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-sql-parser/src/main/java/org/apache/flink/sql/parser/ddl/materializedtable/SqlCreateMaterializedTable.java"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d780927c82675d683b4b68e18f12570bd8bbad95426d4810e9fb0f91b419465"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): flink-python/src/main/java/org/apache/flink/table/runtime/arrow/ArrowUtils.java:804-810 | flink-python/src/main/java/org/apache/flink/table/runtime/arrow/ArrowUtils.java:818-823 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-python/src/main/java/org/apache/flink/table/runtime/arrow/ArrowUtils.java:804\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/table/runtime/arrow/ArrowUtils.java"},"region":{"startLine":804}}}],"partialFingerprints":{"codehealthFindingId/v1":"f52a141e823a15bd16cc03610fc0b67d780daa6c92e1ede41eedb0e44180195e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): flink-python/src/main/java/org/apache/flink/table/runtime/operators/python/aggregate/arrow/stream/AbstractStreamArrowPythonBoundedRangeOperator.java:117-122 | flink-python/src/main/java/org/apache/flink/table/runtime/operators/python/aggregate/arrow/stream/AbstractStreamArrowPythonBoundedRowsOperator.java:148-153 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-python/src/main/java/org/apache/flink/table/runtime/operators/python/aggregate/arrow/stream/AbstractStreamArrowPythonBoundedRangeOperator.java:117\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/table/runtime/operators/python/aggregate/arrow/stream/AbstractStreamArrowPythonBoundedRangeOperator.java"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"a67ac61576781a7acc4576f14ce182ca3a1a66856acccc249d2698fdcb53153b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/interval/TimeIntervalJoin.java:177-183 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/interval/TimeIntervalJoin.java:261-266 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/interval/TimeIntervalJoin.java:177\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/interval/TimeIntervalJoin.java"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"28377b31d8cd3a6941d12f40f5fc566b03e1df22fe6425267a4fd90d7656a1ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/scalar/ArrayExceptFunction.java:48-53 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/scalar/ArrayIntersectFunction.java:47-52 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/scalar/ArrayExceptFunction.java"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c772cb0a1ff37432586d2d6c09c4efc9c8bb1618779e723c8410c8cde374d17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/types/PlannerTypeUtils.java:111-116 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/types/PlannerTypeUtils.java:161-166 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/types/PlannerTypeUtils.java:111\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/types/PlannerTypeUtils.java"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"620273e9e568391ef3006c1827471fe38b33679a71cbd4bf3598c13a7fa586f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): flink-table/flink-table-common/src/main/java/org/apache/flink/table/utils/DateTimeUtils.java:688-693 | flink-table/flink-table-common/src/main/java/org/apache/flink/table/utils/DateTimeUtils.java:701-706 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-common/src/main/java/org/apache/flink/table/utils/DateTimeUtils.java:688\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/utils/DateTimeUtils.java"},"region":{"startLine":688}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa2124df2538f929cd4b5b12dc0d7d4a9ec8953384a8b1b2213ae09c240cf5cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): flink-table/flink-sql-client/src/main/java/org/apache/flink/table/client/cli/CliChangelogResultView.java:288-293 | flink-table/flink-sql-client/src/main/java/org/apache/flink/table/client/cli/CliTableResultView.java:329-334 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-sql-client/src/main/java/org/apache/flink/table/client/cli/CliChangelogResultView.java"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"aecabbf204941324c8cc3e96f9a861d64e15c8eb3c72724e241eca1aa5dd7173"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): flink-table/flink-sql-client/src/main/java/org/apache/flink/table/client/cli/CliUtils.java:75-80 | flink-table/flink-sql-client/src/main/java/org/apache/flink/table/client/cli/CliUtils.java:83-89 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-sql-client/src/main/java/org/apache/flink/table/client/cli/CliUtils.java"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f5acd72bd3bbcb470a3b3462aefdf4d387d4cf8d7caf36f69434f77e87a7c9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/api/internal/ShowCreateUtil.java:114-119 | flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/api/internal/ShowCreateUtil.java:174-179 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/api/internal/ShowCreateUtil.java"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"e335b034c7707b51f8ee22318f184d78058bb45fba9df0492e2ae4c9041acf20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/utils/ValuesOperationFactory.java:263-268 | flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/utils/ValuesOperationFactory.java:284-289 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/utils/ValuesOperationFactory.java:263\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/utils/ValuesOperationFactory.java"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"623cbb47142d40f80f131e0d2690e53c5728d75b9ec7457e52883b0bb3a1300b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): flink-table/flink-table-api-java-bridge/src/main/java/org/apache/flink/table/sinks/CsvTableSinkFactoryBase.java:92-97 | flink-table/flink-table-api-java-bridge/src/main/java/org/apache/flink/table/sources/CsvTableSourceFactoryBase.java:100-105 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-api-java-bridge/src/main/java/org/apache/flink/table/sinks/CsvTableSinkFactoryBase.java"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ff5519ceb589080544632d06a117d8f282d50796ee8ebab32fbb92a0a4dba7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/expressions/converter/converters/BetweenConverter.java:38-43 | flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/expressions/converter/converters/NotBetweenConverter.java:38-43 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/expressions/converter/converters/BetweenConverter.java"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2f1a130178482ed72fe753a8e5a43575312fee85958f2ecbc1541a155151553"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/expressions/converter/converters/JsonArrayConverter.java:39-44 | flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/expressions/converter/converters/JsonObjectConverter.java:42-47 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/expressions/converter/converters/JsonArrayConverter.java:39\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/expressions/converter/converters/JsonArrayConverter.java"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"d483612b2dd7b86c056e47564200c4b5827bd9aa457305b9dea401a7ae8c4c7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 6): flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/schema/TpcdsSchemaProvider.java:59-63 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/schema/TpcdsSchemaProvider.java:96-100 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/schema/TpcdsSchemaProvider.java:128-132 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/schema/TpcdsSchemaProvider.java:155-159 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/schema/TpcdsSchemaProvider.java:187-191 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/schema/TpcdsSchemaProvider.java:221-225 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/schema/TpcdsSchemaProvider.java"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"17c54526627ea54e3ef096e8952b850355a712839d9c3d4557cf28e067d6ea5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/schema/TpcdsSchemaProvider.java:352-356 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/schema/TpcdsSchemaProvider.java:361-365 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/schema/TpcdsSchemaProvider.java:495-499 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/schema/TpcdsSchemaProvider.java"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ae374a979de71a63dd2f6afbfb9cf4e9cf92b894d9836b248eb9f15276dafba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/api/java/typeutils/runtime/PojoSerializerSnapshotData.java:92-97 | flink-core/src/main/java/org/apache/flink/api/java/typeutils/runtime/PojoSerializerSnapshotData.java:146-150 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/api/java/typeutils/runtime/PojoSerializerSnapshotData.java:92\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/java/typeutils/runtime/PojoSerializerSnapshotData.java"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"b76955f8ef272c9c3a94de5b4d1b2f1bb1d34817ac5dd7e7e54c34da29b1d887"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/api/common/typeutils/base/NormalizedKeyUtil.java:115-119 | flink-core/src/main/java/org/apache/flink/api/common/typeutils/base/NormalizedKeyUtil.java:139-143 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/api/common/typeutils/base/NormalizedKeyUtil.java:115\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/api/common/typeutils/base/NormalizedKeyUtil.java"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"d85cd9153cf1a63096d83153dcd029538b0b73e842ae752c1f4d130acef8c721"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): flink-python/src/main/java/org/apache/flink/api/common/python/PythonBridgeUtils.java:211-215 | flink-python/src/main/java/org/apache/flink/api/common/python/PythonBridgeUtils.java:297-301 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-python/src/main/java/org/apache/flink/api/common/python/PythonBridgeUtils.java:211\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/api/common/python/PythonBridgeUtils.java"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee7a9bf35148f3d10ac60665fb98d011fd732c1d918543ff27874f9e52d8bc62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): flink-core/src/main/java/org/apache/flink/core/memory/AbstractPagedOutputView.java:363-367 | flink-core/src/main/java/org/apache/flink/core/memory/DataOutputSerializer.java:317-321 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-core/src/main/java/org/apache/flink/core/memory/AbstractPagedOutputView.java:363\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-core/src/main/java/org/apache/flink/core/memory/AbstractPagedOutputView.java"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"d576569a7af4465b72e92082f887801b090f7cafd47cb9357ea5388469846835"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/schema/TpcdsSchemaProvider.java:296-300 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/schema/TpcdsSchemaProvider.java:562-566 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/schema/TpcdsSchemaProvider.java"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7c3a650befff025bc9ff413a728a55132f2e7378a7a391d1b5458675c884e6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/schema/TpcdsSchemaProvider.java:507-511 | flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/schema/TpcdsSchemaProvider.java:555-559 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/schema/TpcdsSchemaProvider.java"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9164fc84fb0c0e1766d90e7732e3385a40093256fefd57037335a2bcfff2fe6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): flink-table/flink-table-type-utils/src/main/java/org/apache/flink/table/runtime/typeutils/MapDataSerializer.java:166-170 | flink-table/flink-table-test-utils/src/main/java/org/apache/flink/table/runtime/functions/MapViewStateConverter.java:75-79 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-type-utils/src/main/java/org/apache/flink/table/runtime/typeutils/MapDataSerializer.java:166\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-type-utils/src/main/java/org/apache/flink/table/runtime/typeutils/MapDataSerializer.java"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5a8dfbc5633d8220f10ced0bf0b2ce1fc4b4efb3a48a0334b871636766a3ba0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/scalar/ArrayExceptFunction.java:68-72 | flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/scalar/ArrayIntersectFunction.java:66-70 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/scalar/ArrayExceptFunction.java:68\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/scalar/ArrayExceptFunction.java"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7d2a72354936a3406fc550185e14e97b8b02ac9b4aea4c8efdd512197612f3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/DescribeCatalogOperation.java:112-116 | flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/DescribeFunctionOperation.java:127-131 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/DescribeCatalogOperation.java:112\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/operations/DescribeCatalogOperation.java"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"34273117045945a6cc7467d674da75bcf8e0df2731d22adaba2d230d383369cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/expressions/converter/converters/JsonQueryConverter.java:46-50 | flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/expressions/converter/converters/JsonValueConverter.java:49-53 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/expressions/converter/converters/JsonQueryConverter.java"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"45f1c87424e223f9f4da1207f241719b0b296e941d7ed84dbbd93884379250b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/functions/sql/ml/SqlMLTableFunction.java:182-187 | flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/functions/sql/ml/SqlVectorSearchTableFunction.java:190-194 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/functions/sql/ml/SqlMLTableFunction.java"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2652adac1e1e8db9781f6b8d1a155f89c35376c0b6f1852a7842370a4076a69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/batch/BatchExecPythonGroupAggregate.java:91-95 | flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/batch/BatchExecPythonGroupWindowAggregate.java:109-113 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/batch/BatchExecPythonGroupAggregate.java"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"56f34905546bd4f78f45b5892710773956c87af10abce33db6c7529b2e3a1b66"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql/type/SqlTypeFactoryImpl.java: flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql/type/SqlTypeFactoryImpl.java changed 5 times in last 90 days, max complexity 71. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, behind tests written first."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql/type/SqlTypeFactoryImpl.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f22c0a4844c31902dd2af72e57b5a727649f0ae2dddb7ee43f794f6813ee640"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql2rel/SqlToRelConverter.java: flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql2rel/SqlToRelConverter.java changed 5 times in last 90 days, max complexity 50. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, behind tests written first."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql2rel/SqlToRelConverter.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5aa85f7785c80e073e102648f4cdf4fdb7bb37b32b2f03bdf26221d60830bc9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: flink-table/flink-table-planner/src/main/java/org/apache/calcite/rex/RexUtil.java: flink-table/flink-table-planner/src/main/java/org/apache/calcite/rex/RexUtil.java changed 7 times in last 90 days, max complexity 32. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, behind tests written first."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/rex/RexUtil.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"773693e511bf2346639d9c5281fceb942eda81b5823b069af7e1dd5d9c6ea683"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql/validate/SqlValidatorImpl.java: flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql/validate/SqlValidatorImpl.java changed 7 times in last 90 days, max complexity 26. 1 of those changes was a fix/bug commit, and the other 6 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql/validate/SqlValidatorImpl.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"93e1c408014e03f21ff99b39ae4225e8340b1fd9a50a618ec5ce8a5bf4c419e8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: flink-table/flink-table-planner/src/main/java/org/apache/calcite/rex/RexBuilder.java: flink-table/flink-table-planner/src/main/java/org/apache/calcite/rex/RexBuilder.java changed 3 times in last 90 days, max complexity 58. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, behind tests written first."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/rex/RexBuilder.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1319cbd0f689f1e75155462e239785d8ad5b7c90a7d01495a3dc82f6c39494b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql/type/SqlTypeUtil.java: flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql/type/SqlTypeUtil.java changed 5 times in last 90 days, max complexity 32. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, behind tests written first."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql/type/SqlTypeUtil.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"42a718a13fef2bdf44ee3dff81504b27f2b044a4a71075ca8c4ce971fa465e3a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: flink-filesystems/flink-s3-fs-native/src/main/java/org/apache/flink/fs/s3native/NativeS3FileSystemFactory.java: flink-filesystems/flink-s3-fs-native/src/main/java/org/apache/flink/fs/s3native/NativeS3FileSystemFactory.java changed 6 times in last 90 days, max complexity 20. 1 of those changes was a fix/bug commit, and the other 5 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-filesystems/flink-s3-fs-native/src/main/java/org/apache/flink/fs/s3native/NativeS3FileSystemFactory.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d535d991b05e9f12f30db3612be4ea50e049a836f9b73512864dd06f50671f07"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql2rel/RelDecorrelator.java: flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql2rel/RelDecorrelator.java changed 4 times in last 90 days, max complexity 26. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, behind tests written first."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql2rel/RelDecorrelator.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8ca47e7d3f5ffb64f57d50d063d940f5ed0b68ea92fc409f52c599ed6d5b384"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql/SqlIntervalQualifier.java: flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql/SqlIntervalQualifier.java changed 3 times in last 90 days, max complexity 27. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, behind tests written first."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql/SqlIntervalQualifier.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d5b131858417531ee10015ab5927d2092724cd65bfddfad43fe2cfa8fdeac29"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/operations/SqlNodeToOperationConversion.java: flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/operations/SqlNodeToOperationConversion.java changed 2 times in last 90 days, max complexity 39. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, behind tests written first."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/operations/SqlNodeToOperationConversion.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6885cfca92614a9b69181b5712030c652a9a4df351f7135aea5b04f4d6dfc29b"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 43 significant file(s) lose their only recent owner: flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql/validate/SqlValidatorImpl.java, flink-table/flink-table-planner/src/main/java/org/apache/calcite/runtime/SqlFunctions.java, flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql2rel/RelDecorrelator.java, flink-table/flink-table-planner/src/main/java/org/apache/calcite/rex/RexUtil.java, flink-table/flink-table-planner/src/main/java/org/apache/calcite/rex/RexBuilder.java, flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql/type/SqlTypeUtil.java, flink-table/flink-table-planner/src/main/java/org/apache/calcite/rel/rules/SubQueryRemoveRule.java, flink-table/flink-table-planner/src/main/java/org/apache/calcite/sql/SqlIntervalQualifier.java (\u002B35 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"af8bc9ac29e442a80188211ebeabff1959cf1f164faae5cb76cdb0c9003995a0"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #2: If anonymized user #2 becomes unavailable, 20 significant file(s) lose their only recent owner: flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/consumer/LocalInputChannel.java, flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/TaskStateAssignment.java, flink-runtime/src/main/java/org/apache/flink/streaming/runtime/io/checkpointing/SingleCheckpointBarrierHandler.java, flink-runtime/src/main/java/org/apache/flink/runtime/io/network/api/serialization/EventSerializer.java, flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/consumer/BufferManager.java, flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/consumer/UnionInputGate.java, flink-runtime/src/main/java/org/apache/flink/streaming/runtime/tasks/MultipleInputStreamTask.java, flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/consumer/RecoveredInputChannel.java (\u002B12 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"c335fe4469d9b16dbfa50f1dc2f4c1f53ede3f52d38dee9cee2c51b9d6998dd4"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #3: If anonymized user #3 becomes unavailable, 12 significant file(s) lose their only recent owner: flink-clients/src/main/java/org/apache/flink/client/deployment/application/PackagedProgramApplication.java, flink-runtime/src/main/java/org/apache/flink/runtime/blob/BlobClient.java, flink-runtime-web/src/main/java/org/apache/flink/runtime/webmonitor/handlers/JarRunApplicationHandler.java, flink-runtime/src/main/java/org/apache/flink/runtime/highavailability/FileSystemApplicationResultStore.java, flink-runtime/src/main/java/org/apache/flink/runtime/jobmaster/JobResult.java, flink-runtime/src/main/java/org/apache/flink/runtime/application/AbstractApplication.java, flink-clients/src/main/java/org/apache/flink/client/ClientUtils.java, flink-runtime/src/main/java/org/apache/flink/runtime/rest/messages/json/JobResultDeserializer.java (\u002B4 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"c469c6438b8eb78b495a47949738bbaa7fa699b686e7dd9603f2379b92360274"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #4: If anonymized user #4 becomes unavailable, 13 significant file(s) lose their only recent owner: flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/interval/TimeIntervalJoin.java, flink-runtime/src/main/java/org/apache/flink/streaming/runtime/tasks/AsyncCheckpointRunnable.java, flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/rules/physical/stream/ExpandWindowTableFunctionTransposeRule.java, flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/rules/physical/stream/PullUpWindowTableFunctionIntoWindowAggregateRule.java, flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/sequencedmultisetstate/linked/LinkedMultiSetState.java, flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/rules/physical/stream/IncrementalAggregateRule.java, flink-core/src/main/java/org/apache/flink/api/common/typeutils/CompositeSerializer.java, flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/sink/SinkUpsertMaterializer.java (\u002B5 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"1caf45e58f2e79c2fc100aba63185f5749a29557ca72328ecb4e214fe44e3d77"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #5: If anonymized user #5 becomes unavailable, 9 significant file(s) lose their only recent owner: flink-runtime/src/main/java/org/apache/flink/runtime/rest/messages/job/rescales/JobRescaleDetails.java, flink-kubernetes/src/main/java/org/apache/flink/kubernetes/kubeclient/Fabric8FlinkKubeClient.java, flink-runtime/src/main/java/org/apache/flink/runtime/scheduler/adaptive/timeline/Rescale.java, flink-runtime/src/main/java/org/apache/flink/runtime/scheduler/LocalInputPreferredSlotSharingStrategy.java, flink-runtime/src/main/java/org/apache/flink/runtime/jobmanager/DefaultExecutionPlanStore.java, flink-core/src/main/java/org/apache/flink/configuration/WebOptions.java, flink-core/src/main/java/org/apache/flink/util/SerializedThrowable.java, flink-formats/flink-protobuf/src/main/java/org/apache/flink/formats/protobuf/util/PbSchemaValidationUtils.java (\u002B1 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"88f4c78774b6e75444a32b544bd4a6dd9e530f46abd01065a38d37b76ae9c90a"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #6: If anonymized user #6 becomes unavailable, 8 significant file(s) lose their only recent owner: flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/data/binary/BinaryStringDataUtil.java, flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/SqlFunctionUtils.java, flink-core/src/main/java/org/apache/flink/types/variant/BinaryVariantUtil.java, flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/codegen/calls/StringCallGen.scala, flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/inference/strategies/FromChangelogTypeStrategy.java, flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/inference/strategies/StrategyUtils.java, flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/inference/strategies/ToTimestampLtzTypeStrategy.java, flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/ptf/FromChangelogFunction.java. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"7a3722b087eb81426e61156a7db85aea9c53ebf09e6a9dd21e06b2ed95f9c692"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #7: If anonymized user #7 becomes unavailable, 7 significant file(s) lose their only recent owner: flink-filesystems/flink-s3-fs-native/src/main/java/org/apache/flink/fs/s3native/NativeS3FileSystem.java, flink-filesystems/flink-s3-fs-native/src/main/java/org/apache/flink/fs/s3native/NativeS3BulkCopyHelper.java, flink-filesystems/flink-s3-fs-native/src/main/java/org/apache/flink/fs/s3native/NativeS3InputStream.java, flink-filesystems/flink-s3-fs-native/src/main/java/org/apache/flink/fs/s3native/S3BucketConfig.java, flink-filesystems/flink-s3-fs-native/src/main/java/org/apache/flink/fs/s3native/writer/NativeS3RecoverableWriter.java, flink-filesystems/flink-s3-fs-native/src/main/java/org/apache/flink/fs/s3native/writer/NativeS3RecoverableFsDataOutputStream.java, flink-filesystems/flink-s3-fs-native/src/main/java/org/apache/flink/fs/s3native/BucketConfigProvider.java. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"249f2866cd2ed41d272709b8d957f8e72193cca235fd8dbeae7f6e9db88f7b82"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #8: If anonymized user #8 becomes unavailable, 7 significant file(s) lose their only recent owner: flink-table/flink-table-common/src/main/java/org/apache/flink/table/data/binary/BinaryStringData.java, flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/logical/utils/LogicalTypeChecks.java, flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/physical/stream/StreamPhysicalMultiJoin.java, flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/stream/StreamExecMultiJoin.java, flink-table/flink-table-common/src/main/java/org/apache/flink/table/data/binary/StringUtf8Utils.java, flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/rules/logical/SimplifyCoalesceWithEquiJoinConditionRule.java, flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/logical/FlinkLogicalMultiJoin.java. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dcf5f10f6432c327908c577d509d7454ce559827356b850f45b6e0cdc75c94ed"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #9: If anonymized user #9 becomes unavailable, 4 significant file(s) lose their only recent owner: flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/deltajoin/StreamingDeltaJoinOperator.java, flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/deltajoin/AsyncDeltaJoinRunner.java, flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/rules/physical/stream/DeltaJoinRewriteRule.java, flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/rules/physical/stream/DuplicateChangesInferRule.java. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"5767cb7e277287b1bbc622ce33a989c1e6f9e7435e03b362a809e488b80b5ea1"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #10: If anonymized user #10 becomes unavailable, 4 significant file(s) lose their only recent owner: flink-python/pyflink/fn_execution/datastream/process/async_function/operation.py, flink-python/pyflink/fn_execution/datastream/process/async_function/queue.py, flink-python/pyflink/gen_protos.py, flink-python/pyflink/datastream/async_data_stream.py. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d57b82df32dc6401133c86259c77c5a141f6e1e0ba8c80fa660c927b8d0ce482"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #11: If anonymized user #11 becomes unavailable, 3 significant file(s) lose their only recent owner: flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/aggregate/hyperloglog/HyperLogLogPlusPlus.java, flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/rules/logical/PushFilterIntoSourceScanRuleBase.java, flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/rules/logical/PushFilterIntoTableSourceScanRule.java. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"83e164e8f7ceefa0808d8d57d2b5f8a8700e6e12a0c3b1eb13e4c23544249006"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #12: If anonymized user #12 becomes unavailable, 3 significant file(s) lose their only recent owner: flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/rules/logical/SplitAggregateRule.java, flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/rules/logical/DecomposeGroupingSetsRule.java, flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/rules/logical/PruneAggregateCallRule.java. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"5aafbd7329ccb5cd90d1d504e3cd9ae62ec69ad908ebf5f3c02caada9e99e009"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #13: If anonymized user #13 becomes unavailable, 3 significant file(s) lose their only recent owner: flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/codegen/calls/FunctionGenerator.scala, flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/operators/join/temporal/TemporalRowTimeJoinOperator.java, flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/inference/strategies/LateralSnapshotTypeStrategy.java. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d858bde9b337e54929a840c3c8bea6f8abcb6c024e2c0557a0aea2fda924cdaf"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #14: If anonymized user #14 becomes unavailable, 3 significant file(s) lose their only recent owner: flink-runtime/src/main/java/org/apache/flink/runtime/security/token/DefaultDelegationTokenManager.java, flink-libraries/flink-state-processing-api/src/main/java/org/apache/flink/state/table/SavepointDynamicTableSourceFactory.java, flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/catalog/FileCatalogStore.java. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"4cede9c2434c0e2c3e5640579a35e28aa78f029f16eca7e13e34bf8be3e2d6ca"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #15: If anonymized user #15 becomes unavailable, 3 significant file(s) lose their only recent owner: flink-connectors/flink-connector-base/src/main/java/org/apache/flink/connector/base/source/reader/synchronization/FutureCompletingBlockingQueue.java, flink-runtime/src/main/java/org/apache/flink/streaming/runtime/tasks/StreamOperatorWrapper.java, flink-runtime/src/main/java/org/apache/flink/runtime/leaderretrieval/ZooKeeperLeaderRetrievalDriver.java. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"91abf47225913a161ef70377b305cfac59872ccd1c55124a78ef019de3382884"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 41 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold \u2014 folded into the bus-factor score and metrics (198 single-owned of 2845 analysed files in total, counted over production source files of roughly 100 lines or more, excluding tests, vendored, generated and example/demo trees, largest first). They are anonymized user #16 (2 file(s)), anonymized user #17 (2 file(s)), anonymized user #18 (2 file(s)), anonymized user #19 (2 file(s)), anonymized user #20 (2 file(s)), anonymized user #21 (2 file(s)) (\u002B35 more) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D19","level":"note","message":{"text":"The \u0027Documentation generators\u0027 section mentions REST/OpenAPI but does not explain how to generate or integrate a new endpoint\u0027s documentation, which is critical for contributors.: Add a brief steps guide on adding a new RestServerEndpoint and integrating the generated file into markdown."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-docs/README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d545a56afc7b8b1d86e8e3048daa5731c6fd34a1402a2a499c909b72e397a41c"}},{"ruleId":"D34","level":"note","message":{"text":"Concentrated knowledge decay: 1651 of 3000 significant files have no living knowledge, while the repository is still being changed at a low rate (443 commit(s) in the last 90 days) \u2014 so this is one repo-wide knowledge-decay state, not 1651 separate risks. The code moved on without the people who understood these files: document them or schedule a read-through before the next change lands in them."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"008bd8d3156a7f5206da709f59f1f87af76671c6b9becea72c8c9cffbcbd4f8e"}},{"ruleId":"D34","level":"note","message":{"text":"Largest orphaned file: One of the largest files with no living knowledge remaining \u2014 a reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/runtime/operators/hash/MutableHashTable.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cc3931322c23d1d9af25092bf596523bed0a48af0202c5dc7618bd373442d96"}},{"ruleId":"D34","level":"note","message":{"text":"Largest orphaned file: One of the largest files with no living knowledge remaining \u2014 a reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-python/src/main/java/org/apache/flink/streaming/api/utils/PythonTypeUtils.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"66f6c1ecc294f23c665b9e9236d4c8f1f413f2e608e463566c7f604f1c9095e4"}},{"ruleId":"D34","level":"note","message":{"text":"Largest orphaned file: One of the largest files with no living knowledge remaining \u2014 a reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-end-to-end-tests/flink-tpcds-test/src/main/java/org/apache/flink/table/tpcds/stats/TpcdsStatsProvider.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc70054b9ec1b7fc5a233cdeec9463b948cf48ce594ff3ac81f27e64ba5dc718"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: StreamOperatorStateHandler.java \u2194 ForStKeyedStateBackend.java: \u0060flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/StreamOperatorStateHandler.java\u0060 (context flink-runtime) and \u0060flink-state-backends/flink-statebackend-forst/src/main/java/org/apache/flink/state/forst/ForStKeyedStateBackend.java\u0060 (context flink-state-backends) sit in DIFFERENT parts of the tree yet change together 54% of the time (7 of the 13 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/StreamOperatorStateHandler.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f34544fbd7744b4d1012cbd5bad4203a7ff26245b1d5a66e10902af6a115807b"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: FsStateChangelogWriter.java \u2194 ChangelogKeyedStateBackend.java: \u0060flink-dstl/flink-dstl-dfs/src/main/java/org/apache/flink/changelog/fs/FsStateChangelogWriter.java\u0060 (context flink-dstl) and \u0060flink-state-backends/flink-statebackend-changelog/src/main/java/org/apache/flink/state/changelog/ChangelogKeyedStateBackend.java\u0060 (context flink-state-backends) sit in DIFFERENT parts of the tree yet change together 50% of the time (5 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-dstl/flink-dstl-dfs/src/main/java/org/apache/flink/changelog/fs/FsStateChangelogWriter.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b88fc20fd1d48b785a26e93a32d55b17458ec6b3b5ba04821b7e9d73f56d3eb"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: FlinkBatchRuleSets.scala \u2194 FlinkStreamRuleSets.scala: \u0060flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/plan/rules/FlinkBatchRuleSets.scala\u0060 and \u0060flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/plan/rules/FlinkStreamRuleSets.scala\u0060 change together 79% of the time (26 of the 33 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/plan/rules/FlinkBatchRuleSets.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"420c7d09b7f6f29db0465aa6174ee8cac5b2d0acd88151074d1437207322a347"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: InternalTimerServiceImpl.java \u2194 BatchExecutionInternalTimeServiceManager.java: \u0060flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/InternalTimerServiceImpl.java\u0060 and \u0060flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/sorted/state/BatchExecutionInternalTimeServiceManager.java\u0060 change together 70% of the time (7 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/InternalTimerServiceImpl.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"238282a3a7872d47ab2c4983475a50769ec13a54860911fe9e61485ad6c23124"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: BaseExpressions.java \u2194 InputTypeStrategies.java: \u0060flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/api/internal/BaseExpressions.java\u0060 and \u0060flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/inference/InputTypeStrategies.java\u0060 change together 67% of the time (8 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/api/internal/BaseExpressions.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a2e7fba6cb9112388c72b6ec3f933f7e65f33f719a8bc8741fdc9e49c9fdd42"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: TableChange.java \u2194 SqlNodeToOperationConversion.java: \u0060flink-table/flink-table-common/src/main/java/org/apache/flink/table/catalog/TableChange.java\u0060 and \u0060flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/operations/SqlNodeToOperationConversion.java\u0060 change together 50% of the time (5 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"flink-table/flink-table-common/src/main/java/org/apache/flink/table/catalog/TableChange.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcf89fea5bd8a28bcc3d2707377b872f6d82be4eb14159fdb6adc095e556aee4"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"}},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"}},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d657599f6f99da1927d3377533dfc0888b34c4d84aa7d5579841fd72d0e39bce"}},{"ruleId":"D38","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3034b66bf2de892803d4d0f77721d8146a7a4e0a6022d0187461655362b3631f"}},{"ruleId":"D38","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e652726318131882bf7a24eb05a90c8c8434dd398dfeb621b04e0366b4e168e7"}},{"ruleId":"D38","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6275dc4ca6b9dbba207cc8c28c849a800c2213b6646fb9f529c3224d079a840e"}},{"ruleId":"D38","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4441e45dd749ec557a0cede9cf53669094e0dbd4d959a73a17eac422856c48db"}},{"ruleId":"D38","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4de5e257d142991a0e00be6f6f09ed56a48aa3261f9c7545b144786af316985f"}},{"ruleId":"D38","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"729ad38436c79f6479008f44dbb2e53a95ed8cfdcb535e2d6769aa62e9b935d8"}},{"ruleId":"D38","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4da4393fcb5c643b2423b588f845acd4f0a80dc98c4d70b6a91ad6c77eef5769"}},{"ruleId":"D38","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"44ad7b1c1b99f4431bcb67d0c18de9e0d1756b2b2f69df3e9fb64d60bc025da1"}},{"ruleId":"D38","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ea18e74ab291f159f9d5be59d2d14656f75fc666db2fc3c7ab1451084e0423f1"}},{"ruleId":"D38","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f179faafaa0d1b77e14dc983088c81c733330fd0187736fb641ec3c1cda4ffbf"}},{"ruleId":"D38","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1351cb765efca41522b30f8dfc6643e8d144bb890d83794ebbcab611a4582cd1"}},{"ruleId":"D38","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b079de79c681bd1ecd18b8630252ed6b91b5ff0d77f270557d04e9799fbf16c2"}},{"ruleId":"D38","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9a583d44b97b1e506ede050f489e2727dd12ffb6c486d433d2e47ddbbd444cfa"}},{"ruleId":"D38","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f16e2844874f789d0e98d3258477c1526a67d948f5c2f9ee3ca9008d8fa317fc"}},{"ruleId":"D38","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fd9f9ad7d31ffbdd02f9c767fe21505b2edcdb63d6a382d2a4e4b7b66656bd4b"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1032","guid":"5f21e517-68aa-a650-9a25-5771ef024637","name":"OWASP Top Ten \u2014 Security Misconfiguration category","shortDescription":{"text":"OWASP Top Ten \u2014 Security Misconfiguration category"},"helpUri":"https://cwe.mitre.org/data/definitions/1032.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-732","guid":"1da27e8f-b330-7650-ab63-bd61953eae5d","name":"Incorrect Permission Assignment for Critical Resource","shortDescription":{"text":"Incorrect Permission Assignment for Critical Resource"},"helpUri":"https://cwe.mitre.org/data/definitions/732.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Command Injection","shortDescription":{"text":"Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"OS Command Injection","shortDescription":{"text":"OS Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Cross-site Scripting (XSS)","shortDescription":{"text":"Cross-site Scripting (XSS)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"SQL Injection","shortDescription":{"text":"SQL Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Code Injection","shortDescription":{"text":"Code Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":18,"secretScannerRunsExcluded":0}},"redactionTokens":["A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."]}]}