{"$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":"TypeCoercer.coerceTypeBase (cyclomatic 82): TypeCoercer.coerceTypeBase has cyclomatic complexity 82 (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":"presto-main-base/src/main/java/com/facebook/presto/type/TypeCoercer.java"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bdf42e327249401aa74d9d447a0be63e5daad0e9017e38aecafc69518963cc8"}},{"ruleId":"D1","level":"warning","message":{"text":"Visitor.visitSpecialForm (cyclomatic 74): Visitor.visitSpecialForm has cyclomatic complexity 74 (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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/RowExpressionInterpreter.java"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"d118f8d7fd9119c4b8c651fa7f8842a4124a998f89493befc22b0716b9f8d0e8"}},{"ruleId":"D1","level":"warning","message":{"text":"CastBytecodeExpression.castPrimitiveToPrimitive (cyclomatic 60): CastBytecodeExpression.castPrimitiveToPrimitive has cyclomatic complexity 60 (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":"presto-bytecode/src/main/java/com/facebook/presto/bytecode/expression/CastBytecodeExpression.java"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"eedf15392b5b088b37de579e9d3ae2eaa6b67b76fa3768c68a54e47e7a1b60bb"}},{"ruleId":"D1","level":"warning","message":{"text":"BlockInputDecoders.createForPrimitive (cyclomatic 60): BlockInputDecoders.createForPrimitive has cyclomatic complexity 60 (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":"presto-hive-function-namespace/src/main/java/com/facebook/presto/hive/functions/type/BlockInputDecoders.java"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"72c6f277779d46c4629df1565941226febfa9c7e22eed08ef5f0c40c2fca01e4"}},{"ruleId":"D1","level":"warning","message":{"text":"Decoders.createValuesDecoder (cyclomatic 58): Decoders.createValuesDecoder has cyclomatic complexity 58 (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":"presto-parquet/src/main/java/com/facebook/presto/parquet/batchreader/decoders/Decoders.java"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"835e768811b9e9f4ecd423bd1e30d87181bd2dba3a7c547158ef55826c42aef1"}},{"ruleId":"D1","level":"warning","message":{"text":"Visitor.visitFunctionCall (cyclomatic 57): Visitor.visitFunctionCall 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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/ExpressionAnalyzer.java"},"region":{"startLine":974}}}],"partialFingerprints":{"codehealthFindingId/v1":"1eca0058b6d0f9f21a76ea08ac24f88267613c90c46885e2b6ace2ff3ed6b418"}},{"ruleId":"D1","level":"warning","message":{"text":"ValueStreams.createValueStreams (cyclomatic 54): ValueStreams.createValueStreams has cyclomatic complexity 54 (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":"presto-orc/src/main/java/com/facebook/presto/orc/stream/ValueStreams.java"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"25ec45bb36a647329d4d5aaaab6b843b004b7c5e37756aefe92fcfc4f8b80780"}},{"ruleId":"D1","level":"warning","message":{"text":"FixJsonDataUtils.fixValue (cyclomatic 52): FixJsonDataUtils.fixValue has cyclomatic complexity 52 (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":"presto-client/src/main/java/com/facebook/presto/client/FixJsonDataUtils.java"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"5979010018773ba6d7ca5e8a2ebae10976291f8a0fd505dbec7d310d03f0fc2b"}},{"ruleId":"D1","level":"warning","message":{"text":"Field.cleanObject (cyclomatic 44): Field.cleanObject has cyclomatic complexity 44 (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":"presto-accumulo/src/main/java/com/facebook/presto/accumulo/model/Field.java"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8d6b470ae80987e18b9c7bbc4ee41a2c4949c476d5ca84522e3a1791e6649cd"}},{"ruleId":"D1","level":"warning","message":{"text":"1.getValue (cyclomatic 44): 1.getValue has cyclomatic complexity 44 (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":"presto-tests/src/main/java/com/facebook/presto/tests/H2QueryRunner.java"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"a74834cd1e29fdb5319777ef1d411e80ce2a0e4a807c3f24e41a265d4f2860f2"}},{"ruleId":"D1","level":"warning","message":{"text":"PartitionTransforms.getColumnTransform (cyclomatic 43): PartitionTransforms.getColumnTransform has cyclomatic complexity 43 (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":"presto-iceberg/src/main/java/com/facebook/presto/iceberg/PartitionTransforms.java"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e3a6dbb9a3bdd65074e9fd5bec06fcf4574132a5b4219dde1dc0c812adac822"}},{"ruleId":"D1","level":"warning","message":{"text":"ColumnReaderFactory.createReader (cyclomatic 40): ColumnReaderFactory.createReader has cyclomatic complexity 40 (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":"presto-parquet/src/main/java/com/facebook/presto/parquet/ColumnReaderFactory.java"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"68ac384eedba959eb805ec4320b56a9c3eb2066b5a24306016ca92024d51c97f"}},{"ruleId":"D1","level":"warning","message":{"text":"AbstractVerification.run (cyclomatic 40): AbstractVerification.run has cyclomatic complexity 40 (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":"presto-verifier/src/main/java/com/facebook/presto/verifier/framework/AbstractVerification.java"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"e410aad21c586a4792e7fbd4335986396492ad52ee1c9188eec34be9fd3f4fd6"}},{"ruleId":"D1","level":"warning","message":{"text":"TestingPrestoClient.convertToRowValue (cyclomatic 38): TestingPrestoClient.convertToRowValue has cyclomatic complexity 38 (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":"presto-tests/src/main/java/com/facebook/presto/tests/TestingPrestoClient.java"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a2d817cf9473fb32cebd8a1f80eb8192b13ad16ac3eb3808bb38f29d06273b8"}},{"ruleId":"D1","level":"warning","message":{"text":"DateTimeFunctions.createDateTimeFormatter (cyclomatic 37): DateTimeFunctions.createDateTimeFormatter 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":"presto-main-base/src/main/java/com/facebook/presto/operator/scalar/DateTimeFunctions.java"},"region":{"startLine":1314}}}],"partialFingerprints":{"codehealthFindingId/v1":"aca53c03473dc2e3919f57330d0debd5c6c0602835120fa6478c3520858f2676"}},{"ruleId":"D1","level":"warning","message":{"text":"SqlQueryScheduler.schedule (cyclomatic 36): SqlQueryScheduler.schedule 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":"presto-main-base/src/main/java/com/facebook/presto/execution/scheduler/SqlQueryScheduler.java"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3528345db0dbe87985f7af2932cd7bdbc87367f8e1c3eda79cf893ceaf5c2c9"}},{"ruleId":"D1","level":"warning","message":{"text":"HiveUtil.parsePartitionValue (cyclomatic 35): HiveUtil.parsePartitionValue 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":"presto-hive/src/main/java/com/facebook/presto/hive/HiveUtil.java"},"region":{"startLine":649}}}],"partialFingerprints":{"codehealthFindingId/v1":"e76b97e630964303a04e28502d404ad1ef0c949cfb9e8e49e179556024b60bad"}},{"ruleId":"D1","level":"warning","message":{"text":"SliceDirectSelectiveStreamReader.readWithFilter (cyclomatic 35): SliceDirectSelectiveStreamReader.readWithFilter 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":"presto-orc/src/main/java/com/facebook/presto/orc/reader/SliceDirectSelectiveStreamReader.java"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"10a4ae7de50d40bd5443e899d662b335cdc54f2e6ba7c47444db6a311715e7d5"}},{"ruleId":"D1","level":"warning","message":{"text":"ThriftMetastoreUtil.fromMetastoreApiColumnStatistics (cyclomatic 34): ThriftMetastoreUtil.fromMetastoreApiColumnStatistics 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":"presto-hive-metastore/src/main/java/com/facebook/presto/hive/metastore/thrift/ThriftMetastoreUtil.java"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"31760371d5014c09a51a9c20a5d4c2785c513951c1b686fcd775ebd962ab7265"}},{"ruleId":"D1","level":"warning","message":{"text":"PushProjectionThroughCrossJoin.apply (cyclomatic 33): PushProjectionThroughCrossJoin.apply 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PushProjectionThroughCrossJoin.java"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"5529c37311407e5938efc9ae5b68218f9a52005c5fcec396e028481f227c32db"}},{"ruleId":"D1","level":"warning","message":{"text":"Rewriter.visitJoin (cyclomatic 33): Rewriter.visitJoin 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PredicatePushDown.java"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"48a9f8e9abbe3b19cc30121c7c90ffc736fcda13db3a5ec6eabfa12982c9cddf"}},{"ruleId":"D1","level":"warning","message":{"text":"AggregatedOrcPageSource.writeMinMax (cyclomatic 33): AggregatedOrcPageSource.writeMinMax 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":"presto-hive/src/main/java/com/facebook/presto/hive/orc/AggregatedOrcPageSource.java"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba3453b817869e71d654e121a8acf00e19217d131cf23dbb39678d1d0619e8af"}},{"ruleId":"D1","level":"warning","message":{"text":"SourcePartitionedScheduler.schedule (cyclomatic 33): SourcePartitionedScheduler.schedule 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":"presto-main-base/src/main/java/com/facebook/presto/execution/scheduler/SourcePartitionedScheduler.java"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1390b3571efcf2d0889b72d5454d270e3f4c96b5e5b4754153245562848d082"}},{"ruleId":"D1","level":"warning","message":{"text":"RelationPlanner.planJoin (cyclomatic 32): RelationPlanner.planJoin 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/RelationPlanner.java"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c31ad99e75bbcf24eaa84e71dbb51d5bfe4ebd256a5cb5bc26c139e24d2e124"}},{"ruleId":"D1","level":"warning","message":{"text":"HistogramCalculator.calculateFilterFactor (cyclomatic 32): HistogramCalculator.calculateFilterFactor 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":"presto-spi/src/main/java/com/facebook/presto/spi/statistics/HistogramCalculator.java"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"60885f1d05aef9966beefe5da5e65af006be6af731b1c6e8b59b627944124cfc"}},{"ruleId":"D1","level":"warning","message":{"text":"HistoryBasedPlanStatisticsTracker.getQueryStats (cyclomatic 32): HistoryBasedPlanStatisticsTracker.getQueryStats 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":"presto-main-base/src/main/java/com/facebook/presto/cost/HistoryBasedPlanStatisticsTracker.java"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0a5dbcdc0eb82cea2bdc0422eace2f0b09ae28cdce8279699b8421d48a2f642"}},{"ruleId":"D1","level":"warning","message":{"text":"TypeSignature.parseEnumMap (cyclomatic 31): TypeSignature.parseEnumMap 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":"presto-common/src/main/java/com/facebook/presto/common/type/TypeSignature.java"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4c688b5f066e76e94fd21b5d981e545efa10d94d3b79b6f9ed5d022e2e8c131"}},{"ruleId":"D1","level":"warning","message":{"text":"GlueStatisticsConverter.fromGlueColumnStatistics (cyclomatic 31): GlueStatisticsConverter.fromGlueColumnStatistics 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":"presto-hive-metastore/src/main/java/com/facebook/presto/hive/metastore/glue/converter/GlueStatisticsConverter.java"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6734354fb85aa40f5d05fdbbb52691e5fb90b057ffe2bcc69bd5fabad918e6f"}},{"ruleId":"D1","level":"warning","message":{"text":"BytecodeUtils.generateInvocation (cyclomatic 30): BytecodeUtils.generateInvocation has cyclomatic complexity 30 (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":"presto-main-base/src/main/java/com/facebook/presto/sql/gen/BytecodeUtils.java"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"711c4665d1555e73ff08ba362f4c96b94664b8d8536a90e16f665b2a1286b058"}},{"ruleId":"D1","level":"warning","message":{"text":"Rewriter.toSubfield (cyclomatic 30): Rewriter.toSubfield 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PushdownSubfields.java"},"region":{"startLine":693}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cff414146995ea55878cf90c85d1a0a742ec91af36eed8417a5281ab1d07c15"}},{"ruleId":"D1","level":"warning","message":{"text":"LiteralEncoder.toExpression (cyclomatic 29): LiteralEncoder.toExpression 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/LiteralEncoder.java"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"24789fcdb205574567a766e63e0ad1098d7d1a7833584b5ef4723333940619d0"}},{"ruleId":"D1","level":"warning","message":{"text":"ParquetPageSourceFactory.checkSchemaMatch (cyclomatic 29): ParquetPageSourceFactory.checkSchemaMatch has cyclomatic complexity 29 (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":"presto-hive/src/main/java/com/facebook/presto/hive/parquet/ParquetPageSourceFactory.java"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ebf1441d3b8924271dc8cd1c319851a3165e61b5041adb4e7b703438712e6be"}},{"ruleId":"D1","level":"warning","message":{"text":"Driver.processInternal (cyclomatic 29): Driver.processInternal 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":"presto-main-base/src/main/java/com/facebook/presto/operator/Driver.java"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"053ee3cbe01fd6a965262e5b96d4825499b03f5c0b06be36b5c16dd478e36474"}},{"ruleId":"D1","level":"warning","message":{"text":"MongoPageSink.getObjectValue (cyclomatic 29): MongoPageSink.getObjectValue 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":"presto-mongodb/src/main/java/com/facebook/presto/mongodb/MongoPageSink.java"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"132e1d48c92c5850468d0b0f4da74c87ee0ac3b1dcad7b5b0b57d74ffd1c95d5"}},{"ruleId":"D1","level":"warning","message":{"text":"Visitor.visitFunctionCall (cyclomatic 28): Visitor.visitFunctionCall 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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/AggregationAnalyzer.java"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"61c798aa1c74170be6770ec01e8e8d2eb2019bb376c403c1bfb425c0373e3d6e"}},{"ruleId":"D1","level":"warning","message":{"text":"Visitor.visitTable (cyclomatic 28): Visitor.visitTable 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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java"},"region":{"startLine":2350}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6617b05e289ec11a1175db019828b3be4590d20fc0c12010655abcce1fb70af"}},{"ruleId":"D1","level":"warning","message":{"text":"OrcSelectiveRecordReader.getNextPage (cyclomatic 28): OrcSelectiveRecordReader.getNextPage 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":"presto-orc/src/main/java/com/facebook/presto/orc/OrcSelectiveRecordReader.java"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a5e2e1d8a88e92bbff6306c01543352239e806e0e23f6f1e093993ba5057168"}},{"ruleId":"D1","level":"warning","message":{"text":"ArrowBlockBuilder.assignBlockFromValueVector (cyclomatic 28): ArrowBlockBuilder.assignBlockFromValueVector 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":"presto-common-arrow/src/main/java/com/facebook/plugin/arrow/ArrowBlockBuilder.java"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b2fb4c19b0bfa9cc68d542f23b980a2bc17a943ebb972cdfa98c6b71adadbee"}},{"ruleId":"D1","level":"warning","message":{"text":"StringRowSerializer.encode (cyclomatic 27): StringRowSerializer.encode 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":"presto-accumulo/src/main/java/com/facebook/presto/accumulo/serializers/StringRowSerializer.java"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1b5dd62f51f080938d8404349597925c6cc7820d438a9ba62545c8e6d7d6907"}},{"ruleId":"D1","level":"warning","message":{"text":"CaseToMapRewriter.rewriteSpecialForm (cyclomatic 27): CaseToMapRewriter.rewriteSpecialForm 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/RewriteCaseToMap.java"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f1a6ca95aaf70e039a8374fd4fa2a4cc76c59c172492776efa867004a3a55d5"}},{"ruleId":"D1","level":"warning","message":{"text":"NativeIndexJoinRewriter.visitJoin (cyclomatic 27): NativeIndexJoinRewriter.visitJoin 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/IndexJoinOptimizer.java"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f75c916f78e261d28acd48d688361e00418725f9da3a098e260f6a9b5c9783d"}},{"ruleId":"D1","level":"warning","message":{"text":"HiveTypeTranslator.translate (cyclomatic 27): HiveTypeTranslator.translate 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":"presto-hive-metastore/src/main/java/com/facebook/presto/hive/HiveTypeTranslator.java"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8a40302f869dfd079ef5435d3c0ac1a807c9ba707281bd02caea0512ce38aba"}},{"ruleId":"D1","level":"warning","message":{"text":"ListSelectiveStreamReader.readNotAllNulls (cyclomatic 27): ListSelectiveStreamReader.readNotAllNulls 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":"presto-orc/src/main/java/com/facebook/presto/orc/reader/ListSelectiveStreamReader.java"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"b818ce522a865184580c6d90af7fc42959963d9bfba4d889a26b08c8ddf4e06a"}},{"ruleId":"D1","level":"warning","message":{"text":"TupleDomainOrcPredicate.getDomain (cyclomatic 27): TupleDomainOrcPredicate.getDomain 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":"presto-orc/src/main/java/com/facebook/presto/orc/TupleDomainOrcPredicate.java"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad390945150c38add72ce374a5f704108f342e461a33d1600e20fe2fe0224c5f"}},{"ruleId":"D1","level":"warning","message":{"text":"ApplyConnectorOptimization.optimize (cyclomatic 26): ApplyConnectorOptimization.optimize 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/ApplyConnectorOptimization.java"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"891f70ee5460279f45fbab2f72cfcb35c4edec33f234ea6efc52998cf0a82116"}},{"ruleId":"D1","level":"warning","message":{"text":"CassandraType.getCassandraType (cyclomatic 26): CassandraType.getCassandraType 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":"presto-cassandra/src/main/java/com/facebook/presto/cassandra/CassandraType.java"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"04ecc89c8aeb99e608defbb6df761d5ffa2d3e28b4da8cfd1accbaebd0028346"}},{"ruleId":"D1","level":"warning","message":{"text":"PullConstantProjectionAboveExchange.apply (cyclomatic 25): PullConstantProjectionAboveExchange.apply 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PullConstantProjectionAboveExchange.java"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"68c8b4b8ef4fa0b6454df82f66457430596ada1662a9e4f8fc9e8add1a87eea2"}},{"ruleId":"D1","level":"warning","message":{"text":"TimeZoneKey.normalizeZoneId (cyclomatic 25): TimeZoneKey.normalizeZoneId 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":"presto-common/src/main/java/com/facebook/presto/common/type/TimeZoneKey.java"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"b35fe1e5c26e770ed67c639070eed26fbb50dd71068bfc272aebce839f9a0ddc"}},{"ruleId":"D1","level":"warning","message":{"text":"TypeSignature.parseRowTypeSignature (cyclomatic 25): TypeSignature.parseRowTypeSignature 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":"presto-common/src/main/java/com/facebook/presto/common/type/TypeSignature.java"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"db1bdeb780719934a994d05009d29cbfaa51cb65bba1d6e6ac2cb3190d1c3b03"}},{"ruleId":"D1","level":"warning","message":{"text":"PluginManager.installPlugin (cyclomatic 25): PluginManager.installPlugin has cyclomatic complexity 25 (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":"presto-main-base/src/main/java/com/facebook/presto/server/PluginManager.java"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"fafa23a44adf6572a39e79bde508e992fd009e880a4ebd1a84d399007358304b"}},{"ruleId":"D1","level":"warning","message":{"text":"TDigest.getCdf (cyclomatic 25): TDigest.getCdf 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":"presto-main-base/src/main/java/com/facebook/presto/tdigest/TDigest.java"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d461126ff8b301f84e332b0678b82c2c835d3d13379b4d567f30ddc15c3a88e"}},{"ruleId":"D1","level":"warning","message":{"text":"MapFlatSelectiveStreamReader.readNotAllNulls (cyclomatic 25): MapFlatSelectiveStreamReader.readNotAllNulls 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":"presto-orc/src/main/java/com/facebook/presto/orc/reader/MapFlatSelectiveStreamReader.java"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c3f9e6e8c821f8e1fd74d7c45be10d990a747b101630f5c4e8271525e75f66c"}},{"ruleId":"D1","level":"warning","message":{"text":"TupleDomainParquetPredicate.getDomain (cyclomatic 25): TupleDomainParquetPredicate.getDomain 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":"presto-parquet/src/main/java/com/facebook/presto/parquet/predicate/TupleDomainParquetPredicate.java"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"120afb4effaf633fed9b92a8006ff4be121061e51965adeea5dbe3ce6e863451"}},{"ruleId":"D1","level":"warning","message":{"text":"JoinPrefilter.findCloneableSource (cyclomatic 24): JoinPrefilter.findCloneableSource 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/JoinPrefilter.java"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3accec825574c37c2b239d5e83069b6150ecf1e90a3558a057cced4ca4dd55e"}},{"ruleId":"D1","level":"warning","message":{"text":"QueryBuilder.buildSql (cyclomatic 24): QueryBuilder.buildSql 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":"presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/QueryBuilder.java"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b94a3ba6e073baa7791874455778f63cf71b446b8fae1e39431701fa0149294"}},{"ruleId":"D1","level":"warning","message":{"text":"TypeSignature.parseTypeSignature (cyclomatic 24): TypeSignature.parseTypeSignature 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":"presto-common/src/main/java/com/facebook/presto/common/type/TypeSignature.java"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"34822cee9767254cec317decc8ca5584d8cb95294b5f7b6f88c97b62192645d8"}},{"ruleId":"D1","level":"warning","message":{"text":"ObjectEncoders.createEncoder (cyclomatic 24): ObjectEncoders.createEncoder has cyclomatic complexity 24 (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":"presto-hive-function-namespace/src/main/java/com/facebook/presto/hive/functions/type/ObjectEncoders.java"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"399d52f35ed9e948cc0d111e6c61f6e654bd77880b3acf51e715cf398fdc2c92"}},{"ruleId":"D1","level":"warning","message":{"text":"HiveMetadata.finishInsertInternal (cyclomatic 24): HiveMetadata.finishInsertInternal 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":"presto-hive/src/main/java/com/facebook/presto/hive/HiveMetadata.java"},"region":{"startLine":2204}}}],"partialFingerprints":{"codehealthFindingId/v1":"952207d2a030cac15eb067e2f7336c00c9de6ab2fbcd69a7a29956a320b4f846"}},{"ruleId":"D1","level":"warning","message":{"text":"ExpressionConverter.toIcebergExpression (cyclomatic 24): ExpressionConverter.toIcebergExpression 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":"presto-iceberg/src/main/java/com/facebook/presto/iceberg/ExpressionConverter.java"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"10b9e42de52cb353ae7b58fc4ea2fcb6393e0740cbdc7d9522d19d4a85b74566"}},{"ruleId":"D1","level":"warning","message":{"text":"PartitionData.getValue (cyclomatic 24): PartitionData.getValue 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":"presto-iceberg/src/main/java/com/facebook/presto/iceberg/PartitionData.java"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"35a5fd8a6606a61fbfd6734859d7c9c3c407ac1dc7a27e521b63390d8263f4f2"}},{"ruleId":"D1","level":"warning","message":{"text":"TypeConverter.toHiveTypeInfo (cyclomatic 24): TypeConverter.toHiveTypeInfo 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":"presto-iceberg/src/main/java/com/facebook/presto/iceberg/TypeConverter.java"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"038ed7247f9ea73d3b073c63afbd885200e46ea8845b45e2a1d9e52b3ff1703f"}},{"ruleId":"D1","level":"warning","message":{"text":"FilterRowExpressionStatsCalculatingVisitor.visitCall (cyclomatic 24): FilterRowExpressionStatsCalculatingVisitor.visitCall 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":"presto-main-base/src/main/java/com/facebook/presto/cost/FilterStatsCalculator.java"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dc0e0352570b3ab2fcb72740b5a932aa6e981e824943767a560b367be224c0f"}},{"ruleId":"D1","level":"warning","message":{"text":"Checkpoints.getStreamCheckpoints (cyclomatic 24): Checkpoints.getStreamCheckpoints has cyclomatic complexity 24 (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":"presto-orc/src/main/java/com/facebook/presto/orc/checkpoint/Checkpoints.java"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fa40ef34fb7afbd61d68f9c8dcbed0e19dcf1a4bd97d279be12108369be8e97"}},{"ruleId":"D1","level":"warning","message":{"text":"SelectiveStreamReaders.createNestedStreamReader (cyclomatic 24): SelectiveStreamReaders.createNestedStreamReader has cyclomatic complexity 24 (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":"presto-orc/src/main/java/com/facebook/presto/orc/reader/SelectiveStreamReaders.java"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"e79c0601eb0286c9fbe1d6287154de08cb409dcdd43925e31e65675f0a9712e5"}},{"ruleId":"D1","level":"warning","message":{"text":"ColumnWriters.createColumnWriter (cyclomatic 24): ColumnWriters.createColumnWriter has cyclomatic complexity 24 (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":"presto-orc/src/main/java/com/facebook/presto/orc/writer/ColumnWriters.java"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"a265c28e904a61534b8ca7244a379da7340c0fe29a064c14bf354e7a021844f3"}},{"ruleId":"D1","level":"warning","message":{"text":"MetadataReader.convertToParquetMetadata (cyclomatic 24): MetadataReader.convertToParquetMetadata 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":"presto-parquet/src/main/java/com/facebook/presto/parquet/cache/MetadataReader.java"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"e95aa0b9f948972ecaac5265863957dee47c5db44e571198d65062290464c33d"}},{"ruleId":"D1","level":"warning","message":{"text":"LexicoderRowSerializer.encode (cyclomatic 23): LexicoderRowSerializer.encode 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":"presto-accumulo/src/main/java/com/facebook/presto/accumulo/serializers/LexicoderRowSerializer.java"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"19711481bc7735209d5cedeb50c574ae22e0c5154d62717ad67b156fec2510ef"}},{"ruleId":"D1","level":"warning","message":{"text":"LogicalPropertiesImpl.joinProperties (cyclomatic 23): LogicalPropertiesImpl.joinProperties has cyclomatic complexity 23 (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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/properties/LogicalPropertiesImpl.java"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"5589e641bfd314abb68db7e7a24d6c775bcad48980c976c8c25dd472db924111"}},{"ruleId":"D1","level":"warning","message":{"text":"CassandraClusteringPredicatesExtractor.getClusteringKeysSet (cyclomatic 23): CassandraClusteringPredicatesExtractor.getClusteringKeysSet 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":"presto-cassandra/src/main/java/com/facebook/presto/cassandra/CassandraClusteringPredicatesExtractor.java"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7c024f71722e5b2e42f5137dc4f1420470cff0bd3109446b464113ec292385f"}},{"ruleId":"D1","level":"warning","message":{"text":"HiveCoercer.createCoercer (cyclomatic 23): HiveCoercer.createCoercer has cyclomatic complexity 23 (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":"presto-hive/src/main/java/com/facebook/presto/hive/HiveCoercer.java"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2b8c74eaee908f22115977aded4ca87fe041f0a49f7cf0b55e6479a1fe97e8a"}},{"ruleId":"D1","level":"warning","message":{"text":"HiveCoercionRecordCursor.createCoercer (cyclomatic 23): HiveCoercionRecordCursor.createCoercer has cyclomatic complexity 23 (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":"presto-hive/src/main/java/com/facebook/presto/hive/HiveCoercionRecordCursor.java"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"972c55b0d0e6726bbc82ccf1b08c6c495fdc13cf9937ed284c13ca70df3d9bf7"}},{"ruleId":"D1","level":"warning","message":{"text":"IcebergPageSourceProvider.createPageSource (cyclomatic 23): IcebergPageSourceProvider.createPageSource 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":"presto-iceberg/src/main/java/com/facebook/presto/iceberg/IcebergPageSourceProvider.java"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"52d5422bc4c01520bed1314ef0d5ca09bb57be01c0512dc362902b4e95bbe528"}},{"ruleId":"D1","level":"warning","message":{"text":"JmxRecordSetProvider.getLiveRow (cyclomatic 23): JmxRecordSetProvider.getLiveRow 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":"presto-jmx/src/main/java/com/facebook/presto/connector/jmx/JmxRecordSetProvider.java"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"92bfad7bdbbfdd13dbff974002330c1c97265e9ec250dc6b6cc4d0b27e8c07d7"}},{"ruleId":"D1","level":"warning","message":{"text":"DiscoveryNodeManager.refreshNodesInternal (cyclomatic 23): DiscoveryNodeManager.refreshNodesInternal 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":"presto-main/src/main/java/com/facebook/presto/metadata/DiscoveryNodeManager.java"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"289af36652aa2ef78e7a5515886fd960cea6d28f25a6f2298eb2dfbea32665ea"}},{"ruleId":"D1","level":"warning","message":{"text":"WindowPartition.getFrameRange (cyclomatic 23): WindowPartition.getFrameRange has cyclomatic complexity 23 (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":"presto-main-base/src/main/java/com/facebook/presto/operator/window/WindowPartition.java"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fe8cd1dc72366914e587401b500136a73f907b7c705902d254eb63135d276b0"}},{"ruleId":"D1","level":"warning","message":{"text":"PagesIndexOrdering.quickSort (cyclomatic 23): PagesIndexOrdering.quickSort 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":"presto-main-base/src/main/java/com/facebook/presto/operator/PagesIndexOrdering.java"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cd213d8ce9e23c9b9eabea95719f477235fbef5fdf69772489a3352889ef852"}},{"ruleId":"D1","level":"warning","message":{"text":"BooleanSelectiveStreamReader.read (cyclomatic 23): BooleanSelectiveStreamReader.read 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":"presto-orc/src/main/java/com/facebook/presto/orc/reader/BooleanSelectiveStreamReader.java"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f880d29b9f075aa4f2f377b261033649cde1bf661707770f09a5b662d47fba4"}},{"ruleId":"D1","level":"warning","message":{"text":"ListFilter.populateElementFilters (cyclomatic 23): ListFilter.populateElementFilters 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":"presto-orc/src/main/java/com/facebook/presto/orc/reader/ListFilter.java"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"07a9f4077486a373ba97b1917f923dd6d89a747e3b68c9e36d0c9e62c92fd006"}},{"ruleId":"D1","level":"warning","message":{"text":"Optimizer.visitAggregation (cyclomatic 22): Optimizer.visitAggregation 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/MetadataQueryOptimizer.java"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"a709e75e8b1fb9b38fb705f037b60ed9be49b02b7d274fd6fb9d2bb11a9d0693"}},{"ruleId":"D1","level":"warning","message":{"text":"LiteralInterpreter.evaluate (cyclomatic 22): LiteralInterpreter.evaluate 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/LiteralInterpreter.java"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"d260affbe0db585dd457f6f5fdbe6b4428c12e50a7612e4778269671185a288c"}},{"ruleId":"D1","level":"warning","message":{"text":"Visitor.visitCall (cyclomatic 22): Visitor.visitCall 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/RowExpressionInterpreter.java"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"da0a465b4e4c594205d8df69d51e1d2e908c7d24c123616341abe12cca302abf"}},{"ruleId":"D1","level":"warning","message":{"text":"DeltaPageSourceProvider.createParquetPageSource (cyclomatic 22): DeltaPageSourceProvider.createParquetPageSource 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":"presto-delta/src/main/java/com/facebook/presto/delta/DeltaPageSourceProvider.java"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d55d7482311d263962fb695a4bac9866834d474a86a3422ba294101e44e4d62"}},{"ruleId":"D1","level":"warning","message":{"text":"Query.getNextResult (cyclomatic 22): Query.getNextResult 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":"presto-main/src/main/java/com/facebook/presto/server/protocol/Query.java"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"4549739e82fe44d9053231dffe22ce268b851fdc393223958bb39caf1727cd77"}},{"ruleId":"D1","level":"warning","message":{"text":"ReactorNettyHttpClient.\u003Cinit\u003E (cyclomatic 22): ReactorNettyHttpClient.\u003Cinit\u003E 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":"presto-main/src/main/java/com/facebook/presto/server/remotetask/ReactorNettyHttpClient.java"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"54e80660c101bcf70e50ee325d7b9b83cc1a63e2cd6475bd48f2fda21e7f091e"}},{"ruleId":"D1","level":"warning","message":{"text":"Rewriter.isAggregationPushdownSupported (cyclomatic 22): Rewriter.isAggregationPushdownSupported 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":"presto-hive/src/main/java/com/facebook/presto/hive/rule/HivePartialAggregationPushdown.java"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"03134eedf9c6d98242170b9e97fd0ae32cd1ac36f529ddfa3b90fc3b961d4c83"}},{"ruleId":"D1","level":"warning","message":{"text":"AggregatedParquetPageSource.writeMinMax (cyclomatic 22): AggregatedParquetPageSource.writeMinMax 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":"presto-hive/src/main/java/com/facebook/presto/hive/parquet/AggregatedParquetPageSource.java"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"b52d54e3d694d594fe1124f615e41c44c67d6b839c47cccf9ad0de8c87756ee9"}},{"ruleId":"D1","level":"warning","message":{"text":"CreateTableTask.internalExecute (cyclomatic 22): CreateTableTask.internalExecute 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":"presto-main-base/src/main/java/com/facebook/presto/execution/CreateTableTask.java"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"e95b78d74dd4b5a3d29aca3afaeed888b27973f934d68563df0bd59d46fdebc0"}},{"ruleId":"D1","level":"warning","message":{"text":"JsonGeneratorWriter.createJsonGeneratorWriter (cyclomatic 22): JsonGeneratorWriter.createJsonGeneratorWriter 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":"presto-main-base/src/main/java/com/facebook/presto/util/JsonUtil.java"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"4774f3c8c897a87dd0603dc4b698840fb5d32c4c120d47996153eff99d2f94da"}},{"ruleId":"D1","level":"warning","message":{"text":"Visitor.visitMerge (cyclomatic 21): Visitor.visitMerge 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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java"},"region":{"startLine":3677}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab50bfe5034f837f066373decde5150469f618004dabe94ec88385b07876810b"}},{"ruleId":"D1","level":"warning","message":{"text":"PushdownThroughUnnest.apply (cyclomatic 21): PushdownThroughUnnest.apply 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PushdownThroughUnnest.java"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"40e1484d9f1fc6ad8080fe59e2598b91c075bcac80eba3b12b522cddb9fe38d8"}},{"ruleId":"D1","level":"warning","message":{"text":"Rewriter.visitUnion (cyclomatic 21): Rewriter.visitUnion 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/AddExchanges.java"},"region":{"startLine":1483}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc56101aba2d61191ba23fe0c1612f435b15f1f6ff509cd1a4838c91dd2571b2"}},{"ruleId":"D1","level":"warning","message":{"text":"DefaultIndexJoinRewriter.visitJoin (cyclomatic 21): DefaultIndexJoinRewriter.visitJoin 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/IndexJoinOptimizer.java"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bb12bc353fb56efed56434f8b0aa8bb1b368760a2b9cb33bceafef050c6f432"}},{"ruleId":"D1","level":"warning","message":{"text":"OracleClient.toPrestoType (cyclomatic 21): OracleClient.toPrestoType 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":"presto-oracle/src/main/java/com/facebook/presto/plugin/oracle/OracleClient.java"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bf0b429408002bf8f724e86387f20a866d37bcd829778796d4d5f903bde0b08"}},{"ruleId":"D1","level":"warning","message":{"text":"ParameterizedType.toInternalIdentifier (cyclomatic 21): ParameterizedType.toInternalIdentifier 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":"presto-bytecode/src/main/java/com/facebook/presto/bytecode/ParameterizedType.java"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"48635ee3dfe1f8fb1d58d87d0f70323a558a72fe467c95298fc10e5ac55b9e6f"}},{"ruleId":"D1","level":"warning","message":{"text":"Console.runConsole (cyclomatic 21): Console.runConsole 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":"presto-cli/src/main/java/com/facebook/presto/cli/Console.java"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb9ecf69d0ec88a9cdda70e48e375e3749a8a8647b8add25c740ab7d8ccd2372"}},{"ruleId":"D1","level":"warning","message":{"text":"ElasticsearchMetadata.toPrestoType (cyclomatic 21): ElasticsearchMetadata.toPrestoType 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":"presto-elasticsearch/src/main/java/com/facebook/presto/elasticsearch/ElasticsearchMetadata.java"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"776aff8c16c7a6d2d44f1f38411ca7203beec672d6bf2daff13ab6d85588ba0e"}},{"ruleId":"D1","level":"warning","message":{"text":"MetastoreUtil.getField (cyclomatic 21): MetastoreUtil.getField 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":"presto-hive-metastore/src/main/java/com/facebook/presto/hive/metastore/MetastoreUtil.java"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"50f22a583cf5d54e02be015e3ce96f7bf57363a3170388f9ce224459b2a3caa5"}},{"ruleId":"D1","level":"warning","message":{"text":"ParquetQuickStatsBuilder.processColumnMetadata (cyclomatic 21): ParquetQuickStatsBuilder.processColumnMetadata 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":"presto-hive/src/main/java/com/facebook/presto/hive/statistics/ParquetQuickStatsBuilder.java"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"88fca9c55951e67fc53dc94b40d42df854086ca92d3fd07e56bb811520716e96"}},{"ruleId":"D1","level":"warning","message":{"text":"FilesTable.buildPages (cyclomatic 21): FilesTable.buildPages 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":"presto-iceberg/src/main/java/com/facebook/presto/iceberg/FilesTable.java"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"177b80b09078079fc25df947cadf92383d170ec71fb0006bf89aeecd150bb2f7"}},{"ruleId":"D1","level":"warning","message":{"text":"DateTimeUtils.parseDayTimeInterval (cyclomatic 21): DateTimeUtils.parseDayTimeInterval has cyclomatic complexity 21 (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":"presto-main-base/src/main/java/com/facebook/presto/util/DateTimeUtils.java"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb096f59af4d9568df8c674fe19e6fddb4cb76d7ddcd0653eb9cbe8490f3a8c8"}},{"ruleId":"D1","level":"warning","message":{"text":"AbstractLongSelectiveStreamReader.buildOutputBlockView (cyclomatic 21): AbstractLongSelectiveStreamReader.buildOutputBlockView 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":"presto-orc/src/main/java/com/facebook/presto/orc/reader/AbstractLongSelectiveStreamReader.java"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d0376fe77aeb03d6a5329866ecf4b355224a53f27b2149a8f897d27b2341db3"}},{"ruleId":"D1","level":"warning","message":{"text":"LongDirectSelectiveStreamReader.readWithFilter (cyclomatic 21): LongDirectSelectiveStreamReader.readWithFilter 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":"presto-orc/src/main/java/com/facebook/presto/orc/reader/LongDirectSelectiveStreamReader.java"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"adc8b8461955b00a85796a04d35782277c02ef3b2851b89d6160749e3eaf8fc6"}},{"ruleId":"D1","level":"warning","message":{"text":"SliceDirectBatchStreamReader.readBlock (cyclomatic 21): SliceDirectBatchStreamReader.readBlock 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":"presto-orc/src/main/java/com/facebook/presto/orc/reader/SliceDirectBatchStreamReader.java"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4390852e530378661e2e5b5b2d502fb661e5d6aa357ef23e496dfb330bb33f1"}},{"ruleId":"D1","level":"warning","message":{"text":"SerializationUtils.getClosestAlignedFixedBits (cyclomatic 21): SerializationUtils.getClosestAlignedFixedBits 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":"presto-orc/src/main/java/com/facebook/presto/orc/stream/LongOutputStreamV2.java"},"region":{"startLine":899}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0a4e7f4ab1993610d92c4853d69f581c06c49d3c059f2ca7859248c149eada9"}},{"ruleId":"D1","level":"warning","message":{"text":"AbstractPrestoSparkQueryExecution.execute (cyclomatic 21): AbstractPrestoSparkQueryExecution.execute 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":"presto-spark-base/src/main/java/com/facebook/presto/spark/execution/AbstractPrestoSparkQueryExecution.java"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f1173e973b19fddd5dc0826d900fe8bed3367c46148980b4d9f37731c1c630c"}},{"ruleId":"D1","level":"warning","message":{"text":"PrestoSparkQueryExecutionFactory.create (cyclomatic 21): PrestoSparkQueryExecutionFactory.create 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":"presto-spark-base/src/main/java/com/facebook/presto/spark/PrestoSparkQueryExecutionFactory.java"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"129cdc2f782c2a3891841a5d75ee7c4940949c192c59e1b25301aff940feed01"}},{"ruleId":"D1","level":"warning","message":{"text":"Visitor.analyzeFrameRangeOffset (cyclomatic 20): Visitor.analyzeFrameRangeOffset 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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/ExpressionAnalyzer.java"},"region":{"startLine":1290}}}],"partialFingerprints":{"codehealthFindingId/v1":"8808fffbd27bcc499ad01dd058dd461274128c73af162e0e443d086d1320ebea"}},{"ruleId":"D1","level":"warning","message":{"text":"Visitor.visitInPredicate (cyclomatic 20): Visitor.visitInPredicate 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/ExpressionInterpreter.java"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4f9ada273e2ff6fa21039f027835fcab2cf72b4fb1b5f3c7f5b8344d053ec45"}},{"ruleId":"D1","level":"warning","message":{"text":"QueryPlanner.window (cyclomatic 20): QueryPlanner.window 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/QueryPlanner.java"},"region":{"startLine":1606}}}],"partialFingerprints":{"codehealthFindingId/v1":"032e73d3a25bd43c8bb0b6c943c29e268a8fd2ba4ec27d6da09f4954956443e6"}},{"ruleId":"D1","level":"warning","message":{"text":"Visitor.tryHandleLike (cyclomatic 20): Visitor.tryHandleLike 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/RowExpressionInterpreter.java"},"region":{"startLine":869}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a18474f41acfea353d05ae9a853ce4f3847513c5ddb78a367c171495b99f666"}},{"ruleId":"D1","level":"warning","message":{"text":"Visitor.visitShowCreate (cyclomatic 20): Visitor.visitShowCreate 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":"presto-main-base/src/main/java/com/facebook/presto/sql/rewrite/ShowQueriesRewrite.java"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8ea418e1f67c38ac05bc84ddf51d45afef0a8b698fef4dbad82f2491c80619f"}},{"ruleId":"D1","level":"warning","message":{"text":"UnscaledDecimal128Arithmetic.shiftRightArray8 (cyclomatic 20): UnscaledDecimal128Arithmetic.shiftRightArray8 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":"presto-common/src/main/java/com/facebook/presto/common/type/UnscaledDecimal128Arithmetic.java"},"region":{"startLine":984}}}],"partialFingerprints":{"codehealthFindingId/v1":"e55a28e95f3ab7fd86ad4a2c46ce9cf98d8b78d1d15365b15f4086fa0e838870"}},{"ruleId":"D1","level":"warning","message":{"text":"DeltaTypeUtils.convertPartitionValue (cyclomatic 20): DeltaTypeUtils.convertPartitionValue 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":"presto-delta/src/main/java/com/facebook/presto/delta/DeltaTypeUtils.java"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5a5509744b9f31338d9bbca3f8ad94415019aecdb6d337831368133751ec68a"}},{"ruleId":"D1","level":"warning","message":{"text":"BingTileFunctions.bingTilesAround (cyclomatic 20): BingTileFunctions.bingTilesAround 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":"presto-main-base/src/main/java/com/facebook/presto/geospatial/BingTileFunctions.java"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"1434c12d1a3100cb6c3e8a4e9a31ffbd5e7454531be378395df7e453e8e61cd5"}},{"ruleId":"D1","level":"warning","message":{"text":"Optimizer.visitAggregation (cyclomatic 20): Optimizer.visitAggregation 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":"presto-iceberg/src/main/java/com/facebook/presto/iceberg/optimizer/IcebergMetadataOptimizer.java"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea8d7a84f224593d5c387405ecf6ee97bbc8a6bafb1ed13733d7f0191811b0a5"}},{"ruleId":"D1","level":"warning","message":{"text":"IcebergPageSourceProvider.createParquetPageSource (cyclomatic 20): IcebergPageSourceProvider.createParquetPageSource 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":"presto-iceberg/src/main/java/com/facebook/presto/iceberg/IcebergPageSourceProvider.java"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e957ccd72b4cc8259ba993dce0055450f730f6102f255eee30101a600ac2211"}},{"ruleId":"D1","level":"warning","message":{"text":"LanceColumnHandle.toPrestoType (cyclomatic 20): LanceColumnHandle.toPrestoType 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":"presto-lance/src/main/java/com/facebook/presto/lance/LanceColumnHandle.java"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"695deadb10ede630ee746f65223e226126c717c036bc041e39f0a14fd940d248"}},{"ruleId":"D1","level":"warning","message":{"text":"FunctionAndTypeManager.getMatchingFunctionHandle (cyclomatic 20): FunctionAndTypeManager.getMatchingFunctionHandle 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":"presto-main-base/src/main/java/com/facebook/presto/metadata/FunctionAndTypeManager.java"},"region":{"startLine":1112}}}],"partialFingerprints":{"codehealthFindingId/v1":"55322bd57735f7ec7ca1c8ed582b423a5982b9b10b4b109b1b466e4475122581"}},{"ruleId":"D1","level":"warning","message":{"text":"ArrayDistinctFunction.distinct (cyclomatic 20): ArrayDistinctFunction.distinct 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":"presto-main-base/src/main/java/com/facebook/presto/operator/scalar/ArrayDistinctFunction.java"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9330a5ea52e0c0551971a4716b7f3d53519839ac6fdaaff76deeb1faec4d9a6"}},{"ruleId":"D1","level":"warning","message":{"text":"BlockBuilderAppender.createBlockBuilderAppender (cyclomatic 20): BlockBuilderAppender.createBlockBuilderAppender 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":"presto-main-base/src/main/java/com/facebook/presto/util/JsonUtil.java"},"region":{"startLine":925}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a9b505caaae0035772796318ce2744f21e71bd6d3798fa48ac4cbce4734d00a"}},{"ruleId":"D1","level":"warning","message":{"text":"OrcType.toOrcType (cyclomatic 20): OrcType.toOrcType 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":"presto-orc/src/main/java/com/facebook/presto/orc/metadata/OrcType.java"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"f17d019bafeaf9735af08be60d024f57c5825b82af281bf7296129fddb781e4e"}},{"ruleId":"D1","level":"warning","message":{"text":"LongDictionaryBatchStreamReader.readBlock (cyclomatic 20): LongDictionaryBatchStreamReader.readBlock 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":"presto-orc/src/main/java/com/facebook/presto/orc/reader/LongDictionaryBatchStreamReader.java"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"072b4c5ff342b725b1783ac75ae58278707323174f08eaa7c447bce3adf07019"}},{"ruleId":"D1","level":"warning","message":{"text":"LongDictionarySelectiveStreamReader.readWithFilter (cyclomatic 20): LongDictionarySelectiveStreamReader.readWithFilter 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":"presto-orc/src/main/java/com/facebook/presto/orc/reader/LongDictionarySelectiveStreamReader.java"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbc0232b1c548b993f685948e041f66ad24f82238e289530798741530323091e"}},{"ruleId":"D1","level":"warning","message":{"text":"ColumnStatisticsValidation.\u003Cinit\u003E (cyclomatic 20): ColumnStatisticsValidation.\u003Cinit\u003E 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":"presto-orc/src/main/java/com/facebook/presto/orc/OrcWriteValidation.java"},"region":{"startLine":808}}}],"partialFingerprints":{"codehealthFindingId/v1":"996e561917c73d25989fd0e4efefa9fcf48f20a0e6ed0841eeaa0ef26f08110f"}},{"ruleId":"D1","level":"warning","message":{"text":"PinotSegmentPageSource.writeArrayBlock (cyclomatic 20): PinotSegmentPageSource.writeArrayBlock has cyclomatic complexity 20 (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":"presto-pinot-toolkit/src/main/java/com/facebook/presto/pinot/PinotSegmentPageSource.java"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5925c9f1227d8dd7470cabbcb7c71f6f10cd3101332cc7ae9774288341955e7"}},{"ruleId":"D1","level":"warning","message":{"text":"Field.toString (cyclomatic 19): Field.toString 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":"presto-accumulo/src/main/java/com/facebook/presto/accumulo/model/Field.java"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa4ea11eb8edecdb51eab3509bdcc20011c17c1e578055e288b4872d6fb363a2"}},{"ruleId":"D1","level":"warning","message":{"text":"Row.valueFromString (cyclomatic 19): Row.valueFromString 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":"presto-accumulo/src/main/java/com/facebook/presto/accumulo/model/Row.java"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0302afe2c6724197f612e03ff54b291fb0531b90b9fc58f55614e0e6901063e"}},{"ruleId":"D1","level":"warning","message":{"text":"Visitor.visitInPredicate (cyclomatic 19): Visitor.visitInPredicate 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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/RefreshMaterializedViewPredicateAnalyzer.java"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8b3616fc19a482e2cb7b27a0fc290c54228e833fe54314af3575bf909860da1"}},{"ruleId":"D1","level":"warning","message":{"text":"PushFilterThroughSelectingAggregation.tryPushdown (cyclomatic 19): PushFilterThroughSelectingAggregation.tryPushdown 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PushFilterThroughSelectingAggregation.java"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c32d2c671f6f00d94ff07a55e77e8274cac123418d90c2ab338ce8a40e8b192"}},{"ruleId":"D1","level":"warning","message":{"text":"StreamPreferredProperties.isSatisfiedBy (cyclomatic 19): StreamPreferredProperties.isSatisfiedBy 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/StreamPreferredProperties.java"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbd6e3177cafcbaa8cafd119fc4c9cfc640572ab026fed258c558b0885220331"}},{"ruleId":"D1","level":"warning","message":{"text":"PlanFragmenterUtils.extractPartitionValues (cyclomatic 19): PlanFragmenterUtils.extractPartitionValues 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/PlanFragmenterUtils.java"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"58011dd13ce2a520d2636c2c680490d0356a37bd77e735d6a4ab07b54890d239"}},{"ruleId":"D1","level":"warning","message":{"text":"StandardColumnMappings.prestoTypeToWriteMapping (cyclomatic 19): StandardColumnMappings.prestoTypeToWriteMapping 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":"presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/mapping/StandardColumnMappings.java"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"f24f3dfd278f8359fc9adc7b435b97eb5c7737759d5769153364797b58621de7"}},{"ruleId":"D1","level":"warning","message":{"text":"DruidBrokerPageSource.getNextPage (cyclomatic 19): DruidBrokerPageSource.getNextPage 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":"presto-druid/src/main/java/com/facebook/presto/druid/DruidBrokerPageSource.java"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d1e5c2faddc557f7c6473211b05fe4ef9d723804c3eb90619e0cb104e5c042d"}},{"ruleId":"D1","level":"warning","message":{"text":"ParquetPageSourceFactory.createParquetPageSource (cyclomatic 19): ParquetPageSourceFactory.createParquetPageSource 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":"presto-hive/src/main/java/com/facebook/presto/hive/parquet/ParquetPageSourceFactory.java"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c672f03185d8b950c865b62f1fab6ff9d10c6cdf846442a4e32732fbe5413a7"}},{"ruleId":"D1","level":"warning","message":{"text":"HiveSplitManager.computePartitionMetadata (cyclomatic 19): HiveSplitManager.computePartitionMetadata 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":"presto-hive/src/main/java/com/facebook/presto/hive/HiveSplitManager.java"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd9b60bdcbfc2174042e4c181c987223445a7b632e80dce01e9bb85a092c07ad"}},{"ruleId":"D1","level":"warning","message":{"text":"HiveSplitSource.getNextBatch (cyclomatic 19): HiveSplitSource.getNextBatch 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":"presto-hive/src/main/java/com/facebook/presto/hive/HiveSplitSource.java"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff86d7ff1e02ff5a52c3df5b7d71a1336cfb24021ac4e3efe097471f9eba35f5"}},{"ruleId":"D1","level":"warning","message":{"text":"IcebergAbstractMetadata.getMaterializedViewStatus (cyclomatic 19): IcebergAbstractMetadata.getMaterializedViewStatus 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":"presto-iceberg/src/main/java/com/facebook/presto/iceberg/IcebergAbstractMetadata.java"},"region":{"startLine":2151}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ff84bc96d260cc65b93434c2707e1ccf184b6c8a170c2971f7444bac8adcdea"}},{"ruleId":"D1","level":"warning","message":{"text":"IcebergUtil.deserializeIcebergValue (cyclomatic 19): IcebergUtil.deserializeIcebergValue 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":"presto-iceberg/src/main/java/com/facebook/presto/iceberg/IcebergUtil.java"},"region":{"startLine":888}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fe16182f6d81caa5e6130a935f921f3ac7151cbf97b2f1b20db84e07c71a19b"}},{"ruleId":"D1","level":"warning","message":{"text":"TypeConverter.toIcebergType (cyclomatic 19): TypeConverter.toIcebergType 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":"presto-iceberg/src/main/java/com/facebook/presto/iceberg/TypeConverter.java"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"05dd88268d29dcccd46d49c011d6b43f36e34162674505052462d8a90bb0854e"}},{"ruleId":"D1","level":"warning","message":{"text":"ArrayDistinctFunction.bigintDistinct (cyclomatic 19): ArrayDistinctFunction.bigintDistinct 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":"presto-main-base/src/main/java/com/facebook/presto/operator/scalar/ArrayDistinctFunction.java"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"a15156ee7474a1383342e010ae210270512dcab0918dc8ee84d3ff58d1f15722"}},{"ruleId":"D1","level":"warning","message":{"text":"JoniRegexpFunctions.appendReplacement (cyclomatic 19): JoniRegexpFunctions.appendReplacement 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":"presto-main-base/src/main/java/com/facebook/presto/operator/scalar/JoniRegexpFunctions.java"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddcbf1325c4e5141a5a9e975419a5251ad60457883db36ee78f1dab474146e03"}},{"ruleId":"D1","level":"warning","message":{"text":"DistributedQueryRunner.\u003Cinit\u003E (cyclomatic 19): DistributedQueryRunner.\u003Cinit\u003E 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":"presto-tests/src/main/java/com/facebook/presto/tests/DistributedQueryRunner.java"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8104de834bf2b9d1a2a20f59f1a1bd902dc2defb93bf56f9f536f18a1ecda39"}},{"ruleId":"D1","level":"warning","message":{"text":"MapFlatBatchStreamReader.readBlock (cyclomatic 19): MapFlatBatchStreamReader.readBlock 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":"presto-orc/src/main/java/com/facebook/presto/orc/reader/MapFlatBatchStreamReader.java"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c3d486090e071e7760dde3fdb2bd0404a74c4c4ffbc05ebb3649051ca3de1bd"}},{"ruleId":"D1","level":"warning","message":{"text":"SliceDictionarySelectiveReader.readWithFilter (cyclomatic 19): SliceDictionarySelectiveReader.readWithFilter 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":"presto-orc/src/main/java/com/facebook/presto/orc/reader/SliceDictionarySelectiveReader.java"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cfcce243e89864e13fd989a0f17321ff4d6a49f1395c65a02141736ba8e7d1d"}},{"ruleId":"D1","level":"warning","message":{"text":"BooleanInputStream.getSetBits (cyclomatic 19): BooleanInputStream.getSetBits has cyclomatic complexity 19 (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":"presto-orc/src/main/java/com/facebook/presto/orc/stream/BooleanInputStream.java"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"97589f50100559fef995630965eca30aeb5402a2abf71233e2f91d3fa4bf75f0"}},{"ruleId":"D1","level":"warning","message":{"text":"BooleanInputStream.getSetBits (cyclomatic 19): BooleanInputStream.getSetBits has cyclomatic complexity 19 (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":"presto-orc/src/main/java/com/facebook/presto/orc/stream/BooleanInputStream.java"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"66d2a803762916462eafb2ba9d98cdc9321dcad1331bfa6d51dd4e1dd9f307cd"}},{"ruleId":"D1","level":"warning","message":{"text":"BooleanInputStream.getUnsetBits (cyclomatic 19): BooleanInputStream.getUnsetBits has cyclomatic complexity 19 (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":"presto-orc/src/main/java/com/facebook/presto/orc/stream/BooleanInputStream.java"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"f615d0314590f0e000cf87eddc0bf093cb99e2f89b4d5d07198de595995d3291"}},{"ruleId":"D1","level":"warning","message":{"text":"StripeReader.readStripe (cyclomatic 19): StripeReader.readStripe 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":"presto-orc/src/main/java/com/facebook/presto/orc/StripeReader.java"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"a28fb65aa9fbe599153cc625f6f89d5d2d7e21a0bd4dbd86da90b21dd1764297"}},{"ruleId":"D1","level":"warning","message":{"text":"DistinguishedNameParser.nextAT (cyclomatic 19): DistinguishedNameParser.nextAT 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":"presto-client/src/main/java/okhttp/internal/tls/DistinguishedNameParser.java"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"2af40d79335322e7d615b529b25ae9b4ee1745ddce4c3837283c3f3af00f3dc8"}},{"ruleId":"D1","level":"warning","message":{"text":"QuerySpecificationRewriter.visitQuerySpecification (cyclomatic 18): QuerySpecificationRewriter.visitQuerySpecification 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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/MaterializedViewQueryOptimizer.java"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"64246f46c84ceedb588b46f6bb1203eca08da071f32a86e3ebee85e9dab1ea9b"}},{"ruleId":"D1","level":"warning","message":{"text":"Visitor.computeAndAssignOutputScope (cyclomatic 18): Visitor.computeAndAssignOutputScope 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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java"},"region":{"startLine":4441}}}],"partialFingerprints":{"codehealthFindingId/v1":"8674df694b13e35f76e47c167ba983a5fd815c4a73aa421ec5d731c87d9810dc"}},{"ruleId":"D1","level":"warning","message":{"text":"RowExpressionComparator.compare (cyclomatic 18): RowExpressionComparator.compare 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/ExpressionEquivalence.java"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"950fc716ed094913381c5cc6ea99dbdd2c687b5e83c531fbb901f0b337aec9ee"}},{"ruleId":"D1","level":"warning","message":{"text":"Rewriter.processInnerJoin (cyclomatic 18): Rewriter.processInnerJoin 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PredicatePushDown.java"},"region":{"startLine":1179}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b230425550ef7ff789c88da32b5d6a6576d4c5b72fd854b47db112f05eb8ad3"}},{"ruleId":"D1","level":"warning","message":{"text":"Visitor.visitExchange (cyclomatic 18): Visitor.visitExchange 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PropertyDerivations.java"},"region":{"startLine":701}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcf1d7eed44d79936f0f07dc5a18cd52372b3b4d66fa55014e2a5b0f58b92b5d"}},{"ruleId":"D1","level":"warning","message":{"text":"SubfieldExtractor.visitCall (cyclomatic 18): SubfieldExtractor.visitCall 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PushdownSubfields.java"},"region":{"startLine":891}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e4588ca19cd9c5dd610c923986b82b7f26abf864ebfebce16a316f7de071276"}},{"ruleId":"D1","level":"warning","message":{"text":"CachingPlanCanonicalInfoProvider.loadValue (cyclomatic 18): CachingPlanCanonicalInfoProvider.loadValue 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/CachingPlanCanonicalInfoProvider.java"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"04e6dfed55b3f2a247896a6e8c3394b118e7cdc61b2b78334d8d1ae4b58308ed"}},{"ruleId":"D1","level":"warning","message":{"text":"Visitor.visitLikePredicate (cyclomatic 18): Visitor.visitLikePredicate 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/ExpressionInterpreter.java"},"region":{"startLine":1031}}}],"partialFingerprints":{"codehealthFindingId/v1":"622027435d1dc13a6f4b48f0fd7ebafb1ca04bcdb956f4fb229edb9352a24492"}},{"ruleId":"D1","level":"warning","message":{"text":"RewritingVisitor.visitFunctionCall (cyclomatic 18): RewritingVisitor.visitFunctionCall 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":"presto-parser/src/main/java/com/facebook/presto/sql/tree/ExpressionTreeRewriter.java"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dcb1f1b1a831fbe31d0b5f49eb9ca02fc8c8fb14e6f40d1a105ac2d2a2a312a"}},{"ruleId":"D1","level":"warning","message":{"text":"1.visitQuerySpecification (cyclomatic 18): 1.visitQuerySpecification 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":"presto-parser/src/main/java/com/facebook/presto/sql/TreePrinter.java"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"04ff47453ff470417b8a1a44d716814abae72bdb495f675abef5c40553f272c3"}},{"ruleId":"D1","level":"warning","message":{"text":"AlignedTablePrinter.printRows (cyclomatic 18): AlignedTablePrinter.printRows 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":"presto-cli/src/main/java/com/facebook/presto/cli/AlignedTablePrinter.java"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"1db1a5c80fe452bff6226f3d8a8424912485d313d90066b9b6e8ee4828855256"}},{"ruleId":"D1","level":"warning","message":{"text":"HiveTypeTranslator.isSupportedHiveType (cyclomatic 18): HiveTypeTranslator.isSupportedHiveType 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":"presto-hive-metastore/src/main/java/com/facebook/presto/hive/HiveTypeTranslator.java"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"79d28ac1078dc2b2073b9d0947c45d1b3c10eff71911ba302f9917b6096f2733"}},{"ruleId":"D1","level":"warning","message":{"text":"HiveRecordCursor.\u003Cinit\u003E (cyclomatic 18): HiveRecordCursor.\u003Cinit\u003E 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":"presto-hive/src/main/java/com/facebook/presto/hive/HiveRecordCursor.java"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef0a12da61b19342b12b639f381d047b4d13942a82707c2a1389c573082d3092"}},{"ruleId":"D1","level":"warning","message":{"text":"HiveWriteUtils.getRowColumnInspector (cyclomatic 18): HiveWriteUtils.getRowColumnInspector 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":"presto-hive/src/main/java/com/facebook/presto/hive/HiveWriteUtils.java"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e0fa7063bfba8c7d85e98d004f5b77e278fc99cb768bac5594c893857c6a324"}},{"ruleId":"D1","level":"warning","message":{"text":"HudiPageSource.deserializePartitionValue (cyclomatic 18): HudiPageSource.deserializePartitionValue 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":"presto-hudi/src/main/java/com/facebook/presto/hudi/HudiPageSource.java"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c4a771d4c4aaa5f6d1207169caddbdfce9ca01b295c632c8bc37f8ffab63d92"}},{"ruleId":"D1","level":"warning","message":{"text":"IcebergOrcFileWriter.toIcebergMinMax (cyclomatic 18): IcebergOrcFileWriter.toIcebergMinMax 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":"presto-iceberg/src/main/java/com/facebook/presto/iceberg/IcebergOrcFileWriter.java"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"08355090aad23fda0ae0eb1521daeff40e2dec6033bcc407a4352918d377114f"}},{"ruleId":"D1","level":"warning","message":{"text":"RuntimeStatsMetricsReporter.report (cyclomatic 18): RuntimeStatsMetricsReporter.report 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":"presto-iceberg/src/main/java/com/facebook/presto/iceberg/RuntimeStatsMetricsReporter.java"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9c97bb041647fdb15e3326b3e6b42175dc8874652f43988c5c710258d8efa4f"}},{"ruleId":"D1","level":"warning","message":{"text":"PrestoStatement.internalExecute (cyclomatic 18): PrestoStatement.internalExecute 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":"presto-jdbc/src/main/java/com/facebook/presto/jdbc/PrestoStatement.java"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4f715ba80d168824757523e12ea4a4ef435bfea562284483a75a22104eb260b"}},{"ruleId":"D1","level":"warning","message":{"text":"ColumnJdbcTable.jdbcDataType (cyclomatic 18): ColumnJdbcTable.jdbcDataType 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":"presto-main-base/src/main/java/com/facebook/presto/connector/system/jdbc/ColumnJdbcTable.java"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"d56f83508c36d019f3bd4ba6ffad0b6ffe7c014a4d05b33a5e89f669d9d4bb04"}},{"ruleId":"D1","level":"warning","message":{"text":"ThriftIndexedTpchService.blockAsList (cyclomatic 18): ThriftIndexedTpchService.blockAsList 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":"presto-thrift-testing-server/src/main/java/com/facebook/presto/connector/thrift/server/ThriftIndexedTpchService.java"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1e635f6df1d25fbbb3851aa0c58229a5f4c1f2e4c5e17a3d917d8ecc38b29d7"}},{"ruleId":"D1","level":"warning","message":{"text":"TopologyAwareNodeSelector.computeAssignments (cyclomatic 18): TopologyAwareNodeSelector.computeAssignments 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":"presto-main-base/src/main/java/com/facebook/presto/execution/scheduler/nodeSelection/TopologyAwareNodeSelector.java"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"0af56bfdfe7e66ff8ad3f076e71280a126d15cc18c018983234a6e4a1dbf417d"}},{"ruleId":"D1","level":"warning","message":{"text":"StageExecutionStats.\u003Cinit\u003E (cyclomatic 18): StageExecutionStats.\u003Cinit\u003E 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":"presto-main-base/src/main/java/com/facebook/presto/execution/StageExecutionStats.java"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc7e3cd73129608c576a3d9d33d3e9ccac35e72275d3afc5257ba14200ac8a9f"}},{"ruleId":"D1","level":"warning","message":{"text":"AbstractBlockEncodingBuffer.encodeNullsAsBits (cyclomatic 18): AbstractBlockEncodingBuffer.encodeNullsAsBits 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":"presto-main-base/src/main/java/com/facebook/presto/operator/repartition/AbstractBlockEncodingBuffer.java"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"e339099a162832214a4a8e0bb89a3dda7480c6c2360ad8aed710d3af3f5e9cb8"}},{"ruleId":"D1","level":"warning","message":{"text":"MongoPageSource.writeBlock (cyclomatic 18): MongoPageSource.writeBlock 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":"presto-mongodb/src/main/java/com/facebook/presto/mongodb/MongoPageSource.java"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1024a5149d596e693a2eff2c36cb078232b354c945fd76f6ce9b3fc428601a8"}},{"ruleId":"D1","level":"warning","message":{"text":"MongoSession.guessFieldType (cyclomatic 18): MongoSession.guessFieldType 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":"presto-mongodb/src/main/java/com/facebook/presto/mongodb/MongoSession.java"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5b67f166b2e6c53a59638322b9ca4d8a8bc931b62736ab3b57e67e6358e7267"}},{"ruleId":"D1","level":"warning","message":{"text":"SliceDictionaryBatchStreamReader.readBlock (cyclomatic 18): SliceDictionaryBatchStreamReader.readBlock 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":"presto-orc/src/main/java/com/facebook/presto/orc/reader/SliceDictionaryBatchStreamReader.java"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee6a0615b122e868811376c6e177725a310b1f48006e066b7211cf9f9b23992c"}},{"ruleId":"D1","level":"warning","message":{"text":"LongDecode.getClosestFixedBits (cyclomatic 18): LongDecode.getClosestFixedBits 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":"presto-orc/src/main/java/com/facebook/presto/orc/stream/LongDecode.java"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1bb3b44191bff0e27eb9565fe03014c4b8c097aea33cf857f003450f8d391b6"}},{"ruleId":"D1","level":"warning","message":{"text":"LongOutputStreamV2.writeLong (cyclomatic 18): LongOutputStreamV2.writeLong 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":"presto-orc/src/main/java/com/facebook/presto/orc/stream/LongOutputStreamV2.java"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb0cd34d75edc363fa1393db5f69c0b4d2db7ff4b665409ee7387a68afd3986b"}},{"ruleId":"D1","level":"warning","message":{"text":"SerializationUtils.getClosestFixedBits (cyclomatic 18): SerializationUtils.getClosestFixedBits 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":"presto-orc/src/main/java/com/facebook/presto/orc/stream/LongOutputStreamV2.java"},"region":{"startLine":864}}}],"partialFingerprints":{"codehealthFindingId/v1":"c966889433dc81e71bb04edd2e10d7ea554178333b6c59ec3941f4246352b62a"}},{"ruleId":"D1","level":"warning","message":{"text":"OrcWriteValidation.validateColumnStatisticsEquivalent (cyclomatic 18): OrcWriteValidation.validateColumnStatisticsEquivalent 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":"presto-orc/src/main/java/com/facebook/presto/orc/OrcWriteValidation.java"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4b5f7103dbe419b555a2766eecc9b58135e39393e534cf41b264d2fde3e777b"}},{"ruleId":"D1","level":"warning","message":{"text":"PinotColumnUtils.getPrestoTypeFromPinotType (cyclomatic 18): PinotColumnUtils.getPrestoTypeFromPinotType 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":"presto-pinot-toolkit/src/main/java/com/facebook/presto/pinot/PinotColumnUtils.java"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"a361120c4384a66370c39d71cf5375eafccc2a1f254eaa5d45ecbe24233a4c0a"}},{"ruleId":"D1","level":"warning","message":{"text":"StaticSelector.match (cyclomatic 18): StaticSelector.match 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":"presto-resource-group-managers/src/main/java/com/facebook/presto/resourceGroups/StaticSelector.java"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dbf3b89069e441315eb066dcd440b002692b43a86214208c8ec47e6f9a93ac6"}},{"ruleId":"D1","level":"warning","message":{"text":"Visitor.expressionReferencesName (cyclomatic 17): Visitor.expressionReferencesName 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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/ExpressionAnalyzer.java"},"region":{"startLine":1208}}}],"partialFingerprints":{"codehealthFindingId/v1":"452d0a1a3369f36e2bb078624786257b0523b5f80beeba07cb6316ec89a3d300"}},{"ruleId":"D1","level":"warning","message":{"text":"Visitor.visitDereferenceExpression (cyclomatic 17): Visitor.visitDereferenceExpression 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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/ExpressionAnalyzer.java"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"709eace4e1e22ef6a9d7ac32bdffd14ea29e2a0cd5efdc655d69e1f6ae71607e"}},{"ruleId":"D1","level":"warning","message":{"text":"Visitor.analyzeCopartitioning (cyclomatic 17): Visitor.analyzeCopartitioning 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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java"},"region":{"startLine":2235}}}],"partialFingerprints":{"codehealthFindingId/v1":"990e239e5f48ddc2143a58201c239be48b5553d2d9b16c1761109f5544ea987d"}},{"ruleId":"D1","level":"warning","message":{"text":"Visitor.analyzeGroupBy (cyclomatic 17): Visitor.analyzeGroupBy 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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java"},"region":{"startLine":4340}}}],"partialFingerprints":{"codehealthFindingId/v1":"f36146071d273bafb52ded7dcfa2eb40caae9b91feb18f9331af053ef53208aa"}},{"ruleId":"D1","level":"warning","message":{"text":"CollapseFanoutJoinWithArrayAggUnnest.tryCollapseSide (cyclomatic 17): CollapseFanoutJoinWithArrayAggUnnest.tryCollapseSide 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/CollapseFanoutJoinWithArrayAggUnnest.java"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"c23cb1023df9624f64172bb4a7419c7698bec5772137aba26bfaa2ad0953e413"}},{"ruleId":"D1","level":"warning","message":{"text":"PushPartialAggregationThroughExchange.apply (cyclomatic 17): PushPartialAggregationThroughExchange.apply 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PushPartialAggregationThroughExchange.java"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"18fad5351d79fa2bbdc0faf0dd539d664c247063cee587f49042833b022aac40"}},{"ruleId":"D1","level":"warning","message":{"text":"Rewriter.visitSemiJoin (cyclomatic 17): Rewriter.visitSemiJoin 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/AddExchanges.java"},"region":{"startLine":1272}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fd93552616bdca015690c651465d67d0f20e73319dab04cdafb3f43312aafd2"}},{"ruleId":"D1","level":"warning","message":{"text":"Rewriter.visitFilter (cyclomatic 17): Rewriter.visitFilter 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/ReplaceConstantVariableReferencesWithConstants.java"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"956f810b12f84104b78582bc9b49f8c3d0528eecae272706d7ef4fe8ec9b8102"}},{"ruleId":"D1","level":"warning","message":{"text":"StandardColumnMappings.getWriteMappingForAccumulators (cyclomatic 17): StandardColumnMappings.getWriteMappingForAccumulators 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":"presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/mapping/StandardColumnMappings.java"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"d88da0b2f62f599c339cb72ab4c6a2753ac000bf720ba8aee1037f42ffb2ef70"}},{"ruleId":"D1","level":"warning","message":{"text":"StatementClientV1.buildQueryRequest (cyclomatic 17): StatementClientV1.buildQueryRequest 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":"presto-client/src/main/java/com/facebook/presto/client/StatementClientV1.java"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"6100f2e624f38c3bf700b05cf1a36bd36ff80cab4ca3b90a3c876537f381531c"}},{"ruleId":"D1","level":"warning","message":{"text":"Base32.decode (cyclomatic 17): Base32.decode 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":"presto-common/src/main/java/com/facebook/presto/common/type/encoding/Base32.java"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"a49fd2ebdc3492282c365a351acbd0d249252256ce1fa46fb0f380d4e8f3b3ae"}},{"ruleId":"D1","level":"warning","message":{"text":"Base32.encode (cyclomatic 17): Base32.encode 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":"presto-common/src/main/java/com/facebook/presto/common/type/encoding/Base32.java"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"fda84b6e47371c041c072d5a89ba8a200e73d901b79b171df18e94f9224de83f"}},{"ruleId":"D1","level":"warning","message":{"text":"SemiTransactionalHiveMetastore.doGetPartitionNames (cyclomatic 17): SemiTransactionalHiveMetastore.doGetPartitionNames 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":"presto-hive-metastore/src/main/java/com/facebook/presto/hive/metastore/SemiTransactionalHiveMetastore.java"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"f60a0710a3f376df68e2399480299b5b73e5fd4f239fa92d2b0beb271025ba38"}},{"ruleId":"D1","level":"warning","message":{"text":"MetastoreHiveStatisticsProvider.validateColumnStatistics (cyclomatic 17): MetastoreHiveStatisticsProvider.validateColumnStatistics 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":"presto-hive/src/main/java/com/facebook/presto/hive/statistics/MetastoreHiveStatisticsProvider.java"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"24ef316705b16a259c11efbe0d28e13c02b761a1213730bb3c5a489fd7adeb1f"}},{"ruleId":"D1","level":"warning","message":{"text":"HiveWriteUtils.createFieldSetter (cyclomatic 17): HiveWriteUtils.createFieldSetter 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":"presto-hive/src/main/java/com/facebook/presto/hive/HiveWriteUtils.java"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"148be458425de62d4c9e988fdf150429998651e0846980d16e5b732e6986beb5"}},{"ruleId":"D1","level":"warning","message":{"text":"HiveWriteUtils.getJavaObjectInspector (cyclomatic 17): HiveWriteUtils.getJavaObjectInspector 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":"presto-hive/src/main/java/com/facebook/presto/hive/HiveWriteUtils.java"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"836ed391fab2e0d6170455853f3e4d231aa27a48d8e2680dbe052ab3d97d6c94"}},{"ruleId":"D1","level":"warning","message":{"text":"IcebergPageSourceProvider.readDeletes (cyclomatic 17): IcebergPageSourceProvider.readDeletes 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":"presto-iceberg/src/main/java/com/facebook/presto/iceberg/IcebergPageSourceProvider.java"},"region":{"startLine":1021}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d2b4fb33ff0cec027e357f9070bdbfd37bb864bf1b23b5b0e24c268a9de7c85"}},{"ruleId":"D1","level":"warning","message":{"text":"IcebergTableName.from (cyclomatic 17): IcebergTableName.from 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":"presto-iceberg/src/main/java/com/facebook/presto/iceberg/IcebergTableName.java"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"04c07a354143853c2f79646a5f82f264aaecbe80f5dc967712c7f7c74d230192"}},{"ruleId":"D1","level":"warning","message":{"text":"FunctionInvokerProvider.checkChoice (cyclomatic 17): FunctionInvokerProvider.checkChoice 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":"presto-main-base/src/main/java/com/facebook/presto/metadata/FunctionInvokerProvider.java"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"052ea59eeea0b3a2724b6e687584dd0da0bb5602db87fc63447c53e600542f7c"}},{"ruleId":"D1","level":"warning","message":{"text":"Parser.parseArguments (cyclomatic 17): Parser.parseArguments 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":"presto-main-base/src/main/java/com/facebook/presto/operator/scalar/annotations/ParametricScalarImplementation.java"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"36ad461cfce5695bed34b7612a8d85158ea4faec176fa1a40db1f62cfd212aaa"}},{"ruleId":"D1","level":"warning","message":{"text":"TaskContext.getTaskStats (cyclomatic 17): TaskContext.getTaskStats 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":"presto-main-base/src/main/java/com/facebook/presto/operator/TaskContext.java"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"da09dd4ca1b6b11bfeafbaf1a99487b02260d2b0448df3f67cc77d7dc9babca1"}},{"ruleId":"D1","level":"warning","message":{"text":"TDigest.getQuantile (cyclomatic 17): TDigest.getQuantile 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":"presto-main-base/src/main/java/com/facebook/presto/tdigest/TDigest.java"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eb9392e8a781ad7d839ada16e1d4c7478978450af64ff308cb6096207792d33"}},{"ruleId":"D1","level":"warning","message":{"text":"TDigest.trimmedMean (cyclomatic 17): TDigest.trimmedMean has cyclomatic complexity 17 (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":"presto-main-base/src/main/java/com/facebook/presto/tdigest/TDigest.java"},"region":{"startLine":595}}}],"partialFingerprints":{"codehealthFindingId/v1":"b59be09758876fb7b070e67687c5658b18afc64dd196a02a4a2d939601c44a47"}},{"ruleId":"D1","level":"warning","message":{"text":"TestTableFunctionInvocation.setUp (cyclomatic 17): TestTableFunctionInvocation.setUp has cyclomatic complexity 17 (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":"presto-tests/src/main/java/com/facebook/presto/tests/TestTableFunctionInvocation.java"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"06e45e168aa3257cf2904f0a21e5a7bf9ae938bbe3fb4faf7d5b1e0cdb9b17a7"}},{"ruleId":"D1","level":"warning","message":{"text":"StructSelectiveStreamReader.read (cyclomatic 17): StructSelectiveStreamReader.read 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":"presto-orc/src/main/java/com/facebook/presto/orc/reader/StructSelectiveStreamReader.java"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a161c5c09426812d7aaa4570023f62c91155de191a3d7923fe8e5fdf0404583"}},{"ruleId":"D1","level":"warning","message":{"text":"SerializationUtils.encodeBitWidth (cyclomatic 17): SerializationUtils.encodeBitWidth 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":"presto-orc/src/main/java/com/facebook/presto/orc/stream/LongOutputStreamV2.java"},"region":{"startLine":951}}}],"partialFingerprints":{"codehealthFindingId/v1":"15e1be9e1f4fda89d167019241468dd5ae223433a52f871bbf1aae507a770c60"}},{"ruleId":"D1","level":"warning","message":{"text":"SerializationUtils.writeRemainingLongs (cyclomatic 17): SerializationUtils.writeRemainingLongs 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":"presto-orc/src/main/java/com/facebook/presto/orc/stream/LongOutputStreamV2.java"},"region":{"startLine":1236}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbcc0c588aae30b875b1ae9a66d633ef5f0656564d74702b12883962623e36cc"}},{"ruleId":"D1","level":"warning","message":{"text":"ParquetResultVerifierUtils.verifyColumnChunks (cyclomatic 17): ParquetResultVerifierUtils.verifyColumnChunks 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":"presto-parquet/src/main/java/com/facebook/presto/parquet/ParquetResultVerifierUtils.java"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfb801cc4477a6c847a265832122eaea21424531bf33227e8fe2011602d6ddab"}},{"ruleId":"D1","level":"warning","message":{"text":"RcFileEncoding.getEncoding (cyclomatic 17): RcFileEncoding.getEncoding 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":"presto-rcfile/src/main/java/com/facebook/presto/rcfile/RcFileEncoding.java"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"26ffc43a5ccc5bbe77ddcc9c98f8e8ec5362d0048da6c843523e344cb163ca77"}},{"ruleId":"D1","level":"warning","message":{"text":"StructuredColumnMismatchResolver.resolveResultMismatch (cyclomatic 17): StructuredColumnMismatchResolver.resolveResultMismatch 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":"presto-verifier/src/main/java/com/facebook/presto/verifier/resolver/StructuredColumnMismatchResolver.java"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"391ab497f78b32271e0b2dedcc908850dffe6eeb5bc06d90c6104ce01e385d24"}},{"ruleId":"D1","level":"warning","message":{"text":"BlockArrowWriter.prestoToArrowType (cyclomatic 17): BlockArrowWriter.prestoToArrowType 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":"presto-common-arrow/src/main/java/com/facebook/plugin/arrow/BlockArrowWriter.java"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"701ba09ee879bfc5f9545d10ae2568aad7482239a4b257d6e548adf821cf2292"}},{"ruleId":"D1","level":"warning","message":{"text":"FunctionArgumentCheckerForAccessControlUtils.resolveSubfield (cyclomatic 16): FunctionArgumentCheckerForAccessControlUtils.resolveSubfield 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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/FunctionArgumentCheckerForAccessControlUtils.java"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"40c1f6e38364d8c3dadf84ccc8bc984ba5ae02e9ca9f345008a3d9746ac2d1a8"}},{"ruleId":"D1","level":"warning","message":{"text":"JoinRewriteContext.areAggregatesCompatible (cyclomatic 16): JoinRewriteContext.areAggregatesCompatible 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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/MaterializedViewJoinQueryRewriter.java"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"11845c511afc09e01dcdbc3eb781414e2e16752babc260c24f945e6c36df0466"}},{"ruleId":"D1","level":"warning","message":{"text":"Visitor.visitQuerySpecification (cyclomatic 16): Visitor.visitQuerySpecification 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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java"},"region":{"startLine":3249}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4d16112603bbbf4f7409ce677a099d953a1b67988549a80937afc7f47006990"}},{"ruleId":"D1","level":"warning","message":{"text":"CollapseFanoutJoinWithArrayAggUnnest.isCollapsibleFanout (cyclomatic 16): CollapseFanoutJoinWithArrayAggUnnest.isCollapsibleFanout 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/CollapseFanoutJoinWithArrayAggUnnest.java"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fb1378b550bbd02d284e9b78e68b7e2e2ceeb909b31b2676fecc5c57d4c025e"}},{"ruleId":"D1","level":"warning","message":{"text":"SimplifyAggregationsOverConstant.buildConstantResolver (cyclomatic 16): SimplifyAggregationsOverConstant.buildConstantResolver 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/SimplifyAggregationsOverConstant.java"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"e534b32fceb4c66ac2c9f9fbe95870b0a2d3951103a3bccdafa946a18577c94f"}},{"ruleId":"D1","level":"warning","message":{"text":"PrometheusQueryResponse.parsePrometheusQueryResponse (cyclomatic 16): PrometheusQueryResponse.parsePrometheusQueryResponse 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":"presto-prometheus/src/main/java/com/facebook/presto/plugin/prometheus/PrometheusQueryResponse.java"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"d30f52d017212a6f23cc77be4de0e6a00f24c51c8f5e43cc10cdf2f1f2155aa3"}},{"ruleId":"D1","level":"warning","message":{"text":"CassandraPageSink.appendColumn (cyclomatic 16): CassandraPageSink.appendColumn 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":"presto-cassandra/src/main/java/com/facebook/presto/cassandra/CassandraPageSink.java"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"e310eaa91538187b9337bf9ce130c95c5a7fb45571fb69b18c114ebfef411dc8"}},{"ruleId":"D1","level":"warning","message":{"text":"Console.process (cyclomatic 16): Console.process 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":"presto-cli/src/main/java/com/facebook/presto/cli/Console.java"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"28fd3ca3d9bc0b1724ab8650e16234e1f0887e26d97b06305332053d1df1713c"}},{"ruleId":"D1","level":"warning","message":{"text":"HttpRemoteTaskWithEventLoop.sendUpdate (cyclomatic 16): HttpRemoteTaskWithEventLoop.sendUpdate 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":"presto-main/src/main/java/com/facebook/presto/server/remotetask/HttpRemoteTaskWithEventLoop.java"},"region":{"startLine":981}}}],"partialFingerprints":{"codehealthFindingId/v1":"60ca16c805858e5bf960fbf908b90d250b662cd7cd05ddeb371c9fa509748ebd"}},{"ruleId":"D1","level":"warning","message":{"text":"ReactorNettyHttpClient.onSuccess (cyclomatic 16): ReactorNettyHttpClient.onSuccess 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":"presto-main/src/main/java/com/facebook/presto/server/remotetask/ReactorNettyHttpClient.java"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"77e43de14aee7d9564c37bdef08b13eadbc5b49c851cdc28df93e564e281fdbf"}},{"ruleId":"D1","level":"warning","message":{"text":"ServerMainModule.setup (cyclomatic 16): ServerMainModule.setup 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":"presto-main/src/main/java/com/facebook/presto/server/ServerMainModule.java"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"5434a6ad36a29c0c3b8c110e623d365f1f3345e6b7c5056e73b467b3c9445c55"}},{"ruleId":"D1","level":"warning","message":{"text":"InternalHiveSplitFactory.createInternalHiveSplit (cyclomatic 16): InternalHiveSplitFactory.createInternalHiveSplit 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":"presto-hive/src/main/java/com/facebook/presto/hive/util/InternalHiveSplitFactory.java"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d35cdabf26275cf0ef8354bd497028a2f25d23a68fa0f285e81dd92cf1a54f5"}},{"ruleId":"D1","level":"warning","message":{"text":"HiveMetadata.getTableEncryptionPropertiesFromTableProperties (cyclomatic 16): HiveMetadata.getTableEncryptionPropertiesFromTableProperties 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":"presto-hive/src/main/java/com/facebook/presto/hive/HiveMetadata.java"},"region":{"startLine":3649}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c56a4fbd77a55bcdf8f7c242450685e9808c752280267c78c8ad9f9ec32f6aa"}},{"ruleId":"D1","level":"warning","message":{"text":"StoragePartitionLoader.loadPartition (cyclomatic 16): StoragePartitionLoader.loadPartition 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":"presto-hive/src/main/java/com/facebook/presto/hive/StoragePartitionLoader.java"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"192d0f9f8f0d2bcddc6de64d7240aa80440017fd8f9b09caacb8680566ad5bad"}},{"ruleId":"D1","level":"warning","message":{"text":"IcebergPageSourceProvider.createBatchOrcPageSource (cyclomatic 16): IcebergPageSourceProvider.createBatchOrcPageSource 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":"presto-iceberg/src/main/java/com/facebook/presto/iceberg/IcebergPageSourceProvider.java"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"98d7848b4a01f13ffb3dce4a6888fc81bed6ff42bca90fba767017df2dcd604b"}},{"ruleId":"D1","level":"warning","message":{"text":"IcebergUtil.getNativeValue (cyclomatic 16): IcebergUtil.getNativeValue 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":"presto-iceberg/src/main/java/com/facebook/presto/iceberg/IcebergUtil.java"},"region":{"startLine":1623}}}],"partialFingerprints":{"codehealthFindingId/v1":"294bd04473f67931be1161fda04a85398ea4517d4a58706df7e237faf43d7c9c"}},{"ruleId":"D1","level":"warning","message":{"text":"ColumnJdbcTable.columnSize (cyclomatic 16): ColumnJdbcTable.columnSize 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":"presto-main-base/src/main/java/com/facebook/presto/connector/system/jdbc/ColumnJdbcTable.java"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfd0f35d3c284ad1c32bee195185fdc34b498be63c357d44389616d03eeafabb"}},{"ruleId":"D1","level":"warning","message":{"text":"AbstractRowEncoder.appendColumnValue (cyclomatic 16): AbstractRowEncoder.appendColumnValue 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":"presto-kafka/src/main/java/com/facebook/presto/kafka/encoder/AbstractRowEncoder.java"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"c180e27333a521788dba52a1c4dc2ffd127a5878820d2066b3e76e5098df4fa5"}},{"ruleId":"D1","level":"warning","message":{"text":"KuduClientSession.addConstraintPredicates (cyclomatic 16): KuduClientSession.addConstraintPredicates 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":"presto-kudu/src/main/java/com/facebook/presto/kudu/KuduClientSession.java"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a12f793a71a98d2a638fa3cce6a50f1883e2b3b9831dbbb1e65de8f6923cb0c"}},{"ruleId":"D1","level":"warning","message":{"text":"ProjectSelectedPositions.process (cyclomatic 16): ProjectSelectedPositions.process 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":"presto-main-base/src/main/java/com/facebook/presto/operator/project/PageProcessor.java"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"a95ad64b973d46da1949e531ce7ad912e9b81c6965ef0bec8cfac20308187e3a"}},{"ruleId":"D1","level":"warning","message":{"text":"ArrayFilterFunction.filterBlock (cyclomatic 16): ArrayFilterFunction.filterBlock 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":"presto-main-base/src/main/java/com/facebook/presto/operator/scalar/ArrayFilterFunction.java"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"cee010edf2d6fdd5f9ff2e353e2e56f40b091b2748ed9f5648d2488decd1958b"}},{"ruleId":"D1","level":"warning","message":{"text":"ArrayFilterFunction.filterBoolean (cyclomatic 16): ArrayFilterFunction.filterBoolean 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":"presto-main-base/src/main/java/com/facebook/presto/operator/scalar/ArrayFilterFunction.java"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f2e7bfe9bcd1876f60d20873b1015e117d8d22072bf94d5e29cf9756e2f3e04"}},{"ruleId":"D1","level":"warning","message":{"text":"ArrayFilterFunction.filterDouble (cyclomatic 16): ArrayFilterFunction.filterDouble 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":"presto-main-base/src/main/java/com/facebook/presto/operator/scalar/ArrayFilterFunction.java"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"a83c8b34028969a68184f7d2a4692a3688a7a9c8302e3a96131ea0c9e2142127"}},{"ruleId":"D1","level":"warning","message":{"text":"ArrayFilterFunction.filterLong (cyclomatic 16): ArrayFilterFunction.filterLong 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":"presto-main-base/src/main/java/com/facebook/presto/operator/scalar/ArrayFilterFunction.java"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"37847ca9429b26a86aa048fe294d2fc81fe4f1bb063bbe06d6bf425c4b5a1120"}},{"ruleId":"D1","level":"warning","message":{"text":"ArrayFilterFunction.filterSlice (cyclomatic 16): ArrayFilterFunction.filterSlice 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":"presto-main-base/src/main/java/com/facebook/presto/operator/scalar/ArrayFilterFunction.java"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"c13a00c0c47cbae5841b08b2fdb3915c108465639f367557e7d1cb8a9dac69cc"}},{"ruleId":"D1","level":"warning","message":{"text":"JsonFunctions.jsonArrayGet (cyclomatic 16): JsonFunctions.jsonArrayGet 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":"presto-main-base/src/main/java/com/facebook/presto/operator/scalar/JsonFunctions.java"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3830ef4621c440b7f07cd63983a41f98dee5008912a69a1e63ee1cdce83824d"}},{"ruleId":"D1","level":"warning","message":{"text":"TypeCoercer.compatibility (cyclomatic 16): TypeCoercer.compatibility 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":"presto-main-base/src/main/java/com/facebook/presto/type/TypeCoercer.java"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"09f20409d86b2966664dd23a56ff562adea2a5ec0fefe41483f4a7106e7272d9"}},{"ruleId":"D1","level":"warning","message":{"text":"QueryAssertions.assertQuery (cyclomatic 16): QueryAssertions.assertQuery 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":"presto-tests/src/main/java/com/facebook/presto/tests/QueryAssertions.java"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"1adca38bd7e65152bf19bf699810ea692b796bc73896429dedd51a5e0464319a"}},{"ruleId":"D1","level":"warning","message":{"text":"ByteSelectiveStreamReader.readWithFilter (cyclomatic 16): ByteSelectiveStreamReader.readWithFilter 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":"presto-orc/src/main/java/com/facebook/presto/orc/reader/ByteSelectiveStreamReader.java"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa94efabf220adc21d34b23a7ae4b351ba11881fe4258863e369a8ce3a5472b7"}},{"ruleId":"D1","level":"warning","message":{"text":"DoubleSelectiveStreamReader.readWithFilter (cyclomatic 16): DoubleSelectiveStreamReader.readWithFilter 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":"presto-orc/src/main/java/com/facebook/presto/orc/reader/DoubleSelectiveStreamReader.java"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"8178054dfae2fb0b1b0292df78f3e4ed2c5d034e5efeed0fbc613768a3395098"}},{"ruleId":"D1","level":"warning","message":{"text":"FloatSelectiveStreamReader.readWithFilter (cyclomatic 16): FloatSelectiveStreamReader.readWithFilter 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":"presto-orc/src/main/java/com/facebook/presto/orc/reader/FloatSelectiveStreamReader.java"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"efa3cbde1de96b7ae11cdfc6903cc0ba3c19ea0bfd823fd3ebcf63e7f4c15ba0"}},{"ruleId":"D1","level":"warning","message":{"text":"LongDecimalSelectiveStreamReader.readWithFilter (cyclomatic 16): LongDecimalSelectiveStreamReader.readWithFilter 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":"presto-orc/src/main/java/com/facebook/presto/orc/reader/LongDecimalSelectiveStreamReader.java"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"6daa5f780e71385108217a3cb71d7aa31ae574f1f1a5b75cadf27cc4ff1bf090"}},{"ruleId":"D1","level":"warning","message":{"text":"ShortDecimalSelectiveStreamReader.readWithFilter (cyclomatic 16): ShortDecimalSelectiveStreamReader.readWithFilter 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":"presto-orc/src/main/java/com/facebook/presto/orc/reader/ShortDecimalSelectiveStreamReader.java"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"e20a27d477b240b49a5ab4144cae0ffe58763aa963b0784a92619ddb8bed476f"}},{"ruleId":"D1","level":"warning","message":{"text":"SliceDirectSelectiveStreamReader.prepareForNextRead (cyclomatic 16): SliceDirectSelectiveStreamReader.prepareForNextRead 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":"presto-orc/src/main/java/com/facebook/presto/orc/reader/SliceDirectSelectiveStreamReader.java"},"region":{"startLine":672}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6cea8207c9cc2ac76aeed9342053b34b56a7a731db0ac9d880028f2d5e7a3ca"}},{"ruleId":"D1","level":"warning","message":{"text":"StructSelectiveStreamReader.getBlock (cyclomatic 16): StructSelectiveStreamReader.getBlock 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":"presto-orc/src/main/java/com/facebook/presto/orc/reader/StructSelectiveStreamReader.java"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"696307b9b752aab7322b1c2335b9e24279a0c18a2f374730eb3ab43df96662d8"}},{"ruleId":"D1","level":"warning","message":{"text":"TimestampSelectiveStreamReader.readWithFilter (cyclomatic 16): TimestampSelectiveStreamReader.readWithFilter 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":"presto-orc/src/main/java/com/facebook/presto/orc/reader/TimestampSelectiveStreamReader.java"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ce60a1ca51d277228ef303bffdf3f3ab6b33837338196b05819c0dad9b7990b"}},{"ruleId":"D1","level":"warning","message":{"text":"PinotFilterExpressionConverter.handleTimeValueCast (cyclomatic 16): PinotFilterExpressionConverter.handleTimeValueCast 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":"presto-pinot-toolkit/src/main/java/com/facebook/presto/pinot/query/PinotFilterExpressionConverter.java"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4c1809638299667f52cdd767871aa7da3c1dc109f92a4270db564063f88b814"}},{"ruleId":"D1","level":"warning","message":{"text":"RawColumnDecoder.\u003Cinit\u003E (cyclomatic 16): RawColumnDecoder.\u003Cinit\u003E 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":"presto-record-decoder/src/main/java/com/facebook/presto/decoder/raw/RawColumnDecoder.java"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"46cbb4f075f05622bc35d5a93585ff4b16e3c2992ca88605a34aa5608a0a3489"}},{"ruleId":"D1","level":"warning","message":{"text":"JsonParseSafetyWrapper.findMatchingParen (cyclomatic 16): JsonParseSafetyWrapper.findMatchingParen 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":"presto-verifier/src/main/java/com/facebook/presto/verifier/framework/JsonParseSafetyWrapper.java"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a25b6ca10f3c8e57a23ade14634c20e48564a06e2f956b2588aa73527612462"}},{"ruleId":"D2","level":"warning","message":{"text":"1.getValue (cognitive 270): 1.getValue has cognitive complexity 270 (threshold 15). Drivers by points: ternaries 197, error handling 50, if/else 23 (nesting depth added 226). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-tests/src/main/java/com/facebook/presto/tests/H2QueryRunner.java"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"33b12860e33d96d250bbd12fe04ba7f29e35ed1c2876a9a55a4404e988f9630b"}},{"ruleId":"D2","level":"warning","message":{"text":"Field.cleanObject (cognitive 230): Field.cleanObject has cognitive complexity 230 (threshold 15). Drivers by points: if/else 230 (nesting depth added 186). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-accumulo/src/main/java/com/facebook/presto/accumulo/model/Field.java"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc6cad592c3ba031df030c9fae47f4b8906acabb945ebd6fbb37201cfb0ad612"}},{"ruleId":"D2","level":"warning","message":{"text":"BlockInputDecoders.createForPrimitive (cognitive 157): BlockInputDecoders.createForPrimitive has cognitive complexity 157 (threshold 15). Drivers by points: ternaries 139, if/else 18 (nesting depth added 98). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-hive-function-namespace/src/main/java/com/facebook/presto/hive/functions/type/BlockInputDecoders.java"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b2653da53f55a702f71db6c72536691e7e0c4e0dfea2cec4ffbb2a7a95a9374"}},{"ruleId":"D2","level":"warning","message":{"text":"Visitor.visitFunctionCall (cognitive 139): Visitor.visitFunctionCall has cognitive complexity 139 (threshold 15). Drivers by points: if/else 116, boolean chains 13, loops 10 (nesting depth added 80). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/ExpressionAnalyzer.java"},"region":{"startLine":974}}}],"partialFingerprints":{"codehealthFindingId/v1":"f371573f661bb7b53457d5911a61520b84b62fddee208694bffacd8c77aa4461"}},{"ruleId":"D2","level":"warning","message":{"text":"Visitor.visitSpecialForm (cognitive 128): Visitor.visitSpecialForm has cognitive complexity 128 (threshold 15). Drivers by points: if/else 100, boolean chains 15, loops 12, match/switch 1 (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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/RowExpressionInterpreter.java"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"67e989f05d116ea8d82c57d63a94a9e990e0308aac88606e58676ecddb3a7a6e"}},{"ruleId":"D2","level":"warning","message":{"text":"CastBytecodeExpression.castPrimitiveToPrimitive (cognitive 110): CastBytecodeExpression.castPrimitiveToPrimitive has cognitive complexity 110 (threshold 15). Drivers by points: if/else 110 (nesting depth added 51). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-bytecode/src/main/java/com/facebook/presto/bytecode/expression/CastBytecodeExpression.java"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"f174f1e48fd4b6e0b6cebc136cc8a981245d478b7c6c6c7ec3c655fc37af64b9"}},{"ruleId":"D2","level":"warning","message":{"text":"SliceDirectSelectiveStreamReader.readWithFilter (cognitive 106): SliceDirectSelectiveStreamReader.readWithFilter has cognitive complexity 106 (threshold 15). Drivers by points: if/else 89, boolean chains 7, loops 5, ternaries 5 (nesting depth added 68). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-orc/src/main/java/com/facebook/presto/orc/reader/SliceDirectSelectiveStreamReader.java"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"e59dd91602157842fa0e19ca0b86b08d10ff2d54199557981643dd0b42aca811"}},{"ruleId":"D2","level":"warning","message":{"text":"TestingPrestoClient.convertToRowValue (cognitive 98): TestingPrestoClient.convertToRowValue has cognitive complexity 98 (threshold 15). Drivers by points: if/else 59, loops 25, error handling 14 (nesting depth added 60). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-tests/src/main/java/com/facebook/presto/tests/TestingPrestoClient.java"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2f92bac6c115207d1f8893ca9cff2c82879886118bf3ce694f01b469d18102d"}},{"ruleId":"D2","level":"warning","message":{"text":"Decoders.createValuesDecoder (cognitive 94): Decoders.createValuesDecoder has cognitive complexity 94 (threshold 15). Drivers by points: if/else 83, match/switch 6, boolean chains 5 (nesting depth added 53). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-parquet/src/main/java/com/facebook/presto/parquet/batchreader/decoders/Decoders.java"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ed9cd8c60ca46b002fb203a3a065f127ca5a87e9f906ed5de733bf700a1466b"}},{"ruleId":"D2","level":"warning","message":{"text":"Rewriter.toSubfield (cognitive 81): Rewriter.toSubfield has cognitive complexity 81 (threshold 15). Drivers by points: if/else 70, boolean chains 6, loops 5 (nesting depth added 51). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PushdownSubfields.java"},"region":{"startLine":693}}}],"partialFingerprints":{"codehealthFindingId/v1":"f048e8f279c414f10dd86d882036c985c9b830f55d15d99a9da85fc50b041d8f"}},{"ruleId":"D2","level":"warning","message":{"text":"JmxRecordSetProvider.getLiveRow (cognitive 79): JmxRecordSetProvider.getLiveRow has cognitive complexity 79 (threshold 15). Drivers by points: if/else 77, boolean chains 1, loops 1 (nesting depth added 50). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-jmx/src/main/java/com/facebook/presto/connector/jmx/JmxRecordSetProvider.java"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ab475365a24d1e058dae56db04085f75d7e6b2d7b3cc0f5f6834dd1e0b00663"}},{"ruleId":"D2","level":"warning","message":{"text":"Visitor.visitFunctionCall (cognitive 75): Visitor.visitFunctionCall has cognitive complexity 75 (threshold 15). Drivers by points: if/else 61, loops 10, 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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/AggregationAnalyzer.java"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"68b5a40aa2a5acd9005fc14b3d226214b915217fa56c045b59019c2816e20bb6"}},{"ruleId":"D2","level":"warning","message":{"text":"KuduClientSession.addConstraintPredicates (cognitive 72): KuduClientSession.addConstraintPredicates has cognitive complexity 72 (threshold 15). Drivers by points: if/else 44, ternaries 24, loops 3, boolean chains 1 (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":"presto-kudu/src/main/java/com/facebook/presto/kudu/KuduClientSession.java"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"524e6a3bbfccca92bbe3196def8fb0ab4154935c45f56e41affb4f75a07f8eb0"}},{"ruleId":"D2","level":"warning","message":{"text":"SqlQueryScheduler.schedule (cognitive 71): SqlQueryScheduler.schedule has cognitive complexity 71 (threshold 15). Drivers by points: if/else 39, loops 19, boolean chains 5, match/switch 5, error handling 3 (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":"presto-main-base/src/main/java/com/facebook/presto/execution/scheduler/SqlQueryScheduler.java"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"e30c15cd5d6cf10c6338488739973fc7c942df88fb3e9d5652c550e9b5671a57"}},{"ruleId":"D2","level":"warning","message":{"text":"TypeSignature.parseEnumMap (cognitive 69): TypeSignature.parseEnumMap has cognitive complexity 69 (threshold 15). Drivers by points: if/else 51, boolean chains 10, ternaries 7, loops 1 (nesting depth added 38). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-common/src/main/java/com/facebook/presto/common/type/TypeSignature.java"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"78cd4f16c986aeed820c9d5c73ee9fa68d407d27c405fa8295cb4c3a4fb5a238"}},{"ruleId":"D2","level":"warning","message":{"text":"BooleanSelectiveStreamReader.read (cognitive 69): BooleanSelectiveStreamReader.read has cognitive complexity 69 (threshold 15). Drivers by points: if/else 48, loops 8, ternaries 7, boolean chains 6 (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":"presto-orc/src/main/java/com/facebook/presto/orc/reader/BooleanSelectiveStreamReader.java"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"51375e0ecb1bad4422b334ae08b7a951ad7fff9cc098fa609cae9fcbf6a08eb9"}},{"ruleId":"D2","level":"warning","message":{"text":"MetadataReader.convertToParquetMetadata (cognitive 68): MetadataReader.convertToParquetMetadata has cognitive complexity 68 (threshold 15). Drivers by points: if/else 50, loops 7, error handling 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":"presto-parquet/src/main/java/com/facebook/presto/parquet/cache/MetadataReader.java"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"beac532dc7ce0a7ca6899dd1790bbb853630e8e39386b832ad5d93aae2479e17"}},{"ruleId":"D2","level":"warning","message":{"text":"PartitionTransforms.getColumnTransform (cognitive 67): PartitionTransforms.getColumnTransform has cognitive complexity 67 (threshold 15). Drivers by points: if/else 66, match/switch 1 (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":"presto-iceberg/src/main/java/com/facebook/presto/iceberg/PartitionTransforms.java"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f39855591460cf5f6935b59c99a015f0cc43f810dd3b7a2520cb9033295df6b"}},{"ruleId":"D2","level":"warning","message":{"text":"MapFlatSelectiveStreamReader.readNotAllNulls (cognitive 65): MapFlatSelectiveStreamReader.readNotAllNulls has cognitive complexity 65 (threshold 15). Drivers by points: if/else 47, loops 18 (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":"presto-orc/src/main/java/com/facebook/presto/orc/reader/MapFlatSelectiveStreamReader.java"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"df503ba70895d2350e2eb7f0a4b8c74e0999b4dc451b40c0cf82f379bca808c8"}},{"ruleId":"D2","level":"warning","message":{"text":"ApplyConnectorOptimization.optimize (cognitive 63): ApplyConnectorOptimization.optimize has cognitive complexity 63 (threshold 15). Drivers by points: if/else 35, loops 15, boolean chains 7, ternaries 6 (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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/ApplyConnectorOptimization.java"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"082c45eac7436890a7e272404475d7531f9bee49590838cbaf050f87d1e8b27e"}},{"ruleId":"D2","level":"warning","message":{"text":"SourcePartitionedScheduler.schedule (cognitive 63): SourcePartitionedScheduler.schedule has cognitive complexity 63 (threshold 15). Drivers by points: if/else 49, boolean chains 7, ternaries 4, match/switch 2, loops 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":"presto-main-base/src/main/java/com/facebook/presto/execution/scheduler/SourcePartitionedScheduler.java"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"87b8b95c9d39a4591a97224d1bd220e1202a6d9bd299838ebe56c79a91780957"}},{"ruleId":"D2","level":"warning","message":{"text":"PushProjectionThroughCrossJoin.apply (cognitive 62): PushProjectionThroughCrossJoin.apply has cognitive complexity 62 (threshold 15). Drivers by points: if/else 40, loops 17, boolean chains 5 (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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PushProjectionThroughCrossJoin.java"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"76d1811c5713f8518667513f98f3d12ca7eca26c078506e5829d462ae6fff6fa"}},{"ruleId":"D2","level":"warning","message":{"text":"HiveMetadata.finishInsertInternal (cognitive 62): HiveMetadata.finishInsertInternal has cognitive complexity 62 (threshold 15). Drivers by points: if/else 49, boolean chains 6, ternaries 4, loops 3 (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":"presto-hive/src/main/java/com/facebook/presto/hive/HiveMetadata.java"},"region":{"startLine":2204}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9d74184b7bbeaa63e46618e6acd8b9aada360d5f32a73b8a280bef54646ee9c"}},{"ruleId":"D2","level":"warning","message":{"text":"HistoryBasedPlanStatisticsTracker.getQueryStats (cognitive 62): HistoryBasedPlanStatisticsTracker.getQueryStats has cognitive complexity 62 (threshold 15). Drivers by points: if/else 41, boolean chains 9, loops 6, ternaries 6 (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":"presto-main-base/src/main/java/com/facebook/presto/cost/HistoryBasedPlanStatisticsTracker.java"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"d70f4e22cf0ad38b48a9df93313c05ae4c898afa9a9a4d3a0b6c1170d0a24e8c"}},{"ruleId":"D2","level":"warning","message":{"text":"Driver.processInternal (cognitive 61): Driver.processInternal has cognitive complexity 61 (threshold 15). Drivers by points: if/else 46, loops 8, boolean chains 6, error handling 1 (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":"presto-main-base/src/main/java/com/facebook/presto/operator/Driver.java"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"d03f2e817483dbd938724d810adb0fe11305d475e69b2c64ae1973c2057e30bd"}},{"ruleId":"D2","level":"warning","message":{"text":"ColumnReaderFactory.createReader (cognitive 61): ColumnReaderFactory.createReader has cognitive complexity 61 (threshold 15). Drivers by points: if/else 34, ternaries 19, boolean chains 5, match/switch 3 (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":"presto-parquet/src/main/java/com/facebook/presto/parquet/ColumnReaderFactory.java"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"6336f13526a6b50f65ff602dd7d85e203871db2b57aacea6bc87ec9a9eb92ccb"}},{"ruleId":"D2","level":"warning","message":{"text":"CaseToMapRewriter.rewriteSpecialForm (cognitive 60): CaseToMapRewriter.rewriteSpecialForm has cognitive complexity 60 (threshold 15). Drivers by points: if/else 50, loops 6, boolean chains 4 (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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/RewriteCaseToMap.java"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"5360176db7e28f818182a58848ad42d7419916300cb97d1748299a6887059764"}},{"ruleId":"D2","level":"warning","message":{"text":"ThriftMetastoreUtil.fromMetastoreApiColumnStatistics (cognitive 60): ThriftMetastoreUtil.fromMetastoreApiColumnStatistics has cognitive complexity 60 (threshold 15). Drivers by points: ternaries 52, if/else 8 (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":"presto-hive-metastore/src/main/java/com/facebook/presto/hive/metastore/thrift/ThriftMetastoreUtil.java"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b713307b301b0093e14205db1e7dc1eed707e155e59d7c25022c39eca4214fe"}},{"ruleId":"D2","level":"warning","message":{"text":"RelationPlanner.planJoin (cognitive 59): RelationPlanner.planJoin has cognitive complexity 59 (threshold 15). Drivers by points: if/else 37, boolean chains 11, loops 11 (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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/RelationPlanner.java"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"5be195a10e452ee5c0404b6e8caef78a7df80391b325892417d2e517284ec503"}},{"ruleId":"D2","level":"warning","message":{"text":"HiveUtil.parsePartitionValue (cognitive 59): HiveUtil.parsePartitionValue has cognitive complexity 59 (threshold 15). Drivers by points: if/else 59 (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":"presto-hive/src/main/java/com/facebook/presto/hive/HiveUtil.java"},"region":{"startLine":649}}}],"partialFingerprints":{"codehealthFindingId/v1":"f61d9cb9d1b335b6716195267a4651c7badf2acaffba777d6c535b224bd6264b"}},{"ruleId":"D2","level":"warning","message":{"text":"JoniRegexpFunctions.appendReplacement (cognitive 59): JoniRegexpFunctions.appendReplacement has cognitive complexity 59 (threshold 15). Drivers by points: if/else 43, loops 9, error handling 4, boolean chains 3 (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":"presto-main-base/src/main/java/com/facebook/presto/operator/scalar/JoniRegexpFunctions.java"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9cb75fbf089dbd3766f0b1de51081414d5dc374933e38a1253a00e2d98829ac"}},{"ruleId":"D2","level":"warning","message":{"text":"MongoPageSource.writeBlock (cognitive 59): MongoPageSource.writeBlock has cognitive complexity 59 (threshold 15). Drivers by points: if/else 33, loops 25, boolean chains 1 (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":"presto-mongodb/src/main/java/com/facebook/presto/mongodb/MongoPageSource.java"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"5997a5883f7f1a465465f5f206261355894da3d7d6244cd5789bec7fc5495c41"}},{"ruleId":"D2","level":"warning","message":{"text":"ListFilter.populateElementFilters (cognitive 59): ListFilter.populateElementFilters has cognitive complexity 59 (threshold 15). Drivers by points: if/else 32, loops 23, boolean chains 4 (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":"presto-orc/src/main/java/com/facebook/presto/orc/reader/ListFilter.java"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebaad8cc5961382cded2a1f7db98a3d1295a9949cf142ea28c25b79b4798a5df"}},{"ruleId":"D2","level":"warning","message":{"text":"Visitor.computeAndAssignOutputScope (cognitive 58): Visitor.computeAndAssignOutputScope has cognitive complexity 58 (threshold 15). Drivers by points: if/else 50, loops 8 (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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java"},"region":{"startLine":4441}}}],"partialFingerprints":{"codehealthFindingId/v1":"195500bf5825745a3998c542802fbf220f8317fddc2bffc6041bd04209faa43a"}},{"ruleId":"D2","level":"warning","message":{"text":"AbstractVerification.run (cognitive 58): AbstractVerification.run has cognitive complexity 58 (threshold 15). Drivers by points: if/else 35, boolean chains 14, ternaries 8, error handling 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":"presto-verifier/src/main/java/com/facebook/presto/verifier/framework/AbstractVerification.java"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"260d20b1354df0089e7f770f97b95dd6b624072dcf9b77a21b50356b0561eb17"}},{"ruleId":"D2","level":"warning","message":{"text":"LongDictionarySelectiveStreamReader.readWithFilter (cognitive 56): LongDictionarySelectiveStreamReader.readWithFilter has cognitive complexity 56 (threshold 15). Drivers by points: if/else 47, boolean chains 5, loops 4 (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":"presto-orc/src/main/java/com/facebook/presto/orc/reader/LongDictionarySelectiveStreamReader.java"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b0f56258f67ad19934cdb5058327f7e1b43c271fa0b04b409dca56ba7056fa5"}},{"ruleId":"D2","level":"warning","message":{"text":"ThriftIndexedTpchService.blockAsList (cognitive 54): ThriftIndexedTpchService.blockAsList has cognitive complexity 54 (threshold 15). Drivers by points: if/else 36, loops 14, boolean chains 4 (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":"presto-thrift-testing-server/src/main/java/com/facebook/presto/connector/thrift/server/ThriftIndexedTpchService.java"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aafd34a530c1fddd014f1141779935bf7c1fbf9bec56a7d7cd48d1bc902c8da"}},{"ruleId":"D2","level":"warning","message":{"text":"SectionExecutionFactory.createStageScheduler (cognitive 53): SectionExecutionFactory.createStageScheduler has cognitive complexity 53 (threshold 15). Drivers by points: if/else 52, boolean chains 1 (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":"presto-main-base/src/main/java/com/facebook/presto/execution/scheduler/SectionExecutionFactory.java"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d13d5ae39d791c2cae597c5c0ac60dd12680af6c2f348f422187ff5a869899c"}},{"ruleId":"D2","level":"warning","message":{"text":"MongoSession.guessFieldType (cognitive 53): MongoSession.guessFieldType has cognitive complexity 53 (threshold 15). Drivers by points: if/else 40, loops 10, boolean chains 3 (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":"presto-mongodb/src/main/java/com/facebook/presto/mongodb/MongoSession.java"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7e684228f7a7e9717d11b2a55c466feffb59bcb80f8763713e0ce91287e6c75"}},{"ruleId":"D2","level":"warning","message":{"text":"Visitor.analyzeGroupBy (cognitive 52): Visitor.analyzeGroupBy has cognitive complexity 52 (threshold 15). Drivers by points: if/else 37, loops 14, boolean chains 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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java"},"region":{"startLine":4340}}}],"partialFingerprints":{"codehealthFindingId/v1":"258fdae6ef8a4e1cfb6f87a71370f1caa3bce078a435f7d7b43027eb93145d0c"}},{"ruleId":"D2","level":"warning","message":{"text":"Rewriter.visitJoin (cognitive 52): Rewriter.visitJoin has cognitive complexity 52 (threshold 15). Drivers by points: if/else 36, boolean chains 8, ternaries 6, loops 1, match/switch 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PredicatePushDown.java"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8afb38cc74268e94e58a19dda42f367eb2fcc68697cbd6b624a2ae0c936f0f9"}},{"ruleId":"D2","level":"warning","message":{"text":"TDigest.getCdf (cognitive 51): TDigest.getCdf has cognitive complexity 51 (threshold 15). Drivers by points: if/else 45, loops 4, 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":"presto-main-base/src/main/java/com/facebook/presto/tdigest/TDigest.java"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"59ebd0aba7170cb9ec660555de6477d5a2d50458367aabc5028d336ffc338c31"}},{"ruleId":"D2","level":"warning","message":{"text":"LongDictionaryBatchStreamReader.readBlock (cognitive 51): LongDictionaryBatchStreamReader.readBlock has cognitive complexity 51 (threshold 15). Drivers by points: if/else 38, loops 12, 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":"presto-orc/src/main/java/com/facebook/presto/orc/reader/LongDictionaryBatchStreamReader.java"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"0deb1a89f85838494434071041604d15214e95e56ee22b4a9e7c9359d829d3c6"}},{"ruleId":"D2","level":"warning","message":{"text":"ExpressionConverter.toIcebergExpression (cognitive 50): ExpressionConverter.toIcebergExpression has cognitive complexity 50 (threshold 15). Drivers by points: if/else 38, boolean chains 6, ternaries 4, loops 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":"presto-iceberg/src/main/java/com/facebook/presto/iceberg/ExpressionConverter.java"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"55ead872b6ddcf46bad578343c9ad7b087d4c1bd6a14fe98f24a259d6d2f6a6d"}},{"ruleId":"D2","level":"warning","message":{"text":"LongDirectSelectiveStreamReader.readWithFilter (cognitive 50): LongDirectSelectiveStreamReader.readWithFilter has cognitive complexity 50 (threshold 15). Drivers by points: if/else 37, loops 8, boolean chains 5 (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":"presto-orc/src/main/java/com/facebook/presto/orc/reader/LongDirectSelectiveStreamReader.java"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"960608c6df7952b08f59b8b9f0fd409d912610033fc896c4137587abea23f57b"}},{"ruleId":"D2","level":"warning","message":{"text":"StructSelectiveStreamReader.read (cognitive 50): StructSelectiveStreamReader.read has cognitive complexity 50 (threshold 15). Drivers by points: if/else 48, loops 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":"presto-orc/src/main/java/com/facebook/presto/orc/reader/StructSelectiveStreamReader.java"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"48f672427d49e1a640a6395f4130f743696507be657ab73ff8ab5d4d34099855"}},{"ruleId":"D2","level":"warning","message":{"text":"BingTileFunctions.bingTilesAround (cognitive 49): BingTileFunctions.bingTilesAround has cognitive complexity 49 (threshold 15). Drivers by points: if/else 34, loops 12, ternaries 3 (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":"presto-main-base/src/main/java/com/facebook/presto/geospatial/BingTileFunctions.java"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"d90bc5634bc4313c02172899a4a8df900acd6f86bf0f687fd9ea0592ccdaadf0"}},{"ruleId":"D2","level":"warning","message":{"text":"ListSelectiveStreamReader.readNotAllNulls (cognitive 49): ListSelectiveStreamReader.readNotAllNulls has cognitive complexity 49 (threshold 15). Drivers by points: if/else 30, boolean chains 11, loops 8 (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":"presto-orc/src/main/java/com/facebook/presto/orc/reader/ListSelectiveStreamReader.java"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"188966b1f19e5ff22c25881dec31a5106f43963a0ba30e59b381d3e1ed1e5b7e"}},{"ruleId":"D2","level":"warning","message":{"text":"Visitor.visitTable (cognitive 48): Visitor.visitTable has cognitive complexity 48 (threshold 15). Drivers by points: if/else 33, loops 9, boolean chains 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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java"},"region":{"startLine":2350}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c2d57d20a1f23f31b2fcb6ee7dc22c4a1f776a917a78ffb5b4be40d9a61f2de"}},{"ruleId":"D2","level":"warning","message":{"text":"BytecodeUtils.generateInvocation (cognitive 47): BytecodeUtils.generateInvocation has cognitive complexity 47 (threshold 15). Drivers by points: match/switch 22, if/else 16, boolean chains 5, loops 4 (nesting depth added 24). 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":"presto-main-base/src/main/java/com/facebook/presto/sql/gen/BytecodeUtils.java"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a42966a9695166c84bb24873252b40ed6eb226720b16d5e4f80bc424156e810"}},{"ruleId":"D2","level":"warning","message":{"text":"Parser.parseArguments (cognitive 47): Parser.parseArguments has cognitive complexity 47 (threshold 15). Drivers by points: if/else 40, boolean chains 5, loops 1, ternaries 1 (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":"presto-main-base/src/main/java/com/facebook/presto/operator/scalar/annotations/ParametricScalarImplementation.java"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"30b7de78b9404e30269cae7938c3c6e0a1bc34884290f51ba4ee9e30bb74d9d4"}},{"ruleId":"D2","level":"warning","message":{"text":"StructuredColumnMismatchResolver.resolveResultMismatch (cognitive 47): StructuredColumnMismatchResolver.resolveResultMismatch has cognitive complexity 47 (threshold 15). Drivers by points: if/else 43, boolean chains 3, loops 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":"presto-verifier/src/main/java/com/facebook/presto/verifier/resolver/StructuredColumnMismatchResolver.java"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a9043f31900476644d0966b23a9769a1045bdff686c7fb1358b6c29982441a0"}},{"ruleId":"D2","level":"warning","message":{"text":"FixJsonDataUtils.fixValue (cognitive 46): FixJsonDataUtils.fixValue has cognitive complexity 46 (threshold 15). Drivers by points: if/else 35, loops 9, boolean chains 1, 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":"presto-client/src/main/java/com/facebook/presto/client/FixJsonDataUtils.java"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"445cd1d5e89495d1f752e7062a589287407dd70a7abc0528834d506a5dc362f7"}},{"ruleId":"D2","level":"warning","message":{"text":"DiscoveryNodeManager.refreshNodesInternal (cognitive 46): DiscoveryNodeManager.refreshNodesInternal has cognitive complexity 46 (threshold 15). Drivers by points: if/else 27, loops 13, boolean chains 3, match/switch 3 (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":"presto-main/src/main/java/com/facebook/presto/metadata/DiscoveryNodeManager.java"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e0285724562d4f964b9cc8450482eed3740d40ba7e1b43415ca536128c93af1"}},{"ruleId":"D2","level":"warning","message":{"text":"QuerySpecificationRewriter.visitQuerySpecification (cognitive 45): QuerySpecificationRewriter.visitQuerySpecification has cognitive complexity 45 (threshold 15). Drivers by points: if/else 37, 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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/MaterializedViewQueryOptimizer.java"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dc10cbcf297dda404b05aeed3d85f573e2994946448036340e71a3df5f57431"}},{"ruleId":"D2","level":"warning","message":{"text":"PullConstantProjectionAboveExchange.apply (cognitive 45): PullConstantProjectionAboveExchange.apply has cognitive complexity 45 (threshold 15). Drivers by points: if/else 31, loops 13, boolean chains 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PullConstantProjectionAboveExchange.java"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"8500c08b5568b9fa86b80108797a6a8f892cb6d59a5ec874f7096b5ed4838206"}},{"ruleId":"D2","level":"warning","message":{"text":"TypeSignature.parseTypeSignature (cognitive 45): TypeSignature.parseTypeSignature has cognitive complexity 45 (threshold 15). Drivers by points: if/else 36, boolean chains 4, ternaries 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":"presto-common/src/main/java/com/facebook/presto/common/type/TypeSignature.java"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"05cb6b01eceb228d1346a5987f6c9faaf5244b9ee2c62a7ca76ceb857f7b1765"}},{"ruleId":"D2","level":"warning","message":{"text":"GlueStatisticsConverter.fromGlueColumnStatistics (cognitive 45): GlueStatisticsConverter.fromGlueColumnStatistics has cognitive complexity 45 (threshold 15). Drivers by points: ternaries 44, match/switch 1 (nesting depth added 22). 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":"presto-hive-metastore/src/main/java/com/facebook/presto/hive/metastore/glue/converter/GlueStatisticsConverter.java"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dd529a8804dada2fdfcdb76295b11d362b18a1c9112e00290d967bcaced0a86"}},{"ruleId":"D2","level":"warning","message":{"text":"IcebergPageSourceProvider.createPageSource (cognitive 45): IcebergPageSourceProvider.createPageSource has cognitive complexity 45 (threshold 15). Drivers by points: if/else 26, ternaries 9, loops 6, 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":"presto-iceberg/src/main/java/com/facebook/presto/iceberg/IcebergPageSourceProvider.java"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ac72ed590ce6b4c84f627e995fcd527ce03daf38bba4b3e89b25d9b3590f15d"}},{"ruleId":"D2","level":"warning","message":{"text":"Visitor.analyzeCopartitioning (cognitive 44): Visitor.analyzeCopartitioning has cognitive complexity 44 (threshold 15). Drivers by points: if/else 33, loops 11 (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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java"},"region":{"startLine":2235}}}],"partialFingerprints":{"codehealthFindingId/v1":"860132b726ef7253edb8f18fcdd51a99ffa808bc2671c9461899809beea9f6f5"}},{"ruleId":"D2","level":"warning","message":{"text":"1.visitQuerySpecification (cognitive 44): 1.visitQuerySpecification has cognitive complexity 44 (threshold 15). Drivers by points: loops 30, if/else 14 (nesting depth added 27). 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":"presto-parser/src/main/java/com/facebook/presto/sql/TreePrinter.java"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5800aedcf166910261bbfc58ea1ab2fa39d96a0b90eb6f45a315288c22f865e"}},{"ruleId":"D2","level":"warning","message":{"text":"SpillableFinalOnlyGroupedAccumulator.addIntermediate (cognitive 44): SpillableFinalOnlyGroupedAccumulator.addIntermediate has cognitive complexity 44 (threshold 15). Drivers by points: loops 22, if/else 21, boolean chains 1 (nesting depth added 29). 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":"presto-main-base/src/main/java/com/facebook/presto/operator/aggregation/GenericAccumulatorFactory.java"},"region":{"startLine":892}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1df7ff5204a62a3bc7882fe7099115821cd45c4043d232a964ed3b4e71ac8fd"}},{"ruleId":"D2","level":"warning","message":{"text":"SliceDictionaryBatchStreamReader.readBlock (cognitive 44): SliceDictionaryBatchStreamReader.readBlock has cognitive complexity 44 (threshold 15). Drivers by points: if/else 37, loops 6, boolean chains 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":"presto-orc/src/main/java/com/facebook/presto/orc/reader/SliceDictionaryBatchStreamReader.java"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ef5cd30b01dde5fae5f579b84ab1bb941875d117c8afb783a26e26c6c13ca54"}},{"ruleId":"D2","level":"warning","message":{"text":"CassandraClusteringPredicatesExtractor.getClusteringKeysSet (cognitive 43): CassandraClusteringPredicatesExtractor.getClusteringKeysSet has cognitive complexity 43 (threshold 15). Drivers by points: if/else 28, ternaries 8, loops 4, boolean chains 3 (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":"presto-cassandra/src/main/java/com/facebook/presto/cassandra/CassandraClusteringPredicatesExtractor.java"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"9639465a551e7ca3219cf78f85f74e2f9a28d4e5b5fccbbb67dfe234c3d88036"}},{"ruleId":"D2","level":"warning","message":{"text":"HistogramCalculator.calculateFilterFactor (cognitive 43): HistogramCalculator.calculateFilterFactor has cognitive complexity 43 (threshold 15). Drivers by points: if/else 26, boolean chains 13, 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":"presto-spi/src/main/java/com/facebook/presto/spi/statistics/HistogramCalculator.java"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"326e22bca3d21698316f883bf1d68af5ef8ad98a04307f8b001b230e65fd2faf"}},{"ruleId":"D2","level":"warning","message":{"text":"CreateTableTask.internalExecute (cognitive 43): CreateTableTask.internalExecute has cognitive complexity 43 (threshold 15). Drivers by points: if/else 35, error handling 4, boolean chains 3, loops 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":"presto-main-base/src/main/java/com/facebook/presto/execution/CreateTableTask.java"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac63819e029473912e6969c0050cab006bd41fd9cca03161c9e4ec9eb95f7733"}},{"ruleId":"D2","level":"warning","message":{"text":"OrcSelectiveRecordReader.getNextPage (cognitive 43): OrcSelectiveRecordReader.getNextPage has cognitive complexity 43 (threshold 15). Drivers by points: if/else 33, loops 4, 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":"presto-orc/src/main/java/com/facebook/presto/orc/OrcSelectiveRecordReader.java"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5794627ad505121758f887ff2319ff07457c1dfabc1b0a2b74de8fc55ad573e"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeIndexJoinRewriter.visitJoin (cognitive 42): NativeIndexJoinRewriter.visitJoin has cognitive complexity 42 (threshold 15). Drivers by points: if/else 33, boolean chains 5, loops 3, match/switch 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/IndexJoinOptimizer.java"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4d26028b5dc17dc6c1a20a6c219c92865d3c94c48ab02444db5099ee69f14d8"}},{"ruleId":"D2","level":"warning","message":{"text":"PrometheusQueryResponse.parsePrometheusQueryResponse (cognitive 42): PrometheusQueryResponse.parsePrometheusQueryResponse has cognitive complexity 42 (threshold 15). Drivers by points: if/else 33, loops 6, match/switch 2, boolean chains 1 (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":"presto-prometheus/src/main/java/com/facebook/presto/plugin/prometheus/PrometheusQueryResponse.java"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe9c688ad25444c58965699eb67ac807ae3772e20954abfb31ed3b28cddc5897"}},{"ruleId":"D2","level":"warning","message":{"text":"IcebergPageSourceProvider.createParquetPageSource (cognitive 42): IcebergPageSourceProvider.createParquetPageSource has cognitive complexity 42 (threshold 15). Drivers by points: if/else 35, error handling 3, boolean chains 2, 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":"presto-iceberg/src/main/java/com/facebook/presto/iceberg/IcebergPageSourceProvider.java"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd91bdee122d07277fd36c627d116dca9c96efa6f5c8550708207e1967894e50"}},{"ruleId":"D2","level":"warning","message":{"text":"FilterRowExpressionStatsCalculatingVisitor.visitCall (cognitive 42): FilterRowExpressionStatsCalculatingVisitor.visitCall has cognitive complexity 42 (threshold 15). Drivers by points: if/else 31, ternaries 7, boolean chains 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":"presto-main-base/src/main/java/com/facebook/presto/cost/FilterStatsCalculator.java"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d6f0265b4e2942a9061a67de016f49b21ff158cc5d093aec569ce70a511e04a"}},{"ruleId":"D2","level":"warning","message":{"text":"MapFlatBatchStreamReader.readBlock (cognitive 42): MapFlatBatchStreamReader.readBlock has cognitive complexity 42 (threshold 15). Drivers by points: if/else 25, loops 17 (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":"presto-orc/src/main/java/com/facebook/presto/orc/reader/MapFlatBatchStreamReader.java"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"645d2234f478da16b56d48df16132410f04496a2d0ed537f819b57499a7e4c50"}},{"ruleId":"D2","level":"warning","message":{"text":"SliceDictionarySelectiveReader.readWithFilter (cognitive 42): SliceDictionarySelectiveReader.readWithFilter has cognitive complexity 42 (threshold 15). Drivers by points: if/else 26, loops 5, boolean chains 4, match/switch 4, ternaries 3 (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":"presto-orc/src/main/java/com/facebook/presto/orc/reader/SliceDictionarySelectiveReader.java"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"3919e3d7f98c7cfb2116524b4eb8842cbea3fe0f5830de15ff9d5109b167c3cf"}},{"ruleId":"D2","level":"warning","message":{"text":"PlanFragmenterUtils.extractPartitionValues (cognitive 41): PlanFragmenterUtils.extractPartitionValues has cognitive complexity 41 (threshold 15). Drivers by points: if/else 25, loops 8, ternaries 5, boolean chains 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/PlanFragmenterUtils.java"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"6529952fae99f91b4cad662d38e60627e18b8da6a8b2aaa9525063ec43c6cf8e"}},{"ruleId":"D2","level":"warning","message":{"text":"PinotColumnUtils.getPrestoTypeFromPinotType (cognitive 41): PinotColumnUtils.getPrestoTypeFromPinotType has cognitive complexity 41 (threshold 15). Drivers by points: if/else 33, boolean chains 6, match/switch 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":"presto-pinot-toolkit/src/main/java/com/facebook/presto/pinot/PinotColumnUtils.java"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e9c3f2f251ea7ead7ba7877480d639438e10ca0c2a846f1ff0434fa7bd6458a"}},{"ruleId":"D2","level":"warning","message":{"text":"ArrowBlockBuilder.assignBlockFromValueVector (cognitive 41): ArrowBlockBuilder.assignBlockFromValueVector has cognitive complexity 41 (threshold 15). Drivers by points: if/else 41 (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":"presto-common-arrow/src/main/java/com/facebook/plugin/arrow/ArrowBlockBuilder.java"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bb1a258bce0d9453855c126ff375d7f39920d65fff650001a6595471fc13d33"}},{"ruleId":"D2","level":"warning","message":{"text":"ColumnIOConverter.constructField (cognitive 41): ColumnIOConverter.constructField has cognitive complexity 41 (threshold 15). Drivers by points: if/else 38, loops 3 (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":"presto-parquet/src/main/java/org/apache/parquet/io/ColumnIOConverter.java"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"aad658c2568ef02fd519ac2acc5203e11185b78a63ebffe58adab43cc3f34a23"}},{"ruleId":"D2","level":"warning","message":{"text":"Rewriter.getDynamicFilterClauses (cognitive 40): Rewriter.getDynamicFilterClauses has cognitive complexity 40 (threshold 15). Drivers by points: if/else 37, loops 2, boolean chains 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PredicatePushDown.java"},"region":{"startLine":730}}}],"partialFingerprints":{"codehealthFindingId/v1":"b644bd374660aa9e66f62f7bf779882b27978eb27bb9326dd5f8b1f089dabba9"}},{"ruleId":"D2","level":"warning","message":{"text":"CassandraType.getCassandraType (cognitive 40): CassandraType.getCassandraType has cognitive complexity 40 (threshold 15). Drivers by points: if/else 40 (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":"presto-cassandra/src/main/java/com/facebook/presto/cassandra/CassandraType.java"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0dcb842ad5397c879f908a9f1979241be91eaac146c75a6d89ab77aa2d187b6"}},{"ruleId":"D2","level":"warning","message":{"text":"Console.runConsole (cognitive 40): Console.runConsole has cognitive complexity 40 (threshold 15). Drivers by points: if/else 28, loops 7, match/switch 3, boolean chains 1, error handling 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":"presto-cli/src/main/java/com/facebook/presto/cli/Console.java"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e662bae8ddd1ddc7c47f877f631de3a8e2cf2a4f89334e7f5bddeb5fc143d8e"}},{"ruleId":"D2","level":"warning","message":{"text":"HiveSplitManager.computePartitionMetadata (cognitive 40): HiveSplitManager.computePartitionMetadata has cognitive complexity 40 (threshold 15). Drivers by points: if/else 34, 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":"presto-hive/src/main/java/com/facebook/presto/hive/HiveSplitManager.java"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef209c59b06567bf1875612440d0721ab09b1a2f14acf995d7ef10db3878fcae"}},{"ruleId":"D2","level":"warning","message":{"text":"TopologyAwareNodeSelector.computeAssignments (cognitive 40): TopologyAwareNodeSelector.computeAssignments has cognitive complexity 40 (threshold 15). Drivers by points: if/else 30, loops 9, 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":"presto-main-base/src/main/java/com/facebook/presto/execution/scheduler/nodeSelection/TopologyAwareNodeSelector.java"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"cddf83dda67fef3710bed614f6d2fa68f90b967f0ab322704086bd66dd1f6742"}},{"ruleId":"D2","level":"warning","message":{"text":"ArrayDistinctFunction.bigintDistinct (cognitive 40): ArrayDistinctFunction.bigintDistinct has cognitive complexity 40 (threshold 15). Drivers by points: if/else 27, loops 12, 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":"presto-main-base/src/main/java/com/facebook/presto/operator/scalar/ArrayDistinctFunction.java"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"68520ff0363ecb7aa041f8e62aad0b3504a1dd52cf8d9a4f02b7faa1fb638116"}},{"ruleId":"D2","level":"warning","message":{"text":"PagesIndexOrdering.quickSort (cognitive 40): PagesIndexOrdering.quickSort has cognitive complexity 40 (threshold 15). Drivers by points: if/else 27, loops 10, boolean chains 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":"presto-main-base/src/main/java/com/facebook/presto/operator/PagesIndexOrdering.java"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"af4b381dcb0f0584a55396bb2f2e9eb3f5644374fdbbb8678f5b1bd0d51469b4"}},{"ruleId":"D2","level":"warning","message":{"text":"TupleDomainParquetPredicate.getDomain (cognitive 40): TupleDomainParquetPredicate.getDomain has cognitive complexity 40 (threshold 15). Drivers by points: if/else 24, loops 10, boolean chains 6 (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":"presto-parquet/src/main/java/com/facebook/presto/parquet/predicate/TupleDomainParquetPredicate.java"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fcbcb8e61cb8df6ec03d4cb7557640f56c6cc6aaedc5e36c348341111284138"}},{"ruleId":"D2","level":"warning","message":{"text":"PrestoSparkQueryExecutionFactory.create (cognitive 40): PrestoSparkQueryExecutionFactory.create has cognitive complexity 40 (threshold 15). Drivers by points: if/else 29, error handling 8, 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":"presto-spark-base/src/main/java/com/facebook/presto/spark/PrestoSparkQueryExecutionFactory.java"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"772cf40a488d8c4f58dc70aa9a9f41ef9e6224f58e814e37fcd212a404343b45"}},{"ruleId":"D2","level":"warning","message":{"text":"LiteralEncoder.toExpression (cognitive 39): LiteralEncoder.toExpression has cognitive complexity 39 (threshold 15). Drivers by points: if/else 37, boolean chains 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/LiteralEncoder.java"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"220e2f09532fc9660ad88fd2d2b85d65f4ef64e8310477146045190488e9d10a"}},{"ruleId":"D2","level":"warning","message":{"text":"MongoPageSink.getObjectValue (cognitive 39): MongoPageSink.getObjectValue has cognitive complexity 39 (threshold 15). Drivers by points: if/else 28, loops 9, error handling 2 (nesting depth added 10). 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":"presto-mongodb/src/main/java/com/facebook/presto/mongodb/MongoPageSink.java"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"336c3bbd14c68bdedc28f0e210b7ba226687125bc3258a8b566be7e69fcfeeb9"}},{"ruleId":"D2","level":"warning","message":{"text":"PinotSegmentPageSource.writeArrayBlock (cognitive 39): PinotSegmentPageSource.writeArrayBlock has cognitive complexity 39 (threshold 15). Drivers by points: loops 29, if/else 8, match/switch 2 (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":"presto-pinot-toolkit/src/main/java/com/facebook/presto/pinot/PinotSegmentPageSource.java"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"78850dd87dd0d70a18a7ac734b27e9eaa64b1dd567d0eb895455e9641937c4a0"}},{"ruleId":"D2","level":"warning","message":{"text":"PlanRemoteProjections.dedupVariables (cognitive 38): PlanRemoteProjections.dedupVariables has cognitive complexity 38 (threshold 15). Drivers by points: if/else 18, loops 13, ternaries 6, boolean chains 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PlanRemoteProjections.java"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"29f41f754bd1c6869772d9c71b2981ad20e3a6c7dff01033675668e709bd7e43"}},{"ruleId":"D2","level":"warning","message":{"text":"Rewriter.visitUnion (cognitive 38): Rewriter.visitUnion has cognitive complexity 38 (threshold 15). Drivers by points: if/else 19, loops 13, boolean chains 6 (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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/AddExchanges.java"},"region":{"startLine":1483}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd89b6fb23b4f375f64844d3e4ef97f154da75a255062b44e2cbe7e4e93f107b"}},{"ruleId":"D2","level":"warning","message":{"text":"Rewriter.visitFilter (cognitive 38): Rewriter.visitFilter has cognitive complexity 38 (threshold 15). Drivers by points: if/else 20, ternaries 10, boolean chains 7, 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/ReplaceConstantVariableReferencesWithConstants.java"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f263f5891c88900fd11e201da92036dde00ee125a215d6ba0bab52a38919f6f"}},{"ruleId":"D2","level":"warning","message":{"text":"ParquetPageSourceFactory.createParquetPageSource (cognitive 38): ParquetPageSourceFactory.createParquetPageSource has cognitive complexity 38 (threshold 15). Drivers by points: if/else 25, ternaries 4, boolean chains 3, error handling 3, loops 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":"presto-hive/src/main/java/com/facebook/presto/hive/parquet/ParquetPageSourceFactory.java"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"322c31fd9c668ff5b33ee21e27b9f91d395ac63363dda03cec03ba035c5a3ba1"}},{"ruleId":"D2","level":"warning","message":{"text":"JsonUtil.parseJsonToSingleRowBlock (cognitive 38): JsonUtil.parseJsonToSingleRowBlock has cognitive complexity 38 (threshold 15). Drivers by points: if/else 31, loops 7 (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":"presto-main-base/src/main/java/com/facebook/presto/util/JsonUtil.java"},"region":{"startLine":1317}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd8e8f5de439541c0c8a78bbb6f595c41ea7a3e83365561bdc53e9f1e9e15a95"}},{"ruleId":"D2","level":"warning","message":{"text":"AbstractLongSelectiveStreamReader.buildOutputBlockView (cognitive 38): AbstractLongSelectiveStreamReader.buildOutputBlockView has cognitive complexity 38 (threshold 15). Drivers by points: if/else 21, loops 6, ternaries 6, boolean chains 5 (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":"presto-orc/src/main/java/com/facebook/presto/orc/reader/AbstractLongSelectiveStreamReader.java"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"43314e24cd35f6262fe6db145c9e670aa951beed8d5aea3d89f9784560868191"}},{"ruleId":"D2","level":"warning","message":{"text":"ByteSelectiveStreamReader.readWithFilter (cognitive 38): ByteSelectiveStreamReader.readWithFilter has cognitive complexity 38 (threshold 15). Drivers by points: if/else 29, 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":"presto-orc/src/main/java/com/facebook/presto/orc/reader/ByteSelectiveStreamReader.java"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"68358aa6ae6011037bc63acb915d9844d4028999cf04dac98fdbb4a6cca4d2ab"}},{"ruleId":"D2","level":"warning","message":{"text":"DoubleSelectiveStreamReader.readWithFilter (cognitive 38): DoubleSelectiveStreamReader.readWithFilter has cognitive complexity 38 (threshold 15). Drivers by points: if/else 29, 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":"presto-orc/src/main/java/com/facebook/presto/orc/reader/DoubleSelectiveStreamReader.java"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0bd3013b875a1628b1f88f636c1811218b5e96d1187e1177c3f03b98f75d5e0"}},{"ruleId":"D2","level":"warning","message":{"text":"FloatSelectiveStreamReader.readWithFilter (cognitive 38): FloatSelectiveStreamReader.readWithFilter has cognitive complexity 38 (threshold 15). Drivers by points: if/else 29, 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":"presto-orc/src/main/java/com/facebook/presto/orc/reader/FloatSelectiveStreamReader.java"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"2745a5ca287c9407f3d1e04b2a0a0d9a37110aa6826a21790e1a826e6a78edeb"}},{"ruleId":"D2","level":"warning","message":{"text":"LongDecimalSelectiveStreamReader.readWithFilter (cognitive 38): LongDecimalSelectiveStreamReader.readWithFilter has cognitive complexity 38 (threshold 15). Drivers by points: if/else 29, 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":"presto-orc/src/main/java/com/facebook/presto/orc/reader/LongDecimalSelectiveStreamReader.java"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"9821a886bcbc3186320ff78bf608ecfec882d848dbbeeee109ea5441484b911e"}},{"ruleId":"D2","level":"warning","message":{"text":"ShortDecimalSelectiveStreamReader.readWithFilter (cognitive 38): ShortDecimalSelectiveStreamReader.readWithFilter has cognitive complexity 38 (threshold 15). Drivers by points: if/else 29, 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":"presto-orc/src/main/java/com/facebook/presto/orc/reader/ShortDecimalSelectiveStreamReader.java"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"215ab23bd9ad123a4a431b68e709cf3bc91d2a44e73ada1a85cc899b8f8164a5"}},{"ruleId":"D2","level":"warning","message":{"text":"SliceDirectBatchStreamReader.readBlock (cognitive 38): SliceDirectBatchStreamReader.readBlock has cognitive complexity 38 (threshold 15). Drivers by points: if/else 34, loops 3, 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":"presto-orc/src/main/java/com/facebook/presto/orc/reader/SliceDirectBatchStreamReader.java"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"b833950408e4d811052c9fc21c32a9627791cd76c38e6e0ae9ea3f165e431843"}},{"ruleId":"D2","level":"warning","message":{"text":"TimestampSelectiveStreamReader.readWithFilter (cognitive 38): TimestampSelectiveStreamReader.readWithFilter has cognitive complexity 38 (threshold 15). Drivers by points: if/else 29, 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":"presto-orc/src/main/java/com/facebook/presto/orc/reader/TimestampSelectiveStreamReader.java"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"2282638ea35934d07ef9f5ba2429df55eaa66176f25b9ad861e4efbbcd3e6966"}},{"ruleId":"D2","level":"warning","message":{"text":"RewritingVisitor.visitFunctionCall (cognitive 37): RewritingVisitor.visitFunctionCall has cognitive complexity 37 (threshold 15). Drivers by points: if/else 34, boolean chains 3 (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":"presto-parser/src/main/java/com/facebook/presto/sql/tree/ExpressionTreeRewriter.java"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dd890359d6b7bb5b8d866576d7ce978ace1c197f946060e79a1cf7d2f2dbfa5"}},{"ruleId":"D2","level":"warning","message":{"text":"AlignedTablePrinter.printRows (cognitive 37): AlignedTablePrinter.printRows has cognitive complexity 37 (threshold 15). Drivers by points: loops 16, if/else 15, ternaries 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":"presto-cli/src/main/java/com/facebook/presto/cli/AlignedTablePrinter.java"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"89dbde442eb6b1739cd749b564e562c2ed74451568d39aed0d9c3fc8de579c2d"}},{"ruleId":"D2","level":"warning","message":{"text":"DeltaPageSourceProvider.createParquetPageSource (cognitive 37): DeltaPageSourceProvider.createParquetPageSource has cognitive complexity 37 (threshold 15). Drivers by points: if/else 27, boolean chains 4, error handling 3, 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":"presto-delta/src/main/java/com/facebook/presto/delta/DeltaPageSourceProvider.java"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"33ef3adbe78568b611b11afce17bc944edaf5f1c6c5be6a1b6d195c857fd8bda"}},{"ruleId":"D2","level":"warning","message":{"text":"TypeCoercer.coerceTypeBase (cognitive 37): TypeCoercer.coerceTypeBase has cognitive complexity 37 (threshold 15). Drivers by points: match/switch 27, if/else 10 (nesting depth added 19). 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":"presto-main-base/src/main/java/com/facebook/presto/type/TypeCoercer.java"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a47c4a92ad2ed5fed9d3cbb2ba690e6a9388b664ea4b81af143f14384404591"}},{"ruleId":"D2","level":"warning","message":{"text":"PartitioningUtils.translatePartitioningRowExpression (cognitive 36): PartitioningUtils.translatePartitioningRowExpression has cognitive complexity 36 (threshold 15). Drivers by points: if/else 29, loops 5, 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PartitioningUtils.java"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2b53926614b81b24c919c30b510a06e6c8ae209bf9c2ffac7e20633db7aabe7"}},{"ruleId":"D2","level":"warning","message":{"text":"AggregatedOrcPageSource.writeMinMax (cognitive 36): AggregatedOrcPageSource.writeMinMax has cognitive complexity 36 (threshold 15). Drivers by points: if/else 23, ternaries 12, match/switch 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":"presto-hive/src/main/java/com/facebook/presto/hive/orc/AggregatedOrcPageSource.java"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"f756500adcabbdb2db6a154eb6227a18ee4e88bbabffc3cf4047357a63e9b8e7"}},{"ruleId":"D2","level":"warning","message":{"text":"ArrayDistinctFunction.distinct (cognitive 36): ArrayDistinctFunction.distinct has cognitive complexity 36 (threshold 15). Drivers by points: if/else 16, loops 12, ternaries 4, boolean chains 2, error handling 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":"presto-main-base/src/main/java/com/facebook/presto/operator/scalar/ArrayDistinctFunction.java"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdb3e01d7bdbf1d992e795aa7bb34c8784aeade5254625229df3c344f994919d"}},{"ruleId":"D2","level":"warning","message":{"text":"SliceDirectSelectiveStreamReader.readNoFilter (cognitive 36): SliceDirectSelectiveStreamReader.readNoFilter has cognitive complexity 36 (threshold 15). Drivers by points: if/else 34, 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":"presto-orc/src/main/java/com/facebook/presto/orc/reader/SliceDirectSelectiveStreamReader.java"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"26845c2357a7ac710bfb40e245a99df72a53353bff680df6d5159739d6db7ab6"}},{"ruleId":"D2","level":"warning","message":{"text":"PushSemiJoinThroughUnion.pushThroughUnion (cognitive 35): PushSemiJoinThroughUnion.pushThroughUnion has cognitive complexity 35 (threshold 15). Drivers by points: if/else 23, loops 10, boolean chains 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PushSemiJoinThroughUnion.java"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"351fe3021d56e656d6d3061dc1ba96128709bdc9c8b19aa0e951b3275bc72b98"}},{"ruleId":"D2","level":"warning","message":{"text":"Visitor.visitShowCreate (cognitive 35): Visitor.visitShowCreate has cognitive complexity 35 (threshold 15). Drivers by points: if/else 30, ternaries 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":"presto-main-base/src/main/java/com/facebook/presto/sql/rewrite/ShowQueriesRewrite.java"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dcfe4a109829b287789b23ccee22d7b3594d8c032a0e2f3d4f77e9dacda5b3e"}},{"ruleId":"D2","level":"warning","message":{"text":"Analyzer.process (cognitive 35): Analyzer.process has cognitive complexity 35 (threshold 15). Drivers by points: if/else 31, loops 3, boolean chains 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":"presto-parser/src/main/java/com/facebook/presto/sql/parser/ErrorHandler.java"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e8d0997cacf9d3ba71de24d6d0d7b22fcc453ec258b921b805242d59073d049"}},{"ruleId":"D2","level":"warning","message":{"text":"TpchQuery1Operator.filterAndProjectRowOriented (cognitive 35): TpchQuery1Operator.filterAndProjectRowOriented has cognitive complexity 35 (threshold 15). Drivers by points: if/else 32, boolean chains 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":"presto-benchmark/src/main/java/com/facebook/presto/benchmark/HandTpchQuery1.java"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"2843215ed206b5c4eb628ec8fa802b3bbd66747ea241edd48509c3e203fc6222"}},{"ruleId":"D2","level":"warning","message":{"text":"Rewriter.isAggregationPushdownSupported (cognitive 35): Rewriter.isAggregationPushdownSupported has cognitive complexity 35 (threshold 15). Drivers by points: if/else 27, boolean chains 4, match/switch 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":"presto-hive/src/main/java/com/facebook/presto/hive/rule/HivePartialAggregationPushdown.java"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"08841e24b24b9e45b0af2606f49d68642de7071fdee2a5477f412e9ff9197ca2"}},{"ruleId":"D2","level":"warning","message":{"text":"SliceDirectSelectiveStreamReader.prepareForNextRead (cognitive 35): SliceDirectSelectiveStreamReader.prepareForNextRead has cognitive complexity 35 (threshold 15). Drivers by points: if/else 27, loops 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":"presto-orc/src/main/java/com/facebook/presto/orc/reader/SliceDirectSelectiveStreamReader.java"},"region":{"startLine":672}}}],"partialFingerprints":{"codehealthFindingId/v1":"10e48a5e3bf236f933862130a1bd7f17c8d43d7982b022b42ed9dc686343ade9"}},{"ruleId":"D2","level":"warning","message":{"text":"Visitor.visitInPredicate (cognitive 34): Visitor.visitInPredicate has cognitive complexity 34 (threshold 15). Drivers by points: if/else 21, loops 9, boolean chains 3, 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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/RefreshMaterializedViewPredicateAnalyzer.java"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"934cc7eb4c0f764fafcaf6f0e2837483b3f5c38ff3597b2415055b8bfcf81769"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultIndexJoinRewriter.visitJoin (cognitive 34): DefaultIndexJoinRewriter.visitJoin has cognitive complexity 34 (threshold 15). Drivers by points: if/else 27, boolean chains 5, match/switch 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/IndexJoinOptimizer.java"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"6180b4c385d430f30890386e9dab8e7ef9f6698e96cd2e40a42072bd9e5ade46"}},{"ruleId":"D2","level":"warning","message":{"text":"Visitor.visitCall (cognitive 34): Visitor.visitCall has cognitive complexity 34 (threshold 15). Drivers by points: if/else 28, boolean chains 3, 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/RowExpressionInterpreter.java"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"500b5ab2e7c7c57aa85c8d0aad98e3557740299252d7fd489c8982af79c40fe7"}},{"ruleId":"D2","level":"warning","message":{"text":"UnscaledDecimal128Arithmetic.shiftRightArray8 (cognitive 34): UnscaledDecimal128Arithmetic.shiftRightArray8 has cognitive complexity 34 (threshold 15). Drivers by points: if/else 25, loops 4, ternaries 4, 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":"presto-common/src/main/java/com/facebook/presto/common/type/UnscaledDecimal128Arithmetic.java"},"region":{"startLine":984}}}],"partialFingerprints":{"codehealthFindingId/v1":"636b4bf0d0853ebd7e1bf4b631919722a63d77d91e35e39ffba0947a083e9343"}},{"ruleId":"D2","level":"warning","message":{"text":"Query.getNextResult (cognitive 34): Query.getNextResult has cognitive complexity 34 (threshold 15). Drivers by points: if/else 24, boolean chains 4, loops 4, error handling 1, ternaries 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":"presto-main/src/main/java/com/facebook/presto/server/protocol/Query.java"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f6fe1c1e1b6eb93b55c370bed77bc3b9c8c32696d09aa7b580474869efc3de7"}},{"ruleId":"D2","level":"warning","message":{"text":"HiveTypeTranslator.translate (cognitive 34): HiveTypeTranslator.translate has cognitive complexity 34 (threshold 15). Drivers by points: if/else 32, loops 2 (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":"presto-hive-metastore/src/main/java/com/facebook/presto/hive/HiveTypeTranslator.java"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b9f8abd113300a109818269d48aed3c31b6761560d0f0d6d263c4b98b597add"}},{"ruleId":"D2","level":"warning","message":{"text":"HiveSplitManager.getPartitionSplitInfo (cognitive 34): HiveSplitManager.getPartitionSplitInfo has cognitive complexity 34 (threshold 15). Drivers by points: if/else 28, loops 4, boolean chains 2 (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":"presto-hive/src/main/java/com/facebook/presto/hive/HiveSplitManager.java"},"region":{"startLine":806}}}],"partialFingerprints":{"codehealthFindingId/v1":"86edf51c26bd2260936361a0cbca2bdb080df254112ceaad78aa77ac35a4d939"}},{"ruleId":"D2","level":"warning","message":{"text":"FilesTable.buildPages (cognitive 34): FilesTable.buildPages has cognitive complexity 34 (threshold 15). Drivers by points: if/else 27, error handling 5, boolean chains 1, 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":"presto-iceberg/src/main/java/com/facebook/presto/iceberg/FilesTable.java"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"f99336fd910db7b9557192f52fb1a5d929b4b5ab4e9b0b9fd801ee136cf36ed8"}},{"ruleId":"D2","level":"warning","message":{"text":"IcebergPageSourceProvider.readDeletes (cognitive 34): IcebergPageSourceProvider.readDeletes has cognitive complexity 34 (threshold 15). Drivers by points: if/else 18, error handling 7, boolean chains 4, ternaries 4, loops 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":"presto-iceberg/src/main/java/com/facebook/presto/iceberg/IcebergPageSourceProvider.java"},"region":{"startLine":1021}}}],"partialFingerprints":{"codehealthFindingId/v1":"d49e8baf3e6e78ec76c826fc009de08d439b6416d53ea3c7aea2d27da0f4af60"}},{"ruleId":"D2","level":"warning","message":{"text":"SpillableFinalOnlyGroupedAccumulator.evaluateIntermediate (cognitive 34): SpillableFinalOnlyGroupedAccumulator.evaluateIntermediate has cognitive complexity 34 (threshold 15). Drivers by points: loops 16, if/else 15, boolean chains 3 (nesting depth added 17). 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":"presto-main-base/src/main/java/com/facebook/presto/operator/aggregation/GenericAccumulatorFactory.java"},"region":{"startLine":998}}}],"partialFingerprints":{"codehealthFindingId/v1":"0675595be695c2ee6c9b96861657aed546d8ae51e831c2e37c02de0f34375450"}},{"ruleId":"D2","level":"warning","message":{"text":"OrcInputStream.readVarint (cognitive 34): OrcInputStream.readVarint has cognitive complexity 34 (threshold 15). Drivers by points: if/else 29, loops 5 (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":"presto-orc/src/main/java/com/facebook/presto/orc/stream/OrcInputStream.java"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c07bfc321f81dd94bf2bbe3dbae78eecf24fdc9f57060aa05639427cabf90bd"}},{"ruleId":"D2","level":"warning","message":{"text":"ColumnStatisticsValidation.\u003Cinit\u003E (cognitive 34): ColumnStatisticsValidation.\u003Cinit\u003E has cognitive complexity 34 (threshold 15). Drivers by points: if/else 32, 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":"presto-orc/src/main/java/com/facebook/presto/orc/OrcWriteValidation.java"},"region":{"startLine":808}}}],"partialFingerprints":{"codehealthFindingId/v1":"0573913c6e4994166826bee637021e54eb602e873d06ad28276113b6a349b090"}},{"ruleId":"D2","level":"warning","message":{"text":"Visitor.visitMerge (cognitive 33): Visitor.visitMerge has cognitive complexity 33 (threshold 15). Drivers by points: if/else 25, loops 7, 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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java"},"region":{"startLine":3677}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8de1ea7dc7288dffc0d57177a1150d762f2b4d24b2baa577eaf91437aad8b98"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoveMapCastRewriter.rewriteCall (cognitive 33): RemoveMapCastRewriter.rewriteCall has cognitive complexity 33 (threshold 15). Drivers by points: if/else 21, loops 8, boolean chains 4 (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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/RemoveMapCastRule.java"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9d94563fc69ef6e5a3c0006133bff04c42f365cff77ec8fa531f41d2cb60af7"}},{"ruleId":"D2","level":"warning","message":{"text":"JoinPrefilter.findCloneableSource (cognitive 33): JoinPrefilter.findCloneableSource has cognitive complexity 33 (threshold 15). Drivers by points: if/else 22, boolean chains 8, ternaries 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/JoinPrefilter.java"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"3534427bfd50deb3fcbbb89dca82efb71934bad55265578a4b98c0c8ac506430"}},{"ruleId":"D2","level":"warning","message":{"text":"Rewriter.visitUnnest (cognitive 33): Rewriter.visitUnnest has cognitive complexity 33 (threshold 15). Drivers by points: if/else 25, loops 7, 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PushdownSubfields.java"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"c750d62c40d21a40de6666b505c9420820f6cb74948e05bcf7cb3b8dfcc1264b"}},{"ruleId":"D2","level":"warning","message":{"text":"QueryPlanner.window (cognitive 33): QueryPlanner.window has cognitive complexity 33 (threshold 15). Drivers by points: if/else 25, loops 5, boolean chains 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/QueryPlanner.java"},"region":{"startLine":1606}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ff0c4950ce52311fd51c4fbce2eebb79db27c1618331377677871527a4e436e"}},{"ruleId":"D2","level":"warning","message":{"text":"QueryBuilder.buildSql (cognitive 33): QueryBuilder.buildSql has cognitive complexity 33 (threshold 15). Drivers by points: if/else 32, 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":"presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/QueryBuilder.java"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"945bb3d6fa271eda5bcd521440ac946b9406399e7193ff17a3e7f5a126229bca"}},{"ruleId":"D2","level":"warning","message":{"text":"TypeSignature.parseRowTypeSignature (cognitive 33): TypeSignature.parseRowTypeSignature has cognitive complexity 33 (threshold 15). Drivers by points: if/else 25, boolean chains 5, match/switch 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":"presto-common/src/main/java/com/facebook/presto/common/type/TypeSignature.java"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"f14ede8c2de7ae984e91c058e553de3e80177ceb44b21cebffcad7dfcfb70a80"}},{"ruleId":"D2","level":"warning","message":{"text":"ArrayFilterFunction.filterBlock (cognitive 33): ArrayFilterFunction.filterBlock has cognitive complexity 33 (threshold 15). Drivers by points: if/else 12, loops 12, ternaries 7, 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":"presto-main-base/src/main/java/com/facebook/presto/operator/scalar/ArrayFilterFunction.java"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4323955ca6a19e3e9e6cf52f1306abd1689f4beb50032c50fdbf079cd24622c"}},{"ruleId":"D2","level":"warning","message":{"text":"ArrayFilterFunction.filterBoolean (cognitive 33): ArrayFilterFunction.filterBoolean has cognitive complexity 33 (threshold 15). Drivers by points: if/else 12, loops 12, ternaries 7, 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":"presto-main-base/src/main/java/com/facebook/presto/operator/scalar/ArrayFilterFunction.java"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"05d90a83f625505d02a80a2ab8d85a3525419502d4913a441916d5be2f54cb5f"}},{"ruleId":"D2","level":"warning","message":{"text":"ArrayFilterFunction.filterDouble (cognitive 33): ArrayFilterFunction.filterDouble has cognitive complexity 33 (threshold 15). Drivers by points: if/else 12, loops 12, ternaries 7, 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":"presto-main-base/src/main/java/com/facebook/presto/operator/scalar/ArrayFilterFunction.java"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"94759c985c04cc1d672f7fb7f40ffdc239cfac6b823f7fdf9158c8ea0a22f6c6"}},{"ruleId":"D2","level":"warning","message":{"text":"ArrayFilterFunction.filterLong (cognitive 33): ArrayFilterFunction.filterLong has cognitive complexity 33 (threshold 15). Drivers by points: if/else 12, loops 12, ternaries 7, 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":"presto-main-base/src/main/java/com/facebook/presto/operator/scalar/ArrayFilterFunction.java"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b06067f1e1747b8fb32c852407f335ada7351ad4ab1de9b550b590497f74b84"}},{"ruleId":"D2","level":"warning","message":{"text":"ArrayFilterFunction.filterSlice (cognitive 33): ArrayFilterFunction.filterSlice has cognitive complexity 33 (threshold 15). Drivers by points: if/else 12, loops 12, ternaries 7, 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":"presto-main-base/src/main/java/com/facebook/presto/operator/scalar/ArrayFilterFunction.java"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e2b964b87e1539da273d23edc5a0cc10baf277f4dfe44ea313029940e958d9a"}},{"ruleId":"D2","level":"warning","message":{"text":"StripeReader.readStripe (cognitive 33): StripeReader.readStripe has cognitive complexity 33 (threshold 15). Drivers by points: if/else 20, loops 8, boolean chains 3, error handling 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":"presto-orc/src/main/java/com/facebook/presto/orc/StripeReader.java"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"772a6b288ca48784710ae7b74a678f503326c5b7afc04823a5295121fe9338f4"}},{"ruleId":"D2","level":"warning","message":{"text":"ParquetResultVerifierUtils.verifyColumnChunks (cognitive 33): ParquetResultVerifierUtils.verifyColumnChunks has cognitive complexity 33 (threshold 15). Drivers by points: if/else 21, ternaries 6, loops 5, 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":"presto-parquet/src/main/java/com/facebook/presto/parquet/ParquetResultVerifierUtils.java"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"69cd6650765e8325f3f30ad1d8e32e1404fa84f424bd0b7233adc0158a245930"}},{"ruleId":"D2","level":"warning","message":{"text":"AbstractPrestoSparkQueryExecution.execute (cognitive 33): AbstractPrestoSparkQueryExecution.execute has cognitive complexity 33 (threshold 15). Drivers by points: if/else 19, error handling 6, loops 6, 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":"presto-spark-base/src/main/java/com/facebook/presto/spark/execution/AbstractPrestoSparkQueryExecution.java"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"06483a65a2a51c62ddeb1e269fdb86875169a115825f660c5ea123ccecfaf746"}},{"ruleId":"D2","level":"warning","message":{"text":"DruidBrokerPageSource.getNextPage (cognitive 32): DruidBrokerPageSource.getNextPage has cognitive complexity 32 (threshold 15). Drivers by points: if/else 23, boolean chains 4, loops 4, error handling 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":"presto-druid/src/main/java/com/facebook/presto/druid/DruidBrokerPageSource.java"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bc4bb4b4cc8654ee9b8d13eab76ad475ec2254d07d1c0369ee7b98f987695f7"}},{"ruleId":"D2","level":"warning","message":{"text":"ReactorNettyHttpClient.\u003Cinit\u003E (cognitive 32): ReactorNettyHttpClient.\u003Cinit\u003E has cognitive complexity 32 (threshold 15). Drivers by points: if/else 26, boolean chains 2, error handling 2, ternaries 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":"presto-main/src/main/java/com/facebook/presto/server/remotetask/ReactorNettyHttpClient.java"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"d53a9a4f2eaf5b89ab8d410f074a456ffffc294691edbf19ff8dc68b7429ab38"}},{"ruleId":"D2","level":"warning","message":{"text":"ParquetPageSourceFactory.checkSchemaMatch (cognitive 32): ParquetPageSourceFactory.checkSchemaMatch has cognitive complexity 32 (threshold 15). Drivers by points: if/else 17, boolean chains 9, loops 3, match/switch 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":"presto-hive/src/main/java/com/facebook/presto/hive/parquet/ParquetPageSourceFactory.java"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"195b939402c32d79c81e828f7754d30db7a9daf6ec3014374b5cbf4065e132cf"}},{"ruleId":"D2","level":"warning","message":{"text":"SubfieldExtractor.toSubfield (cognitive 32): SubfieldExtractor.toSubfield has cognitive complexity 32 (threshold 15). Drivers by points: if/else 29, boolean chains 2, 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":"presto-hive-common/src/main/java/com/facebook/presto/hive/SubfieldExtractor.java"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"522c63bebb13aa9e4e1695d0ff38ea95abad9bdc42426d91fb9a5ead645f5fad"}},{"ruleId":"D2","level":"warning","message":{"text":"AbstractBlockEncodingBuffer.encodeNullsAsBits (cognitive 32): AbstractBlockEncodingBuffer.encodeNullsAsBits has cognitive complexity 32 (threshold 15). Drivers by points: ternaries 22, loops 8, if/else 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":"presto-main-base/src/main/java/com/facebook/presto/operator/repartition/AbstractBlockEncodingBuffer.java"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1a3bada5fd39a52fb932ed0b1e0b0b6b9b83656e75a56e4ab94fb583e5425c1"}},{"ruleId":"D2","level":"warning","message":{"text":"TDigestUtils.quickSort (cognitive 32): TDigestUtils.quickSort has cognitive complexity 32 (threshold 15). Drivers by points: if/else 26, loops 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":"presto-main-base/src/main/java/com/facebook/presto/tdigest/TDigestUtils.java"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc017bbd2b4393d3f7438d0dfe85873a5e7a97de9a8f944674b36d863fb40a73"}},{"ruleId":"D2","level":"warning","message":{"text":"MapFlatSelectiveStreamReader.compactValues (cognitive 32): MapFlatSelectiveStreamReader.compactValues has cognitive complexity 32 (threshold 15). Drivers by points: if/else 21, loops 9, 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":"presto-orc/src/main/java/com/facebook/presto/orc/reader/MapFlatSelectiveStreamReader.java"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"e775307eeeec46d378404199d92e0b76c770b3810d0d082a4a9ccf6d0712d0c8"}},{"ruleId":"D2","level":"warning","message":{"text":"FunctionArgumentCheckerForAccessControlUtils.resolveSubfield (cognitive 31): FunctionArgumentCheckerForAccessControlUtils.resolveSubfield has cognitive complexity 31 (threshold 15). Drivers by points: if/else 27, boolean chains 3, 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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/FunctionArgumentCheckerForAccessControlUtils.java"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9430a10fb3d0dc07cc19f90606c5b30967695c52d3e44dd4eadb4a041f320c8"}},{"ruleId":"D2","level":"warning","message":{"text":"Visitor.getMaterializedViewStatus (cognitive 31): Visitor.getMaterializedViewStatus has cognitive complexity 31 (threshold 15). Drivers by points: if/else 21, loops 7, boolean chains 3 (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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java"},"region":{"startLine":2937}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebf3c00d7361dbdd4e2d14b1b19061574b32249c8b79022d5b04405c6f38763e"}},{"ruleId":"D2","level":"warning","message":{"text":"AstBuilder.getRoutineCharacteristics (cognitive 31): AstBuilder.getRoutineCharacteristics has cognitive complexity 31 (threshold 15). Drivers by points: if/else 21, ternaries 9, 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":"presto-parser/src/main/java/com/facebook/presto/sql/parser/AstBuilder.java"},"region":{"startLine":3060}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1a343689cc52433cb1d16d4236c5b2419ab21c2c4cdbd198a6042f9f173183f"}},{"ruleId":"D2","level":"warning","message":{"text":"DelimiterLexer.nextToken (cognitive 31): DelimiterLexer.nextToken has cognitive complexity 31 (threshold 15). Drivers by points: if/else 21, loops 6, error handling 4 (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":"presto-parser/src/main/java/com/facebook/presto/sql/parser/DelimiterLexer.java"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a1cdbd258d103e3b5be49527704f9876d256b8d2ac54b49ca2803735b55dd07"}},{"ruleId":"D2","level":"warning","message":{"text":"SemiTransactionalHiveMetastore.doRecursiveDeleteFiles (cognitive 31): SemiTransactionalHiveMetastore.doRecursiveDeleteFiles has cognitive complexity 31 (threshold 15). Drivers by points: if/else 27, boolean chains 2, error handling 1, 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":"presto-hive-metastore/src/main/java/com/facebook/presto/hive/metastore/SemiTransactionalHiveMetastore.java"},"region":{"startLine":2155}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec2a9272ae21156dcf14ba22d76de712c3dcee00026b8e0f3dfe621d513b6eec"}},{"ruleId":"D2","level":"warning","message":{"text":"TypeConverter.toHiveTypeInfo (cognitive 31): TypeConverter.toHiveTypeInfo has cognitive complexity 31 (threshold 15). Drivers by points: if/else 29, loops 2 (nesting depth added 8). 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":"presto-iceberg/src/main/java/com/facebook/presto/iceberg/TypeConverter.java"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"c53670799911633ddadbad0b2f878819ae4365d718e059524c6faafb4d6be5e3"}},{"ruleId":"D2","level":"warning","message":{"text":"MapToMapCast.mapCast (cognitive 31): MapToMapCast.mapCast has cognitive complexity 31 (threshold 15). Drivers by points: if/else 16, error handling 10, loops 4, 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":"presto-main-base/src/main/java/com/facebook/presto/operator/scalar/MapToMapCast.java"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"b51df456f5df8b0f64a4ed92326af45440d305adbca2072bdc0bf614e22f7a15"}},{"ruleId":"D2","level":"warning","message":{"text":"LongDirectSelectiveStreamReader.readNoFilter (cognitive 31): LongDirectSelectiveStreamReader.readNoFilter has cognitive complexity 31 (threshold 15). Drivers by points: if/else 22, loops 8, 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":"presto-orc/src/main/java/com/facebook/presto/orc/reader/LongDirectSelectiveStreamReader.java"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fee36f55e0c2b564318210f75b55099aa1412869bf79462b8bacaa3eda04814"}},{"ruleId":"D2","level":"warning","message":{"text":"Field.toString (cognitive 30): Field.toString has cognitive complexity 30 (threshold 15). Drivers by points: if/else 25, loops 4, boolean chains 1 (nesting depth added 8). 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":"presto-accumulo/src/main/java/com/facebook/presto/accumulo/model/Field.java"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"11039506046ccca4d756a54979d930093c1465b31eb08734b929fb7e99092531"}},{"ruleId":"D2","level":"warning","message":{"text":"Optimizer.visitAggregation (cognitive 30): Optimizer.visitAggregation has cognitive complexity 30 (threshold 15). Drivers by points: if/else 21, 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/MetadataQueryOptimizer.java"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"86ed5bba9c53f7170f7a1f608933d798f07ec3447fb71375c5b687f2634c0572"}},{"ruleId":"D2","level":"warning","message":{"text":"StandardColumnMappings.prestoTypeToWriteMapping (cognitive 30): StandardColumnMappings.prestoTypeToWriteMapping has cognitive complexity 30 (threshold 15). Drivers by points: if/else 16, ternaries 13, 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":"presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/mapping/StandardColumnMappings.java"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"238d734a416c4acc219430bb623c34747658f5e62842551fe5a6fd0cc43b0018"}},{"ruleId":"D2","level":"warning","message":{"text":"QueryBuilder.toPredicate (cognitive 30): QueryBuilder.toPredicate has cognitive complexity 30 (threshold 15). Drivers by points: if/else 14, ternaries 12, loops 4 (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":"presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/QueryBuilder.java"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"86af91886aff549665af80b0c997ae60365ec84d45c7bbdee685865bb4a0a26d"}},{"ruleId":"D2","level":"warning","message":{"text":"QueryBuilder.toPredicate (cognitive 30): QueryBuilder.toPredicate has cognitive complexity 30 (threshold 15). Drivers by points: if/else 14, ternaries 12, loops 4 (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":"presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/QueryBuilder.java"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"379d64ab43a9d21a5ba21d63d4f74b8850faf05ecabd02753036cd769f233a3d"}},{"ruleId":"D2","level":"warning","message":{"text":"CassandraSplitManager.getSplitsForPartitions (cognitive 30): CassandraSplitManager.getSplitsForPartitions has cognitive complexity 30 (threshold 15). Drivers by points: if/else 21, loops 9 (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":"presto-cassandra/src/main/java/com/facebook/presto/cassandra/CassandraSplitManager.java"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d9fefc420dcc35384814bac3b711cbe0d90c157f9521e6e3473bf818605e401"}},{"ruleId":"D2","level":"warning","message":{"text":"HiveSplitSource.getNextBatch (cognitive 30): HiveSplitSource.getNextBatch has cognitive complexity 30 (threshold 15). Drivers by points: if/else 24, boolean chains 2, ternaries 2, loops 1, 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":"presto-hive/src/main/java/com/facebook/presto/hive/HiveSplitSource.java"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"979cac3bdbe477c76507fd18fb7c83eb053fe718ed3bfdc56332341e848c0ec3"}},{"ruleId":"D2","level":"warning","message":{"text":"SqlTaskExecution.scheduleTableScanSource (cognitive 30): SqlTaskExecution.scheduleTableScanSource has cognitive complexity 30 (threshold 15). Drivers by points: if/else 19, loops 10, boolean chains 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":"presto-main-base/src/main/java/com/facebook/presto/execution/SqlTaskExecution.java"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac2fa7ad60116543d2e2c9346d883d67fcd6ca6fcb84e745ce206a0b3a55faae"}},{"ruleId":"D2","level":"warning","message":{"text":"ProjectSelectedPositions.process (cognitive 30): ProjectSelectedPositions.process has cognitive complexity 30 (threshold 15). Drivers by points: if/else 20, loops 6, boolean chains 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":"presto-main-base/src/main/java/com/facebook/presto/operator/project/PageProcessor.java"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"4be2da2fe1e76018d35b4877e6a7a597ee3ac7e53368e24b0a5f577a40a24f68"}},{"ruleId":"D2","level":"warning","message":{"text":"FloatSelectiveStreamReader.readNoFilter (cognitive 30): FloatSelectiveStreamReader.readNoFilter has cognitive complexity 30 (threshold 15). Drivers by points: if/else 21, loops 8, 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":"presto-orc/src/main/java/com/facebook/presto/orc/reader/FloatSelectiveStreamReader.java"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"0062faa4541692db913d23a9d8c8036fad5227304319cecc3b626161d15b2d30"}},{"ruleId":"D2","level":"warning","message":{"text":"Visitor.analyzeSelect (cognitive 29): Visitor.analyzeSelect has cognitive complexity 29 (threshold 15). Drivers by points: if/else 23, loops 4, 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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java"},"region":{"startLine":4611}}}],"partialFingerprints":{"codehealthFindingId/v1":"68defeb69c75cd1d6cd736ad68de865ea6057b78b515d81650cdf46f50d3f28d"}},{"ruleId":"D2","level":"warning","message":{"text":"PushdownThroughUnnest.apply (cognitive 29): PushdownThroughUnnest.apply has cognitive complexity 29 (threshold 15). Drivers by points: if/else 15, loops 9, boolean chains 5 (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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PushdownThroughUnnest.java"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"00935f95241d39630826a58426ecded233ac623cd9607f2ef8021475417f3ccf"}},{"ruleId":"D2","level":"warning","message":{"text":"Rewriter.visitSemiJoin (cognitive 29): Rewriter.visitSemiJoin has cognitive complexity 29 (threshold 15). Drivers by points: if/else 20, boolean chains 9 (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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/AddExchanges.java"},"region":{"startLine":1272}}}],"partialFingerprints":{"codehealthFindingId/v1":"9df4abbb42dbe986d22825ad4b5b9705c3cb4efcea3f22658b7822402ab8f9ac"}},{"ruleId":"D2","level":"warning","message":{"text":"AtopPageSource.getNextPage (cognitive 29): AtopPageSource.getNextPage has cognitive complexity 29 (threshold 15). Drivers by points: if/else 22, error handling 4, loops 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":"presto-atop/src/main/java/com/facebook/presto/atop/AtopPageSource.java"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5f8e0b9050fdf90c2d576a70184eab1e10db620a051fc63db0f4d09b687f72b"}},{"ruleId":"D2","level":"warning","message":{"text":"ParameterizedType.toInternalIdentifier (cognitive 29): ParameterizedType.toInternalIdentifier has cognitive complexity 29 (threshold 15). Drivers by points: if/else 29 (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":"presto-bytecode/src/main/java/com/facebook/presto/bytecode/ParameterizedType.java"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cbefe58822765e80f5d49d006f11c774724eb63a244e48f5ba4909d0e34947d"}},{"ruleId":"D2","level":"warning","message":{"text":"RecordPageSource.getNextPage (cognitive 29): RecordPageSource.getNextPage has cognitive complexity 29 (threshold 15). Drivers by points: if/else 22, loops 5, 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":"presto-spi/src/main/java/com/facebook/presto/spi/RecordPageSource.java"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d9bcf2464f164396248ce5b7af9fe4e14610eb19d6a4739d514445608ae9c07"}},{"ruleId":"D2","level":"warning","message":{"text":"LongOutputStreamV2.writeLong (cognitive 29): LongOutputStreamV2.writeLong has cognitive complexity 29 (threshold 15). Drivers by points: if/else 23, 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":"presto-orc/src/main/java/com/facebook/presto/orc/stream/LongOutputStreamV2.java"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"57dd8b98cf722665d47d9eb96c9d17d9f1566939e6aad898d8eeef58d4fdeb87"}},{"ruleId":"D2","level":"warning","message":{"text":"TupleDomainOrcPredicate.getDomain (cognitive 29): TupleDomainOrcPredicate.getDomain has cognitive complexity 29 (threshold 15). Drivers by points: if/else 18, boolean chains 11 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-orc/src/main/java/com/facebook/presto/orc/TupleDomainOrcPredicate.java"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"5319c52dc36789534bf44e839eb942dd8ca10b86fe6629be9e68e74ae39b4605"}},{"ruleId":"D2","level":"warning","message":{"text":"SubfieldExtractor.visitCall (cognitive 28): SubfieldExtractor.visitCall has cognitive complexity 28 (threshold 15). Drivers by points: if/else 22, boolean chains 4, 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PushdownSubfields.java"},"region":{"startLine":891}}}],"partialFingerprints":{"codehealthFindingId/v1":"328e4cf7f7ca783096c33f2e272747ec82408c2ca3d8fcd17506d499fa5c6431"}},{"ruleId":"D2","level":"warning","message":{"text":"EqualityInference.generateEqualitiesPartitionedBy (cognitive 28): EqualityInference.generateEqualitiesPartitionedBy has cognitive complexity 28 (threshold 15). Drivers by points: if/else 15, loops 12, 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/EqualityInference.java"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"01bf2670e5d69181601967cda9d3735230d30b73f18933822662892f651dc2a3"}},{"ruleId":"D2","level":"warning","message":{"text":"ElasticsearchMetadata.toPrestoType (cognitive 28): ElasticsearchMetadata.toPrestoType has cognitive complexity 28 (threshold 15). Drivers by points: if/else 20, loops 5, match/switch 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":"presto-elasticsearch/src/main/java/com/facebook/presto/elasticsearch/ElasticsearchMetadata.java"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"89ffb6aeaa72a777f9b96931b0948312f16e72fa4a73f5a363478ed70c601112"}},{"ruleId":"D2","level":"warning","message":{"text":"IcebergAbstractMetadata.getMaterializedViewStatus (cognitive 28): IcebergAbstractMetadata.getMaterializedViewStatus has cognitive complexity 28 (threshold 15). Drivers by points: if/else 22, boolean chains 3, ternaries 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":"presto-iceberg/src/main/java/com/facebook/presto/iceberg/IcebergAbstractMetadata.java"},"region":{"startLine":2151}}}],"partialFingerprints":{"codehealthFindingId/v1":"f01051f8f11d92d0f9c52fbd5f7fda03213010b21aad9291221bb7d9d5fb6d4d"}},{"ruleId":"D2","level":"warning","message":{"text":"FixedSourcePartitionedScheduler.schedule (cognitive 28): FixedSourcePartitionedScheduler.schedule has cognitive complexity 28 (threshold 15). Drivers by points: if/else 20, 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":"presto-main-base/src/main/java/com/facebook/presto/execution/scheduler/FixedSourcePartitionedScheduler.java"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d5bddf00f9467bafff0b5227979480c7bc5f77b8d0f807bcace6b01b295b677"}},{"ruleId":"D2","level":"warning","message":{"text":"TDigest.getQuantile (cognitive 28): TDigest.getQuantile has cognitive complexity 28 (threshold 15). Drivers by points: if/else 24, boolean chains 3, 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":"presto-main-base/src/main/java/com/facebook/presto/tdigest/TDigest.java"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf8beb0aeca9f36267830b5846abac288450c071b862854b5cf16b63f768c718"}},{"ruleId":"D2","level":"warning","message":{"text":"DistributedQueryRunner.\u003Cinit\u003E (cognitive 28): DistributedQueryRunner.\u003Cinit\u003E has cognitive complexity 28 (threshold 15). Drivers by points: loops 11, if/else 8, ternaries 6, error handling 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":"presto-tests/src/main/java/com/facebook/presto/tests/DistributedQueryRunner.java"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eea4c29108a41240e947a49a737408e44e529eeeb4862fe439c160ff5f7a8fe"}},{"ruleId":"D2","level":"warning","message":{"text":"OrcWriter.bufferStripeData (cognitive 28): OrcWriter.bufferStripeData has cognitive complexity 28 (threshold 15). Drivers by points: ternaries 14, if/else 9, loops 5 (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":"presto-orc/src/main/java/com/facebook/presto/orc/OrcWriter.java"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"6883effc385cd0b4faeed013db2ce2e56e267829654c4482b6bdb62826456208"}},{"ruleId":"D2","level":"warning","message":{"text":"BooleanRLEValuesDecoder.readNext (cognitive 28): BooleanRLEValuesDecoder.readNext has cognitive complexity 28 (threshold 15). Drivers by points: loops 15, if/else 11, match/switch 2 (nesting depth added 18). 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":"presto-parquet/src/main/java/com/facebook/presto/parquet/batchreader/decoders/rle/BooleanRLEValuesDecoder.java"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"72e182d9271a634f5edcf1ab5ef6e7ae5e99680654d7916356f6f2e3aaa717e4"}},{"ruleId":"D2","level":"warning","message":{"text":"StringRowSerializer.encode (cognitive 27): StringRowSerializer.encode has cognitive complexity 27 (threshold 15). Drivers by points: if/else 19, boolean chains 8. 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":"presto-accumulo/src/main/java/com/facebook/presto/accumulo/serializers/StringRowSerializer.java"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"a85acbc6da260e351e1c06eaaf8046d269710d42d02f3c7361424c9b8a94dcb9"}},{"ruleId":"D2","level":"warning","message":{"text":"CollapseFanoutJoinWithArrayAggUnnest.tryCollapseSide (cognitive 27): CollapseFanoutJoinWithArrayAggUnnest.tryCollapseSide has cognitive complexity 27 (threshold 15). Drivers by points: if/else 13, loops 10, ternaries 4 (nesting depth added 8). 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/CollapseFanoutJoinWithArrayAggUnnest.java"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"828a76bd0ff7fbe6a55e81af4365e327f1450f3158caf528db6d145d398502a4"}},{"ruleId":"D2","level":"warning","message":{"text":"TupleDomain.columnWiseUnion (cognitive 27): TupleDomain.columnWiseUnion has cognitive complexity 27 (threshold 15). Drivers by points: if/else 20, loops 7 (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":"presto-common/src/main/java/com/facebook/presto/common/predicate/TupleDomain.java"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7069a9e62935771853ad37e02d9955d9b6396329f57d7b390ea590f07e95266"}},{"ruleId":"D2","level":"warning","message":{"text":"TimeZoneKey.normalizeZoneId (cognitive 27): TimeZoneKey.normalizeZoneId has cognitive complexity 27 (threshold 15). Drivers by points: if/else 15, boolean chains 10, ternaries 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":"presto-common/src/main/java/com/facebook/presto/common/type/TimeZoneKey.java"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad71e170f3d475100ee44ffa3483d9f5c95b1550c07ac0915eb081269e699a68"}},{"ruleId":"D2","level":"warning","message":{"text":"AuthenticationFilter.mergeExtraHeaders (cognitive 27): AuthenticationFilter.mergeExtraHeaders has cognitive complexity 27 (threshold 15). Drivers by points: if/else 21, loops 5, 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":"presto-main/src/main/java/com/facebook/presto/server/security/AuthenticationFilter.java"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2ddcdb3d9d7d2a137e2fbd3fb053e26c916da81b493b31c2544d51275a465e5"}},{"ruleId":"D2","level":"warning","message":{"text":"Optimizer.visitAggregation (cognitive 27): Optimizer.visitAggregation has cognitive complexity 27 (threshold 15). Drivers by points: if/else 19, loops 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":"presto-iceberg/src/main/java/com/facebook/presto/iceberg/optimizer/IcebergMetadataOptimizer.java"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d1cd192706286345ec40c324d17b004907a9541231979605db68b547de88d33"}},{"ruleId":"D2","level":"warning","message":{"text":"IcebergAbstractMetadata.getSnapshotIdForTableVersion (cognitive 27): IcebergAbstractMetadata.getSnapshotIdForTableVersion has cognitive complexity 27 (threshold 15). Drivers by points: if/else 21, error handling 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":"presto-iceberg/src/main/java/com/facebook/presto/iceberg/IcebergAbstractMetadata.java"},"region":{"startLine":1744}}}],"partialFingerprints":{"codehealthFindingId/v1":"43e1e6a2e85efb766be8320e5b7ff4bd8ad3fdf4600c459733675cca6e117fbe"}},{"ruleId":"D2","level":"warning","message":{"text":"IcebergPageSourceProvider.createBatchOrcPageSource (cognitive 27): IcebergPageSourceProvider.createBatchOrcPageSource has cognitive complexity 27 (threshold 15). Drivers by points: if/else 20, error handling 4, ternaries 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":"presto-iceberg/src/main/java/com/facebook/presto/iceberg/IcebergPageSourceProvider.java"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd09c8fe1b18112ac1cc7b290f4819e48bda860719f0ec1601852729aea31157"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskRunner.run (cognitive 27): TaskRunner.run has cognitive complexity 27 (threshold 15). Drivers by points: if/else 21, error handling 4, 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":"presto-main-base/src/main/java/com/facebook/presto/execution/executor/TaskExecutor.java"},"region":{"startLine":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0b28f201f7eda543f60fe251ad42aa9f2ec021d337124e767ff88fbebebd8f3"}},{"ruleId":"D2","level":"warning","message":{"text":"MetadataManager.verifyComparableOrderableContract (cognitive 27): MetadataManager.verifyComparableOrderableContract has cognitive complexity 27 (threshold 15). Drivers by points: if/else 21, loops 6 (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":"presto-main-base/src/main/java/com/facebook/presto/metadata/MetadataManager.java"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"5671a05466b13efd2db1692887cc7473ed39a12798e19f03b7e3bb296c027271"}},{"ruleId":"D2","level":"warning","message":{"text":"JsonFunctions.jsonArrayGet (cognitive 27): JsonFunctions.jsonArrayGet has cognitive complexity 27 (threshold 15). Drivers by points: if/else 20, ternaries 3, boolean chains 2, 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":"presto-main-base/src/main/java/com/facebook/presto/operator/scalar/JsonFunctions.java"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4a6071e334560e3c161f2a00d434b9952fcdbe4600059c13a1681e1c891994d"}},{"ruleId":"D2","level":"warning","message":{"text":"ValueStreams.createValueStreams (cognitive 27): ValueStreams.createValueStreams has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10, match/switch 10, 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":"presto-orc/src/main/java/com/facebook/presto/orc/stream/ValueStreams.java"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"2da8f9009369d4adc6ba2a18d11caeafb56a83633f518768d111ffd8c84368b1"}},{"ruleId":"D2","level":"warning","message":{"text":"JoinRewriteContext.areAggregatesCompatible (cognitive 26): JoinRewriteContext.areAggregatesCompatible has cognitive complexity 26 (threshold 15). Drivers by points: if/else 20, boolean chains 5, 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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/MaterializedViewJoinQueryRewriter.java"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"54eb44ce3c40a2a01ec35ae2662cad79de7bed23552e0f3110ff9b525a824fb1"}},{"ruleId":"D2","level":"warning","message":{"text":"RowExpressionComparator.compare (cognitive 26): RowExpressionComparator.compare has cognitive complexity 26 (threshold 15). Drivers by points: if/else 24, 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/ExpressionEquivalence.java"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"83ae83e8c259a8e272e47c5d6978b69d1701d6a9dc34dc3a06c617f2ff379246"}},{"ruleId":"D2","level":"warning","message":{"text":"DecorrelatingVisitor.extractCorrelatedSymbolsMapping (cognitive 26): DecorrelatingVisitor.extractCorrelatedSymbolsMapping has cognitive complexity 26 (threshold 15). Drivers by points: if/else 16, loops 8, 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PlanNodeDecorrelator.java"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8640e119519b7eb4e5bc6d06af221668a6346d4f4d5149471f13b43ff83eb8b"}},{"ruleId":"D2","level":"warning","message":{"text":"Rewriter.processInnerJoin (cognitive 26): Rewriter.processInnerJoin has cognitive complexity 26 (threshold 15). Drivers by points: if/else 20, 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PredicatePushDown.java"},"region":{"startLine":1179}}}],"partialFingerprints":{"codehealthFindingId/v1":"a01c2a92bfed7578ef0cd87bd51d44d69ff2a04d92cd0accff517563e9afeb20"}},{"ruleId":"D2","level":"warning","message":{"text":"CachingPlanCanonicalInfoProvider.loadValue (cognitive 26): CachingPlanCanonicalInfoProvider.loadValue has cognitive complexity 26 (threshold 15). Drivers by points: if/else 19, boolean chains 4, 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/CachingPlanCanonicalInfoProvider.java"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"de5016179cfc11e0387d8e7daba3919291be08d070fa8429e686b4fdc0042c66"}},{"ruleId":"D2","level":"warning","message":{"text":"Visitor.visitInPredicate (cognitive 26): Visitor.visitInPredicate has cognitive complexity 26 (threshold 15). Drivers by points: if/else 21, boolean chains 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/ExpressionInterpreter.java"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b26bb7c82448af400e5ce385b22a290eba0e00f92d6740f3ffc61f5ae1667cc"}},{"ruleId":"D2","level":"warning","message":{"text":"HiveMetadata.getTableEncryptionPropertiesFromTableProperties (cognitive 26): HiveMetadata.getTableEncryptionPropertiesFromTableProperties has cognitive complexity 26 (threshold 15). Drivers by points: if/else 19, loops 4, boolean chains 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":"presto-hive/src/main/java/com/facebook/presto/hive/HiveMetadata.java"},"region":{"startLine":3649}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8cef16e9d60d22ec66802e3ee6b9f0ca327d2b5dd70d148b3c720e515adec54"}},{"ruleId":"D2","level":"warning","message":{"text":"IcebergAbstractMetadata.finishRefreshMaterializedView (cognitive 26): IcebergAbstractMetadata.finishRefreshMaterializedView has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12, error handling 5, loops 4, 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":"presto-iceberg/src/main/java/com/facebook/presto/iceberg/IcebergAbstractMetadata.java"},"region":{"startLine":2556}}}],"partialFingerprints":{"codehealthFindingId/v1":"c63629b9ed93ce68614cb8c3e8dba7d0ab5cdc10d9903340d7a2dd5e3d0a1db0"}},{"ruleId":"D2","level":"warning","message":{"text":"PrestoStatement.internalExecute (cognitive 26): PrestoStatement.internalExecute has cognitive complexity 26 (threshold 15). Drivers by points: if/else 18, loops 3, boolean chains 2, error handling 2, 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":"presto-jdbc/src/main/java/com/facebook/presto/jdbc/PrestoStatement.java"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d8692341732db801dfb31735a9539ec377c6a778edbf81f719a6115c074c3fe"}},{"ruleId":"D2","level":"warning","message":{"text":"TypeWithLiteralParametersSolver.update (cognitive 26): TypeWithLiteralParametersSolver.update has cognitive complexity 26 (threshold 15). Drivers by points: if/else 22, loops 2, boolean chains 1, 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":"presto-main-base/src/main/java/com/facebook/presto/metadata/SignatureBinder.java"},"region":{"startLine":710}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b8d17af26b9f24d7152244807b6e1ea4c5b8c42419c563b780624b15cc93c9a"}},{"ruleId":"D2","level":"warning","message":{"text":"MapUnionSumResult.unionSum (cognitive 26): MapUnionSumResult.unionSum has cognitive complexity 26 (threshold 15). Drivers by points: if/else 19, loops 4, boolean chains 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":"presto-main-base/src/main/java/com/facebook/presto/operator/aggregation/MapUnionSumResult.java"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"f26d71946089826a4a3fbc01067f5f32cba4ecd1fdb28263c92ac6fc43d750f3"}},{"ruleId":"D2","level":"warning","message":{"text":"FunctionsParserHelper.findMethods (cognitive 26): FunctionsParserHelper.findMethods has cognitive complexity 26 (threshold 15). Drivers by points: if/else 16, loops 9, 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":"presto-main-base/src/main/java/com/facebook/presto/operator/annotations/FunctionsParserHelper.java"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6c26550568fb9ee0e01df5c1daa90a8d39be264a302cd4d6731324749aa8e33"}},{"ruleId":"D2","level":"warning","message":{"text":"SpatialJoinOperator.processProbe (cognitive 26): SpatialJoinOperator.processProbe has cognitive complexity 26 (threshold 15). Drivers by points: if/else 19, 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":"presto-main-base/src/main/java/com/facebook/presto/operator/SpatialJoinOperator.java"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"44e4a4dd35323fb85d203248acaee4e8f2cfdc1d1b667831dae0bd85ea440bcc"}},{"ruleId":"D2","level":"warning","message":{"text":"DecimalBatchStreamReader.readBlock (cognitive 26): DecimalBatchStreamReader.readBlock has cognitive complexity 26 (threshold 15). Drivers by points: if/else 21, loops 4, 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":"presto-orc/src/main/java/com/facebook/presto/orc/reader/DecimalBatchStreamReader.java"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3de1308b6491de3c2d770630ffaf1a8fd92caab9a62492d1bf3ba6ffac8aed9"}},{"ruleId":"D2","level":"warning","message":{"text":"FloatBatchStreamReader.readBlock (cognitive 26): FloatBatchStreamReader.readBlock has cognitive complexity 26 (threshold 15). Drivers by points: if/else 23, 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":"presto-orc/src/main/java/com/facebook/presto/orc/reader/FloatBatchStreamReader.java"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"23e7947cfcd9f8e0028601902f045c9ca06ae7644a3d521ddb096400cd98ba18"}},{"ruleId":"D2","level":"warning","message":{"text":"MapDirectSelectiveStreamReader.readKeyValueStreams (cognitive 26): MapDirectSelectiveStreamReader.readKeyValueStreams has cognitive complexity 26 (threshold 15). Drivers by points: if/else 15, loops 11 (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":"presto-orc/src/main/java/com/facebook/presto/orc/reader/MapDirectSelectiveStreamReader.java"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac996f8a0889021be8eacdffba246f39f0e68188611d93d01a4402cfaab65633"}},{"ruleId":"D2","level":"warning","message":{"text":"JsonParseSafetyWrapper.findMatchingParen (cognitive 26): JsonParseSafetyWrapper.findMatchingParen has cognitive complexity 26 (threshold 15). Drivers by points: if/else 20, boolean chains 5, 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":"presto-verifier/src/main/java/com/facebook/presto/verifier/framework/JsonParseSafetyWrapper.java"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ad483c134b6cc8da33e42dbc7a5b553e3b96537564e1b806ca873e390f283c5"}},{"ruleId":"D2","level":"warning","message":{"text":"Visitor.visitDereferenceExpression (cognitive 25): Visitor.visitDereferenceExpression has cognitive complexity 25 (threshold 15). Drivers by points: if/else 20, boolean chains 2, ternaries 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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/ExpressionAnalyzer.java"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"54eb40cba01b4cc66d727962d8c67e47add5538ff415d9ddd55f76e2054df043"}},{"ruleId":"D2","level":"warning","message":{"text":"LogicalPropertiesImpl.joinProperties (cognitive 25): LogicalPropertiesImpl.joinProperties has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 13, if/else 10, loops 2 (nesting depth added 3). 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/properties/LogicalPropertiesImpl.java"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"6588bcb1745edcc420dc3d17ec41a5aa355c712dbc035ed635a67556c64164eb"}},{"ruleId":"D2","level":"warning","message":{"text":"SimplifyAggregationsOverConstant.buildConstantResolver (cognitive 25): SimplifyAggregationsOverConstant.buildConstantResolver has cognitive complexity 25 (threshold 15). Drivers by points: if/else 24, 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/SimplifyAggregationsOverConstant.java"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b0a9ed95ad3005488a34b68f12f86a007b0f9e797584d99a2149ac148757f1d"}},{"ruleId":"D2","level":"warning","message":{"text":"IterativeOptimizer.exploreNode (cognitive 25): IterativeOptimizer.exploreNode has cognitive complexity 25 (threshold 15). Drivers by points: if/else 20, loops 3, 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/IterativeOptimizer.java"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbb236e9d83d0033f4217760bb7b08b6743e3e22df5c9be39bdc843ab76cde7b"}},{"ruleId":"D2","level":"warning","message":{"text":"LiteralInterpreter.evaluate (cognitive 25): LiteralInterpreter.evaluate has cognitive complexity 25 (threshold 15). Drivers by points: if/else 21, boolean chains 2, error handling 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/LiteralInterpreter.java"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"a185916805fc197c6bf73f801afeadeedea8605561980c95f957a9bb8b9a1e46"}},{"ruleId":"D2","level":"warning","message":{"text":"Visitor.tryHandleLike (cognitive 25): Visitor.tryHandleLike has cognitive complexity 25 (threshold 15). Drivers by points: if/else 18, 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/RowExpressionInterpreter.java"},"region":{"startLine":869}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef182dadd5235b76b09b6413ac37f05c94e81fd2bd8e28e4c2a6a9bf0e67521b"}},{"ruleId":"D2","level":"warning","message":{"text":"PluginManager.installPlugin (cognitive 25): PluginManager.installPlugin has cognitive complexity 25 (threshold 15). Drivers by points: loops 23, if/else 2 (nesting depth added 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":"presto-main-base/src/main/java/com/facebook/presto/server/PluginManager.java"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"db1340561d5f2745cc0d0de784649130441b50b5bf7b84ade9febd3e932d4ee8"}},{"ruleId":"D2","level":"warning","message":{"text":"PartitionAdder.execute (cognitive 25): PartitionAdder.execute has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12, error handling 6, 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":"presto-hive-metastore/src/main/java/com/facebook/presto/hive/metastore/SemiTransactionalHiveMetastore.java"},"region":{"startLine":3061}}}],"partialFingerprints":{"codehealthFindingId/v1":"78c8eb2cba0f633f8096909d25af1d9461b33abd228a721501dcb9539c71c224"}},{"ruleId":"D2","level":"warning","message":{"text":"IonSqlQueryBuilder.toPredicate (cognitive 25): IonSqlQueryBuilder.toPredicate has cognitive complexity 25 (threshold 15). Drivers by points: if/else 15, ternaries 6, 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":"presto-hive/src/main/java/com/facebook/presto/hive/IonSqlQueryBuilder.java"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"c402472397074d9543519e056ad0e6587f1b60c2ef403b2519866ae67297b3ac"}},{"ruleId":"D2","level":"warning","message":{"text":"IcebergUtil.getNativeValue (cognitive 25): IcebergUtil.getNativeValue has cognitive complexity 25 (threshold 15). Drivers by points: if/else 23, 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":"presto-iceberg/src/main/java/com/facebook/presto/iceberg/IcebergUtil.java"},"region":{"startLine":1623}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6140fa450e318556c2be6d4313e134dfc796b2f703a63ee054569f4b1b74abb"}},{"ruleId":"D2","level":"warning","message":{"text":"KuduPageSink.appendColumn (cognitive 25): KuduPageSink.appendColumn has cognitive complexity 25 (threshold 15). Drivers by points: if/else 25 (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":"presto-kudu/src/main/java/com/facebook/presto/kudu/KuduPageSink.java"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebd24f3ead043315763f5e227243ffa287cd88b5aa570e1ace2219a4c9e2cf4a"}},{"ruleId":"D2","level":"warning","message":{"text":"PagePartitioner.partitionPage (cognitive 25): PagePartitioner.partitionPage has cognitive complexity 25 (threshold 15). Drivers by points: loops 13, if/else 9, boolean chains 2, error handling 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":"presto-main-base/src/main/java/com/facebook/presto/operator/repartition/OptimizedPartitionedOutputOperator.java"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4362f3ad66e0affecb821e5a7743b7ac9f47e410222672aa8b932fd7cff50e4"}},{"ruleId":"D2","level":"warning","message":{"text":"StringFunctions.jaroWinklerSimilarity (cognitive 25): StringFunctions.jaroWinklerSimilarity has cognitive complexity 25 (threshold 15). Drivers by points: if/else 15, loops 9, 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":"presto-main-base/src/main/java/com/facebook/presto/operator/scalar/StringFunctions.java"},"region":{"startLine":763}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5702a5c00f9ff5eced181fc1abcc7e645933a4e9a9cc09f8d29d6ca4acd4f90"}},{"ruleId":"D2","level":"warning","message":{"text":"LagFunction.processRow (cognitive 25): LagFunction.processRow has cognitive complexity 25 (threshold 15). Drivers by points: if/else 18, loops 3, boolean chains 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":"presto-main-base/src/main/java/com/facebook/presto/operator/window/LagFunction.java"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b35e830c12505a311fed8785195eefe3a5ae31e3935e66104b784fd78a4b97c"}},{"ruleId":"D2","level":"warning","message":{"text":"LeadFunction.processRow (cognitive 25): LeadFunction.processRow has cognitive complexity 25 (threshold 15). Drivers by points: if/else 18, loops 3, boolean chains 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":"presto-main-base/src/main/java/com/facebook/presto/operator/window/LeadFunction.java"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb1c8c4cd26a4f6d5d8260e8e2a0ea182bc8b2c0558f5b0fa3cbcbec3acf485f"}},{"ruleId":"D2","level":"warning","message":{"text":"MongoSession.buildPredicate (cognitive 25): MongoSession.buildPredicate has cognitive complexity 25 (threshold 15). Drivers by points: if/else 14, ternaries 8, boolean chains 2, 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":"presto-mongodb/src/main/java/com/facebook/presto/mongodb/MongoSession.java"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ce676d5352d64707346a56e9f2dd696c1834f0fd2b98c8d8afe7970362df552"}},{"ruleId":"D2","level":"warning","message":{"text":"StructSelectiveStreamReader.\u003Cinit\u003E (cognitive 25): StructSelectiveStreamReader.\u003Cinit\u003E has cognitive complexity 25 (threshold 15). Drivers by points: if/else 14, ternaries 6, loops 3, boolean chains 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":"presto-orc/src/main/java/com/facebook/presto/orc/reader/StructSelectiveStreamReader.java"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b59e59a7764d861b3907d0bc651190ee0a5685bc2fbdf3b598e265c02ed3aa1"}},{"ruleId":"D2","level":"warning","message":{"text":"RepetitionLevelDecoder.readNext (cognitive 25): RepetitionLevelDecoder.readNext has cognitive complexity 25 (threshold 15). Drivers by points: loops 12, if/else 10, match/switch 2, 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":"presto-parquet/src/main/java/com/facebook/presto/parquet/batchreader/decoders/RepetitionLevelDecoder.java"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"14625781ea086b483897cb7f93ddea262f185849813aea1f8cdb5965028341de"}},{"ruleId":"D2","level":"warning","message":{"text":"ParquetTypeVisitor.visit (cognitive 25): ParquetTypeVisitor.visit has cognitive complexity 25 (threshold 15). Drivers by points: if/else 25 (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":"presto-parquet/src/main/java/com/facebook/presto/parquet/writer/ParquetTypeVisitor.java"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"95763758fbb042bbb81ac64d5fa36ce1a3f004403f50df3db4f662ce434ab878"}},{"ruleId":"D2","level":"warning","message":{"text":"Rewriter.getSubstitution (cognitive 25): Rewriter.getSubstitution has cognitive complexity 25 (threshold 15). Drivers by points: if/else 20, loops 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":"presto-verifier/src/main/java/com/facebook/presto/verifier/rewrite/FunctionCallRewriter.java"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3b38db20762d36eb4ff0d6bcd1d9e9c0a7e45a7caef019959b6eb098baf999e"}},{"ruleId":"D2","level":"warning","message":{"text":"Row.valueFromString (cognitive 24): Row.valueFromString has cognitive complexity 24 (threshold 15). Drivers by points: if/else 16, loops 7, boolean chains 1 (nesting depth added 5). 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":"presto-accumulo/src/main/java/com/facebook/presto/accumulo/model/Row.java"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc7c06dbc01d0297f0c7a87ffc5a16259953ea62a4558c30267bc8bcc5ca73bf"}},{"ruleId":"D2","level":"warning","message":{"text":"Visitor.analyzeFrameRangeOffset (cognitive 24): Visitor.analyzeFrameRangeOffset has cognitive complexity 24 (threshold 15). Drivers by points: if/else 18, boolean chains 5, error handling 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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/ExpressionAnalyzer.java"},"region":{"startLine":1290}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2b2752d0d13774222d0e68bae2b1a272a6272876b7b06027846953d4b807ab8"}},{"ruleId":"D2","level":"warning","message":{"text":"Visitor.visitExchange (cognitive 24): Visitor.visitExchange has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10, ternaries 8, 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PropertyDerivations.java"},"region":{"startLine":701}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9554a6805e9f3dd28cc2d1a8738da90871a3a1bd35b332aba6dc4f264438c43"}},{"ruleId":"D2","level":"warning","message":{"text":"Formatter.visitCall (cognitive 24): Formatter.visitCall has cognitive complexity 24 (threshold 15). Drivers by points: if/else 22, boolean chains 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/planPrinter/RowExpressionFormatter.java"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"335e5b48de622effe739c40fb1a3ff5f2e2789adb39d349686c721423f7a1f70"}},{"ruleId":"D2","level":"warning","message":{"text":"Visitor.tryHandleCast (cognitive 24): Visitor.tryHandleCast has cognitive complexity 24 (threshold 15). Drivers by points: if/else 23, 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/RowExpressionInterpreter.java"},"region":{"startLine":797}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a0b03ce280af6531d9426224bf7db412ea999b45b18e2cea38933aaef1e65c2"}},{"ruleId":"D2","level":"warning","message":{"text":"AstBuilder.decodeUnicodeLiteral (cognitive 24): AstBuilder.decodeUnicodeLiteral has cognitive complexity 24 (threshold 15). Drivers by points: if/else 21, 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":"presto-parser/src/main/java/com/facebook/presto/sql/parser/AstBuilder.java"},"region":{"startLine":2624}}}],"partialFingerprints":{"codehealthFindingId/v1":"e667ebd5013bdcc1497028873cd4cdd4ed03a3d9b5d0dc1d62005d8fa6181de8"}},{"ruleId":"D2","level":"warning","message":{"text":"EncoderUtil.encodeNullsAsBits (cognitive 24): EncoderUtil.encodeNullsAsBits has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 19, loops 3, if/else 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":"presto-common/src/main/java/com/facebook/presto/common/block/EncoderUtil.java"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"240cc0aeff0ba63c60cfbbb683f3e633f145a9cb1d2cc616f2ac9efedbe2ae6c"}},{"ruleId":"D2","level":"warning","message":{"text":"Base32.encode (cognitive 24): Base32.encode has cognitive complexity 24 (threshold 15). Drivers by points: if/else 17, boolean chains 3, loops 2, match/switch 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":"presto-common/src/main/java/com/facebook/presto/common/type/encoding/Base32.java"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"f16c01a9b71b90d0f08136e6b4dcac50a17ce21150563ddef00785e0bc34658e"}},{"ruleId":"D2","level":"warning","message":{"text":"StoragePartitionLoader.loadPartition (cognitive 24): StoragePartitionLoader.loadPartition has cognitive complexity 24 (threshold 15). Drivers by points: if/else 21, boolean chains 2, 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":"presto-hive/src/main/java/com/facebook/presto/hive/StoragePartitionLoader.java"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3e067b6161f43a4e0191dcc773f8a2c71e5572b6f2ee5cf8bc18f9a91541f69"}},{"ruleId":"D2","level":"warning","message":{"text":"IcebergOrcFileWriter.toIcebergMinMax (cognitive 24): IcebergOrcFileWriter.toIcebergMinMax has cognitive complexity 24 (threshold 15). Drivers by points: if/else 19, boolean chains 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":"presto-iceberg/src/main/java/com/facebook/presto/iceberg/IcebergOrcFileWriter.java"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d595b31d18dddb2760993b0fe9519ea91586668871c720f23e0cf41a0fce698"}},{"ruleId":"D2","level":"warning","message":{"text":"HistoryBasedPlanStatisticsCalculator.getStatistics (cognitive 24): HistoryBasedPlanStatisticsCalculator.getStatistics has cognitive complexity 24 (threshold 15). Drivers by points: if/else 19, loops 3, boolean chains 1, error handling 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":"presto-main-base/src/main/java/com/facebook/presto/cost/HistoryBasedPlanStatisticsCalculator.java"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"a80a1ca219fc5899241520812bb7d5709e120bcb5d7fff30db86923290f0715b"}},{"ruleId":"D2","level":"warning","message":{"text":"FunctionInvokerProvider.checkChoice (cognitive 24): FunctionInvokerProvider.checkChoice has cognitive complexity 24 (threshold 15). Drivers by points: if/else 18, 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":"presto-main-base/src/main/java/com/facebook/presto/metadata/FunctionInvokerProvider.java"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe641a992cf9536cda2fb59ad8b89cf02ecb2d110cbd37cc4affb00a151094f3"}},{"ruleId":"D2","level":"warning","message":{"text":"ArraysOverlapFunction.arraysOverlap (cognitive 24): ArraysOverlapFunction.arraysOverlap has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11, ternaries 6, error handling 3, 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":"presto-main-base/src/main/java/com/facebook/presto/operator/scalar/ArraysOverlapFunction.java"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"8410a6d45eb4289c2a50b6605bd06c1e457aab1be154bab0d5497c9612f9c2b9"}},{"ruleId":"D2","level":"warning","message":{"text":"RegularTableFunctionPartition.prepareInputPages (cognitive 24): RegularTableFunctionPartition.prepareInputPages has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13, loops 11 (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":"presto-main-base/src/main/java/com/facebook/presto/operator/RegularTableFunctionPartition.java"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbd5f470a5a2725445b565f7f5e2dd8aeb5cec13c6efc57934366d12a793532a"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskContext.getTaskStats (cognitive 24): TaskContext.getTaskStats has cognitive complexity 24 (threshold 15). Drivers by points: if/else 16, boolean chains 5, loops 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":"presto-main-base/src/main/java/com/facebook/presto/operator/TaskContext.java"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"52fdbf992fe9cb482b8f9cb78532f218cfb91187abdd140f62f8621a5d620894"}},{"ruleId":"D2","level":"warning","message":{"text":"QueryAssertions.assertQuery (cognitive 24): QueryAssertions.assertQuery has cognitive complexity 24 (threshold 15). Drivers by points: if/else 18, error handling 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":"presto-tests/src/main/java/com/facebook/presto/tests/QueryAssertions.java"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"983c3c1f2e06e7114e4ed8b0b30d66cebc86008e0dac8a7bb59780b323225ae3"}},{"ruleId":"D2","level":"warning","message":{"text":"DwrfMetadataReader.decryptAndCombineFileStatistics (cognitive 24): DwrfMetadataReader.decryptAndCombineFileStatistics has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13, loops 6, error handling 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":"presto-orc/src/main/java/com/facebook/presto/orc/metadata/DwrfMetadataReader.java"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"d07a06b6b8ac0d4c4f4d275b1c84a78f8e13354c878866de3ec649ef88a17f17"}},{"ruleId":"D2","level":"warning","message":{"text":"LexicoderRowSerializer.encode (cognitive 23): LexicoderRowSerializer.encode has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13, boolean chains 10. 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":"presto-accumulo/src/main/java/com/facebook/presto/accumulo/serializers/LexicoderRowSerializer.java"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee0c413e65ac301489f94b8acd05a2b8437a1c9d0f0a8297e09ddf7175d2826b"}},{"ruleId":"D2","level":"warning","message":{"text":"Visitor.visitValues (cognitive 23): Visitor.visitValues has cognitive complexity 23 (threshold 15). Drivers by points: if/else 16, 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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java"},"region":{"startLine":4032}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dceb6582020c23472da8d1e75791ed930a2640d00beb5b8c6ea73524242b718"}},{"ruleId":"D2","level":"warning","message":{"text":"CommonSubExpressionRewriter.getExpressionsPartitionedByCSE (cognitive 23): CommonSubExpressionRewriter.getExpressionsPartitionedByCSE has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12, loops 8, boolean chains 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":"presto-main-base/src/main/java/com/facebook/presto/sql/gen/CommonSubExpressionRewriter.java"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec75632800b44dcb6a21111bd07c3db0653d524358eff1fa10919e1774305bdc"}},{"ruleId":"D2","level":"warning","message":{"text":"EquivalenceClassProperty.project (cognitive 23): EquivalenceClassProperty.project has cognitive complexity 23 (threshold 15). Drivers by points: if/else 17, 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/properties/EquivalenceClassProperty.java"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"1284f73bb928fb08e6498574ffe1ea36a12c33aca0f551ba1d8c20e363ab2ef5"}},{"ruleId":"D2","level":"warning","message":{"text":"CollapseFanoutJoinWithArrayAggUnnest.isCollapsibleFanout (cognitive 23): CollapseFanoutJoinWithArrayAggUnnest.isCollapsibleFanout has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14, 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/CollapseFanoutJoinWithArrayAggUnnest.java"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f1ede2018cdce680d770aa4e71e3e55da1b8d5b91834ee2a06e2c168c426dc3"}},{"ruleId":"D2","level":"warning","message":{"text":"Visitor.processArguments (cognitive 23): Visitor.processArguments has cognitive complexity 23 (threshold 15). Drivers by points: if/else 19, boolean chains 3, 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PlanRemoteProjections.java"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dd299e5c022a9b4efbe69f42525a98ce167758b064a8c2d26eb84bd4786ad6c"}},{"ruleId":"D2","level":"warning","message":{"text":"StatusPrinter.printQueryInfo (cognitive 23): StatusPrinter.printQueryInfo has cognitive complexity 23 (threshold 15). Drivers by points: if/else 21, boolean chains 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":"presto-cli/src/main/java/com/facebook/presto/cli/StatusPrinter.java"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4287f2e18339a1a3b244b171287a37a57e2653cac0a214b4123bbe17859b108"}},{"ruleId":"D2","level":"warning","message":{"text":"Base32.decode (cognitive 23): Base32.decode has cognitive complexity 23 (threshold 15). Drivers by points: if/else 18, boolean chains 2, match/switch 2, 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":"presto-common/src/main/java/com/facebook/presto/common/type/encoding/Base32.java"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"84b094287c69a432be8fbeffa4df0a64201e95201b04d7c2180bdcdd5587dbf4"}},{"ruleId":"D2","level":"warning","message":{"text":"ElasticsearchQueryBuilder.buildTermQuery (cognitive 23): ElasticsearchQueryBuilder.buildTermQuery has cognitive complexity 23 (threshold 15). Drivers by points: if/else 22, 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":"presto-elasticsearch/src/main/java/com/facebook/presto/elasticsearch/ElasticsearchQueryBuilder.java"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd6e61120f9d8c098e16904c86c96998259b4cfaf6c2507746dbfb5298de2dbc"}},{"ruleId":"D2","level":"warning","message":{"text":"FileHiveMetastore.createTable (cognitive 23): FileHiveMetastore.createTable has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13, error handling 6, boolean chains 2, 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":"presto-hive-metastore/src/main/java/com/facebook/presto/hive/metastore/file/FileHiveMetastore.java"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"d31ed2db58c40cf0be4d0aab744d4a54c558067dae0675afee76c7f1f8d3af39"}},{"ruleId":"D2","level":"warning","message":{"text":"GlueExpressionUtil.buildGlueExpressionForSingleDomain (cognitive 23): GlueExpressionUtil.buildGlueExpressionForSingleDomain has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14, ternaries 8, 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":"presto-hive-metastore/src/main/java/com/facebook/presto/hive/metastore/glue/GlueExpressionUtil.java"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"166f53d3a114ad60955dce6e2921274acb3e12fa3d5267b05828d80a7af7cbe2"}},{"ruleId":"D2","level":"warning","message":{"text":"MetastoreUtil.getField (cognitive 23): MetastoreUtil.getField has cognitive complexity 23 (threshold 15). Drivers by points: if/else 17, loops 6 (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":"presto-hive-metastore/src/main/java/com/facebook/presto/hive/metastore/MetastoreUtil.java"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"1af45c92c30856461d49f32afc87cd87b12122b3646079651f5091a682615ce3"}},{"ruleId":"D2","level":"warning","message":{"text":"SemiTransactionalHiveMetastore.doGetPartitionNames (cognitive 23): SemiTransactionalHiveMetastore.doGetPartitionNames has cognitive complexity 23 (threshold 15). Drivers by points: if/else 16, loops 3, match/switch 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":"presto-hive-metastore/src/main/java/com/facebook/presto/hive/metastore/SemiTransactionalHiveMetastore.java"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"362b48a1bde348488bdfccfe0018d02065f8e21cc47f96baeb4402e3f00cd6e0"}},{"ruleId":"D2","level":"warning","message":{"text":"SemiTransactionalHiveMetastore.rollbackShared (cognitive 23): SemiTransactionalHiveMetastore.rollbackShared has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11, loops 9, match/switch 2, 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":"presto-hive-metastore/src/main/java/com/facebook/presto/hive/metastore/SemiTransactionalHiveMetastore.java"},"region":{"startLine":1879}}}],"partialFingerprints":{"codehealthFindingId/v1":"27f59d67c98b9a9094ec17376dba73cbd785b1145c5ccfdd7a3a41a75d918e60"}},{"ruleId":"D2","level":"warning","message":{"text":"AggregatedParquetPageSource.writeMinMax (cognitive 23): AggregatedParquetPageSource.writeMinMax has cognitive complexity 23 (threshold 15). Drivers by points: if/else 17, boolean chains 4, loops 1, match/switch 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":"presto-hive/src/main/java/com/facebook/presto/hive/parquet/AggregatedParquetPageSource.java"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd5684cd208e15897bc23f5ac9a79589ec61f0e4f613c4f27e416e824b2c8d5e"}},{"ruleId":"D2","level":"warning","message":{"text":"RetryDriver.run (cognitive 23): RetryDriver.run has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12, error handling 5, 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":"presto-hive-metastore/src/main/java/com/facebook/presto/hive/RetryDriver.java"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ce61e4e34367ff29839e73fca4cfed8817a183b3d19f47978a71a503d902d61"}},{"ruleId":"D2","level":"warning","message":{"text":"StoragePartitionLoader.computeBucketToFileInfoMapping (cognitive 23): StoragePartitionLoader.computeBucketToFileInfoMapping has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14, loops 5, error handling 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":"presto-hive/src/main/java/com/facebook/presto/hive/StoragePartitionLoader.java"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"85af1f295c0cd8ca855210377357a2c35fcd3072e1ebaf8e2f62fd95ebe883b9"}},{"ruleId":"D2","level":"warning","message":{"text":"LanceSqlFilterBuilder.buildColumnPredicate (cognitive 23): LanceSqlFilterBuilder.buildColumnPredicate has cognitive complexity 23 (threshold 15). Drivers by points: if/else 18, 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":"presto-lance/src/main/java/com/facebook/presto/lance/LanceSqlFilterBuilder.java"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8690e6b0f9430335a8260ddd7453bc6ff5be2e401313581eadf2b3dc11520f3"}},{"ruleId":"D2","level":"warning","message":{"text":"ArrayRemoveFunction.remove (cognitive 23): ArrayRemoveFunction.remove has cognitive complexity 23 (threshold 15). Drivers by points: if/else 15, error handling 5, 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":"presto-main-base/src/main/java/com/facebook/presto/operator/scalar/ArrayRemoveFunction.java"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5d3dc9594a411735357da678b4e3f7e8ff966b06aaddd360ae505fff1b25d5d"}},{"ruleId":"D2","level":"warning","message":{"text":"JsonSizeExtractor.extract (cognitive 23): JsonSizeExtractor.extract has cognitive complexity 23 (threshold 15). Drivers by points: if/else 19, 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":"presto-main-base/src/main/java/com/facebook/presto/operator/scalar/JsonExtract.java"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"def0311edf79f84af5f6c8534256399a69d4bfbc00f3e232ed6efe5eabd9515f"}},{"ruleId":"D2","level":"warning","message":{"text":"NthValueFunction.processRow (cognitive 23): NthValueFunction.processRow has cognitive complexity 23 (threshold 15). Drivers by points: if/else 17, boolean chains 3, 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":"presto-main-base/src/main/java/com/facebook/presto/operator/window/NthValueFunction.java"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2448282549dfce3928260363939b376e625a128d78bfe64ce5134bfd633271d"}},{"ruleId":"D2","level":"warning","message":{"text":"InMemoryGroupedTopNBuilder.processPage (cognitive 23): InMemoryGroupedTopNBuilder.processPage has cognitive complexity 23 (threshold 15). Drivers by points: if/else 20, loops 2, 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":"presto-main-base/src/main/java/com/facebook/presto/operator/InMemoryGroupedTopNBuilder.java"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"82be7bfb5e1c8499de128f3df2ca0ddab5b31feb7d49ddce57774e83a9a74d6a"}},{"ruleId":"D2","level":"warning","message":{"text":"H2QueryRunner.insertRows (cognitive 23): H2QueryRunner.insertRows has cognitive complexity 23 (threshold 15). Drivers by points: if/else 17, loops 6 (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":"presto-tests/src/main/java/com/facebook/presto/tests/H2QueryRunner.java"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac8f7d4ce55cd933923ba37e588fdd0120a9cf803d00cb8b65611c3354e27f9f"}},{"ruleId":"D2","level":"warning","message":{"text":"Checkpoints.getSliceColumnCheckpoints (cognitive 23): Checkpoints.getSliceColumnCheckpoints has cognitive complexity 23 (threshold 15). Drivers by points: if/else 21, boolean chains 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":"presto-orc/src/main/java/com/facebook/presto/orc/checkpoint/Checkpoints.java"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2330f9a1c8352d658c3f6d4bed761234fc5270f27552fdedf9a09412e6b3c33"}},{"ruleId":"D2","level":"warning","message":{"text":"MapFlatSelectiveStreamReader.assembleMapBlock (cognitive 23): MapFlatSelectiveStreamReader.assembleMapBlock has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14, loops 6, boolean chains 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":"presto-orc/src/main/java/com/facebook/presto/orc/reader/MapFlatSelectiveStreamReader.java"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f515d296249e3d59fa36df7f32b5ed71edf970430a5af377ef80ebb814e940a"}},{"ruleId":"D2","level":"warning","message":{"text":"TimestampBatchStreamReader.readBlock (cognitive 23): TimestampBatchStreamReader.readBlock has cognitive complexity 23 (threshold 15). Drivers by points: if/else 22, 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":"presto-orc/src/main/java/com/facebook/presto/orc/reader/TimestampBatchStreamReader.java"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"ead395757b961c3cba6a1b5da4b055d0924012b1710efa9b309d8e9c50430dea"}},{"ruleId":"D2","level":"warning","message":{"text":"AbstractResourceConfigurationManager.getMatchingSpec (cognitive 23): AbstractResourceConfigurationManager.getMatchingSpec has cognitive complexity 23 (threshold 15). Drivers by points: if/else 20, loops 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":"presto-resource-group-managers/src/main/java/com/facebook/presto/resourceGroups/AbstractResourceConfigurationManager.java"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"83497dd3cd8a6d244a358a35fc5d116bb50fcd56debf9d3eb40faa2c24c4a099"}},{"ruleId":"D2","level":"warning","message":{"text":"AccumuloClient.getTabletLocation (cognitive 22): AccumuloClient.getTabletLocation has cognitive complexity 22 (threshold 15). Drivers by points: if/else 18, loops 2, error handling 1, ternaries 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":"presto-accumulo/src/main/java/com/facebook/presto/accumulo/AccumuloClient.java"},"region":{"startLine":778}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf0104341ec59c7f55a39371e2a62175a4f1660c1b8b7a950a408717db731642"}},{"ruleId":"D2","level":"warning","message":{"text":"Visitor.expressionReferencesName (cognitive 22): Visitor.expressionReferencesName has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14, boolean chains 4, loops 4 (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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/ExpressionAnalyzer.java"},"region":{"startLine":1208}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ccb87e129b5084b6bb16b6a07058090522d566b5a29292c2d8f8ec66a795a75"}},{"ruleId":"D2","level":"warning","message":{"text":"Visitor.visitQuerySpecification (cognitive 22): Visitor.visitQuerySpecification has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14, loops 5, 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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java"},"region":{"startLine":3249}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f1cb35af0ff945d5d5281078ff29a669ebfad43d2af548f2aaf238716941cc2"}},{"ruleId":"D2","level":"warning","message":{"text":"PlanRemoteProjections.mergeProjectionContexts (cognitive 22): PlanRemoteProjections.mergeProjectionContexts has cognitive complexity 22 (threshold 15). Drivers by points: if/else 16, 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PlanRemoteProjections.java"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"63bc7703a750d433d94154d080d363cbb02f6995a983f4d6b445254507bc4237"}},{"ruleId":"D2","level":"warning","message":{"text":"PushFilterThroughSelectingAggregation.tryPushdown (cognitive 22): PushFilterThroughSelectingAggregation.tryPushdown has cognitive complexity 22 (threshold 15). Drivers by points: if/else 17, boolean chains 4, match/switch 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PushFilterThroughSelectingAggregation.java"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc454d7045c8b1cd9174d139ea28f14a87a69362ae316a91772ab75c22afe797"}},{"ruleId":"D2","level":"warning","message":{"text":"Visitor.visitLikePredicate (cognitive 22): Visitor.visitLikePredicate has cognitive complexity 22 (threshold 15). Drivers by points: if/else 16, boolean chains 6 (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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/ExpressionInterpreter.java"},"region":{"startLine":1031}}}],"partialFingerprints":{"codehealthFindingId/v1":"11686bd7663063dafe81951d15f9a67a47c082e7cbfd36ae5cd54b87d7c0d7d7"}},{"ruleId":"D2","level":"warning","message":{"text":"DeltaTypeUtils.convertPartitionValue (cognitive 22): DeltaTypeUtils.convertPartitionValue has cognitive complexity 22 (threshold 15). Drivers by points: if/else 15, boolean chains 4, ternaries 2, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-delta/src/main/java/com/facebook/presto/delta/DeltaTypeUtils.java"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"1497214a5799ae7c1086f18ab7f0d2bd919ca0d9ae2a1f2a1d76f3e29d80f378"}},{"ruleId":"D2","level":"warning","message":{"text":"ThriftHiveMetastore.createTable (cognitive 22): ThriftHiveMetastore.createTable has cognitive complexity 22 (threshold 15). Drivers by points: loops 11, if/else 7, error handling 4 (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":"presto-hive-metastore/src/main/java/com/facebook/presto/hive/metastore/thrift/ThriftHiveMetastore.java"},"region":{"startLine":1007}}}],"partialFingerprints":{"codehealthFindingId/v1":"e578c8033e41708d473140ec8e5ff649478aae1dee524c844f416faa8284f834"}},{"ruleId":"D2","level":"warning","message":{"text":"Committer.executeMetastoreDeleteOperations (cognitive 22): Committer.executeMetastoreDeleteOperations has cognitive complexity 22 (threshold 15). Drivers by points: if/else 17, boolean chains 2, error handling 2, 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":"presto-hive-metastore/src/main/java/com/facebook/presto/hive/metastore/SemiTransactionalHiveMetastore.java"},"region":{"startLine":1761}}}],"partialFingerprints":{"codehealthFindingId/v1":"a804fb8b0620aca73f35032b8c205440e2c8fde60395804f742ae3258b1042a4"}},{"ruleId":"D2","level":"warning","message":{"text":"HiveBucketAdapterRecordCursor.advanceNextPosition (cognitive 22): HiveBucketAdapterRecordCursor.advanceNextPosition has cognitive complexity 22 (threshold 15). Drivers by points: if/else 19, 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":"presto-hive/src/main/java/com/facebook/presto/hive/HiveBucketAdapterRecordCursor.java"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2a49b3e83120e889f52c76d6f3c5940173138090dbca23ad843bbc9440db0fc"}},{"ruleId":"D2","level":"warning","message":{"text":"HiveCoercer.createCoercer (cognitive 22): HiveCoercer.createCoercer has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 13, if/else 9. 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":"presto-hive/src/main/java/com/facebook/presto/hive/HiveCoercer.java"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fb48d8880c766e0fb055f450c6c4ad1a7c604ff0d396d3bf369d052580d9e6c"}},{"ruleId":"D2","level":"warning","message":{"text":"HiveCoercionRecordCursor.createCoercer (cognitive 22): HiveCoercionRecordCursor.createCoercer has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 13, if/else 9. 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":"presto-hive/src/main/java/com/facebook/presto/hive/HiveCoercionRecordCursor.java"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"74ff995e359efa1ff1f4856cd5661128180f7e7d193b6350678a4f1907db088d"}},{"ruleId":"D2","level":"warning","message":{"text":"HiveMetadata.finishCreateTable (cognitive 22): HiveMetadata.finishCreateTable has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14, loops 3, ternaries 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":"presto-hive/src/main/java/com/facebook/presto/hive/HiveMetadata.java"},"region":{"startLine":1826}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a2e40f4a4e6bcf43964a5be77fc0c87eaa9449a29a522c92487e1bc5ef3e27c"}},{"ruleId":"D2","level":"warning","message":{"text":"HiveRecordCursor.\u003Cinit\u003E (cognitive 22): HiveRecordCursor.\u003Cinit\u003E has cognitive complexity 22 (threshold 15). Drivers by points: if/else 21, 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":"presto-hive/src/main/java/com/facebook/presto/hive/HiveRecordCursor.java"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"0027349559b3f1b0cff0966da19e2081da1760c69cb4387b45459b4a54f04723"}},{"ruleId":"D2","level":"warning","message":{"text":"Optimizer.metricsModeSupportsAggregatePushDown (cognitive 22): Optimizer.metricsModeSupportsAggregatePushDown has cognitive complexity 22 (threshold 15). Drivers by points: if/else 18, boolean chains 3, 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":"presto-iceberg/src/main/java/com/facebook/presto/iceberg/optimizer/IcebergAggregationOptimizer.java"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae48ac1b066252617b62b2b8272920b8fa9cb78dc9525f55bb0e7737e3c9058e"}},{"ruleId":"D2","level":"warning","message":{"text":"IcebergUpdateablePageSource.\u003Cinit\u003E (cognitive 22): IcebergUpdateablePageSource.\u003Cinit\u003E has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14, 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":"presto-iceberg/src/main/java/com/facebook/presto/iceberg/IcebergUpdateablePageSource.java"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ac36a05dc84004d0d34c0142d4a9489ad80d27a6bc89c448b9398893d516bc9"}},{"ruleId":"D2","level":"warning","message":{"text":"LanceColumnHandle.toPrestoType (cognitive 22): LanceColumnHandle.toPrestoType has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14, boolean chains 5, match/switch 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":"presto-lance/src/main/java/com/facebook/presto/lance/LanceColumnHandle.java"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7eb0ab032029be4314fe863dee48decb80c31afd35f9cb8785d3f12f87a7216"}},{"ruleId":"D2","level":"warning","message":{"text":"CreateBranchTask.execute (cognitive 22): CreateBranchTask.execute has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14, boolean chains 4, ternaries 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":"presto-main-base/src/main/java/com/facebook/presto/execution/CreateBranchTask.java"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"276eb8d853bb20d84d3ec4c06a9aa2494d7ab215ea07d1ba849e9337725978f4"}},{"ruleId":"D2","level":"warning","message":{"text":"CreateTagTask.execute (cognitive 22): CreateTagTask.execute has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14, boolean chains 4, ternaries 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":"presto-main-base/src/main/java/com/facebook/presto/execution/CreateTagTask.java"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"27aa14389a7294769afd4b1a580d09841881c0d89fe1b3e9ee2f2e66d82e4c84"}},{"ruleId":"D2","level":"warning","message":{"text":"QueryStats.create (cognitive 22): QueryStats.create has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14, boolean chains 4, 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":"presto-main-base/src/main/java/com/facebook/presto/execution/QueryStats.java"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f26c567ca83f74a18df090531ba3ed4e9143cdff5448332c15112112ac8ed26"}},{"ruleId":"D2","level":"warning","message":{"text":"ProjectSelectedPositions.processBatch (cognitive 22): ProjectSelectedPositions.processBatch has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13, loops 7, 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":"presto-main-base/src/main/java/com/facebook/presto/operator/project/PageProcessor.java"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"295775c70f0a3a45211f2815670cfa7333f7ba16bd96f3d4ac38dc51d0efaae7"}},{"ruleId":"D2","level":"warning","message":{"text":"TDigestUtils.quickSort (cognitive 22): TDigestUtils.quickSort has cognitive complexity 22 (threshold 15). Drivers by points: if/else 16, loops 5, 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":"presto-main-base/src/main/java/com/facebook/presto/tdigest/TDigestUtils.java"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"aed6f81424b9e673a0b440e4f4e5c98ac698095431f3d172274769613dbd77f8"}},{"ruleId":"D2","level":"warning","message":{"text":"MapDirectBatchStreamReader.readBlock (cognitive 22): MapDirectBatchStreamReader.readBlock has cognitive complexity 22 (threshold 15). Drivers by points: if/else 20, 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":"presto-orc/src/main/java/com/facebook/presto/orc/reader/MapDirectBatchStreamReader.java"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecc966cc77db456c59664dcee32671a4d16bf8b3a9e72b15ef88312a069ceeed"}},{"ruleId":"D2","level":"warning","message":{"text":"StructSelectiveStreamReader.getBlock (cognitive 22): StructSelectiveStreamReader.getBlock has cognitive complexity 22 (threshold 15). Drivers by points: if/else 15, boolean chains 3, ternaries 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":"presto-orc/src/main/java/com/facebook/presto/orc/reader/StructSelectiveStreamReader.java"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"652b3aa52eecb070ca84a54cf06b5c5ee42ab76d6d284c24e6a0b5d075cf45f6"}},{"ruleId":"D2","level":"warning","message":{"text":"AbstractOrcRecordReader.\u003Cinit\u003E (cognitive 22): AbstractOrcRecordReader.\u003Cinit\u003E has cognitive complexity 22 (threshold 15). Drivers by points: if/else 15, loops 5, 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":"presto-orc/src/main/java/com/facebook/presto/orc/AbstractOrcRecordReader.java"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"06916827123c23c61962e524132e5140cc90134f28e8abf262e328a334cd6b96"}},{"ruleId":"D2","level":"warning","message":{"text":"DecimalValueWriter.write (cognitive 22): DecimalValueWriter.write 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":"presto-parquet/src/main/java/com/facebook/presto/parquet/writer/valuewriter/DecimalValueWriter.java"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cdac3d5d7c4f042aca9f670565e0d199562eccb6ebf428b348712a5fcf68156"}},{"ruleId":"D2","level":"warning","message":{"text":"StaticSelector.match (cognitive 22): StaticSelector.match has cognitive complexity 22 (threshold 15). Drivers by points: if/else 18, 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":"presto-resource-group-managers/src/main/java/com/facebook/presto/resourceGroups/StaticSelector.java"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa6d0594bde47f8227f5850e60ca2387bc779c866b3d1abc449318cf3fcef3f0"}},{"ruleId":"D2","level":"warning","message":{"text":"PrestoSparkAdaptiveQueryExecution.doExecute (cognitive 22): PrestoSparkAdaptiveQueryExecution.doExecute has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13, loops 5, error handling 2, boolean chains 1, 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":"presto-spark-base/src/main/java/com/facebook/presto/spark/execution/PrestoSparkAdaptiveQueryExecution.java"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc92dbe0cecb353c40d9d847d8d77b8fb24992dacda4e6eaed9af790344b4940"}},{"ruleId":"D2","level":"warning","message":{"text":"PrestoSparkInjectorFactory.create (cognitive 22): PrestoSparkInjectorFactory.create has cognitive complexity 22 (threshold 15). Drivers by points: if/else 18, boolean chains 3, error handling 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":"presto-spark-base/src/main/java/com/facebook/presto/spark/PrestoSparkInjectorFactory.java"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"0056de1040a2e4bf7854854179ceb43f4eda9662df78175087b71cc938db3ac4"}},{"ruleId":"D2","level":"warning","message":{"text":"Visitor.analyzeJoinUsing (cognitive 21): Visitor.analyzeJoinUsing 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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java"},"region":{"startLine":3940}}}],"partialFingerprints":{"codehealthFindingId/v1":"136dc97fcb216a0f80bedd26f6545cf1ade442aae6b2aadd307a74e08637af9b"}},{"ruleId":"D2","level":"warning","message":{"text":"Visitor.analyzeWindowFunctions (cognitive 21): Visitor.analyzeWindowFunctions has cognitive complexity 21 (threshold 15). Drivers by points: if/else 18, 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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java"},"region":{"startLine":4111}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcb64c0402f42af64e04d082a1ce3400652c16d1cb473ab56f775d320dbb2171"}},{"ruleId":"D2","level":"warning","message":{"text":"Visitor.visitJoin (cognitive 21): Visitor.visitJoin has cognitive complexity 21 (threshold 15). Drivers by points: if/else 19, boolean chains 1, 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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java"},"region":{"startLine":3502}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bed3b63317cf0992198c0e572865c2f242fd9a1b10633d170a2b6c7fadc1c89"}},{"ruleId":"D2","level":"warning","message":{"text":"ExtractSpatialJoins.loadKdbTree (cognitive 21): ExtractSpatialJoins.loadKdbTree has cognitive complexity 21 (threshold 15). Drivers by points: error handling 8, if/else 6, loops 6, 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/ExtractSpatialJoins.java"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d07c66bbe22e5795b6d878646c98d321461d2e99796335fc33cf9efdc990221"}},{"ruleId":"D2","level":"warning","message":{"text":"InterpretedFunctionInvoker.invoke (cognitive 21): InterpretedFunctionInvoker.invoke has cognitive complexity 21 (threshold 15). Drivers by points: if/else 18, boolean chains 1, error handling 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":"presto-main-base/src/main/java/com/facebook/presto/sql/InterpretedFunctionInvoker.java"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d6be5ad77045c8ca5893a591e60a1901971e9a34662b2b6342c7756a6bdd4eb"}},{"ruleId":"D2","level":"warning","message":{"text":"ClassGenerator.defineClasses (cognitive 21): ClassGenerator.defineClasses has cognitive complexity 21 (threshold 15). Drivers by points: error handling 12, loops 4, if/else 3, ternaries 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":"presto-bytecode/src/main/java/com/facebook/presto/bytecode/ClassGenerator.java"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"788b4aac9c3820280fde894c818e294eb9dd4125fd3caa792a9c287c351cd952"}},{"ruleId":"D2","level":"warning","message":{"text":"MapBlockBuilder.buildHashTableStrict (cognitive 21): MapBlockBuilder.buildHashTableStrict has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12, error handling 6, 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":"presto-common/src/main/java/com/facebook/presto/common/block/MapBlockBuilder.java"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"1846e0838297459811ba7b4c428b8c38215df63cfa971f953852baa96f3f14bb"}},{"ruleId":"D2","level":"warning","message":{"text":"TypeUtils.writeNativeValue (cognitive 21): TypeUtils.writeNativeValue has cognitive complexity 21 (threshold 15). Drivers by points: if/else 21 (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":"presto-common/src/main/java/com/facebook/presto/common/type/TypeUtils.java"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb4cf37b59406319e787687e0fea2e40f92fac64cdec928bd9bfddf9cc5d16a0"}},{"ruleId":"D2","level":"warning","message":{"text":"ServerMainModule.setup (cognitive 21): ServerMainModule.setup has cognitive complexity 21 (threshold 15). Drivers by points: if/else 16, boolean chains 4, 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":"presto-main/src/main/java/com/facebook/presto/server/ServerMainModule.java"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d8f846980c4f60897034dba0055ba213350308e8a1712b30f8e216476755c90"}},{"ruleId":"D2","level":"warning","message":{"text":"RcFilePageSourceFactory.createPageSource (cognitive 21): RcFilePageSourceFactory.createPageSource has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12, error handling 4, ternaries 3, 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":"presto-hive/src/main/java/com/facebook/presto/hive/rcfile/RcFilePageSourceFactory.java"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1a890384b213d476791bdfeff28afa1f5fbad09e4f2e2d61c8c9ac0b6c7d1f5"}},{"ruleId":"D2","level":"warning","message":{"text":"FilteringPageSource.getNextPage (cognitive 21): FilteringPageSource.getNextPage has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13, loops 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":"presto-hive/src/main/java/com/facebook/presto/hive/FilteringPageSource.java"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf23d0838cac67c4598679d5acda02a7f48115f8d22195b63b124db884ffeb93"}},{"ruleId":"D2","level":"warning","message":{"text":"HiveWriterFactory.\u003Cinit\u003E (cognitive 21): HiveWriterFactory.\u003Cinit\u003E has cognitive complexity 21 (threshold 15). Drivers by points: if/else 14, loops 5, error handling 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":"presto-hive/src/main/java/com/facebook/presto/hive/HiveWriterFactory.java"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"44714b8cfc5f4c6cddcec1697784fc670d0067eb492f1a113f054a25abbee933"}},{"ruleId":"D2","level":"warning","message":{"text":"HudiPageSource.deserializePartitionValue (cognitive 21): HudiPageSource.deserializePartitionValue has cognitive complexity 21 (threshold 15). Drivers by points: if/else 16, boolean chains 2, ternaries 2, error handling 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-hudi/src/main/java/com/facebook/presto/hudi/HudiPageSource.java"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"44fa03b17cb605d12a46426b7a719a9495a67770ecd59671eed2a46c0af3921b"}},{"ruleId":"D2","level":"warning","message":{"text":"IcebergPartitionLoader.loadPartitions (cognitive 21): IcebergPartitionLoader.loadPartitions has cognitive complexity 21 (threshold 15). Drivers by points: if/else 14, boolean chains 3, loops 3, 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":"presto-iceberg/src/main/java/com/facebook/presto/iceberg/IcebergPartitionLoader.java"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"94ced87560a4a7539b3142ecefd5dca53ba299de880ae4112ba42431e13c488e"}},{"ruleId":"D2","level":"warning","message":{"text":"IcebergUtil.deserializeIcebergValue (cognitive 21): IcebergUtil.deserializeIcebergValue has cognitive complexity 21 (threshold 15). Drivers by points: if/else 15, boolean chains 3, ternaries 2, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-iceberg/src/main/java/com/facebook/presto/iceberg/IcebergUtil.java"},"region":{"startLine":888}}}],"partialFingerprints":{"codehealthFindingId/v1":"679547499a61764f110eb77d65190a86a77c1e953688c3e52710de863a4edaa6"}},{"ruleId":"D2","level":"warning","message":{"text":"PartitionData.getValue (cognitive 21): PartitionData.getValue has cognitive complexity 21 (threshold 15). Drivers by points: if/else 18, error handling 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":"presto-iceberg/src/main/java/com/facebook/presto/iceberg/PartitionData.java"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee881a05d3d3f3e4c8279c8eee39af51fd8ba56b35a29e98149267629f346b60"}},{"ruleId":"D2","level":"warning","message":{"text":"TableJdbcTable.cursor (cognitive 21): TableJdbcTable.cursor has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10, loops 10, 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":"presto-main-base/src/main/java/com/facebook/presto/connector/system/jdbc/TableJdbcTable.java"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"6805c3c846fac034bca7c1bf76bd1b47de1172e91bb199dc49ba4a4e94b13833"}},{"ruleId":"D2","level":"warning","message":{"text":"FunctionAndTypeManager.getMatchingFunctionHandle (cognitive 21): FunctionAndTypeManager.getMatchingFunctionHandle has cognitive complexity 21 (threshold 15). Drivers by points: if/else 14, boolean chains 4, error handling 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-main-base/src/main/java/com/facebook/presto/metadata/FunctionAndTypeManager.java"},"region":{"startLine":1112}}}],"partialFingerprints":{"codehealthFindingId/v1":"2534ed2ba4812b82b0e602dfbdc2161f6df82e8a0d7132a6e4936297b3304e0f"}},{"ruleId":"D2","level":"warning","message":{"text":"IndexLoader.getIndexedDataForKeys (cognitive 21): IndexLoader.getIndexedDataForKeys has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13, loops 5, error handling 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":"presto-main-base/src/main/java/com/facebook/presto/operator/index/IndexLoader.java"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eaedaf31cd0541bb43d8198b7c03ed1e971430020256b5bf718fe042bc55130"}},{"ruleId":"D2","level":"warning","message":{"text":"PagePartitioner.partitionPage (cognitive 21): PagePartitioner.partitionPage has cognitive complexity 21 (threshold 15). Drivers by points: loops 10, if/else 9, boolean chains 2 (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":"presto-main-base/src/main/java/com/facebook/presto/operator/repartition/PartitionedOutputOperator.java"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f6cd0aa9238fa6c3bf255e52bd8cf856836044b9b36549e683fc6f02fd6a1ef"}},{"ruleId":"D2","level":"warning","message":{"text":"WindowPartition.getFrameRange (cognitive 21): WindowPartition.getFrameRange has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 8, boolean chains 6, if/else 5, match/switch 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":"presto-main-base/src/main/java/com/facebook/presto/operator/window/WindowPartition.java"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb0692c0c6ce66ecab632bfc5c7b643a218a23394a3323612e23f605e6f297ea"}},{"ruleId":"D2","level":"warning","message":{"text":"LikeFunctions.likePattern (cognitive 21): LikeFunctions.likePattern has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 8, match/switch 7, if/else 3, boolean chains 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":"presto-main-base/src/main/java/com/facebook/presto/type/LikeFunctions.java"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f02cc0570ab1234a8f848cbed35f030d96dbdf2d18f9e42cd48f13d60e0cfd6"}},{"ruleId":"D2","level":"warning","message":{"text":"TypeCoercer.compatibility (cognitive 21): TypeCoercer.compatibility has cognitive complexity 21 (threshold 15). Drivers by points: if/else 19, 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":"presto-main-base/src/main/java/com/facebook/presto/type/TypeCoercer.java"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"969abd5d13f8094039c3d42eebd4572e2d87f0f4a8e1a8d18f502bd6bda2c506"}},{"ruleId":"D2","level":"warning","message":{"text":"OrcType.toOrcType (cognitive 21): OrcType.toOrcType has cognitive complexity 21 (threshold 15). Drivers by points: if/else 19, loops 2 (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":"presto-orc/src/main/java/com/facebook/presto/orc/metadata/OrcType.java"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"43c7daebfc1dc2fd75dbc14a318f7058936b8b4ddc994441b29d983e89487e7c"}},{"ruleId":"D2","level":"warning","message":{"text":"BooleanBatchStreamReader.readBlock (cognitive 21): BooleanBatchStreamReader.readBlock has cognitive complexity 21 (threshold 15). Drivers by points: if/else 20, 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":"presto-orc/src/main/java/com/facebook/presto/orc/reader/BooleanBatchStreamReader.java"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bef4c2e42e1f8d599d7a1796fce616187825039b0515415f2f989b0f4d0b83a"}},{"ruleId":"D2","level":"warning","message":{"text":"DoubleBatchStreamReader.readBlock (cognitive 21): DoubleBatchStreamReader.readBlock has cognitive complexity 21 (threshold 15). Drivers by points: if/else 18, loops 2, 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":"presto-orc/src/main/java/com/facebook/presto/orc/reader/DoubleBatchStreamReader.java"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"01329a933d6f1c8f8b3a54348e4e3c4c4dcb3e40cc884157a42359583c260766"}},{"ruleId":"D2","level":"warning","message":{"text":"MapDirectSelectiveStreamReader.getBlock (cognitive 21): MapDirectSelectiveStreamReader.getBlock has cognitive complexity 21 (threshold 15). Drivers by points: if/else 14, loops 3, 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":"presto-orc/src/main/java/com/facebook/presto/orc/reader/MapDirectSelectiveStreamReader.java"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"8207c69a4e2b5614832635a0d88514c95358b7f1f164fcbcf977c2c0b2386a0c"}},{"ruleId":"D2","level":"warning","message":{"text":"MapDirectSelectiveStreamReader.readWithNulls (cognitive 21): MapDirectSelectiveStreamReader.readWithNulls has cognitive complexity 21 (threshold 15). Drivers by points: if/else 20, 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":"presto-orc/src/main/java/com/facebook/presto/orc/reader/MapDirectSelectiveStreamReader.java"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"c15abe33702fc55a0288e14209750053d468d95decb2c2f5639544a9c0a0e7ba"}},{"ruleId":"D2","level":"warning","message":{"text":"SerializationUtils.getClosestAlignedFixedBits (cognitive 21): SerializationUtils.getClosestAlignedFixedBits has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11, boolean chains 10. 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":"presto-orc/src/main/java/com/facebook/presto/orc/stream/LongOutputStreamV2.java"},"region":{"startLine":899}}}],"partialFingerprints":{"codehealthFindingId/v1":"88b5ae2c2b437251a30f097f533ffafb60cff38844436339218b79d8c82728b4"}},{"ruleId":"D2","level":"warning","message":{"text":"ColumnSizeLayout.reorder (cognitive 21): ColumnSizeLayout.reorder has cognitive complexity 21 (threshold 15). Drivers by points: if/else 20, 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":"presto-orc/src/main/java/com/facebook/presto/orc/writer/ColumnSizeLayout.java"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec52dd71c7f8e73170687569ad914542d14e432bc1adfd1bfd39987ef9b6ae86"}},{"ruleId":"D2","level":"warning","message":{"text":"WriteChecksumBuilder.hashPositionSkipNullMapKeys (cognitive 21): WriteChecksumBuilder.hashPositionSkipNullMapKeys has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13, loops 6, 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":"presto-orc/src/main/java/com/facebook/presto/orc/OrcWriteValidation.java"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe54992a96c5000f082ee68c22dd305c1a6ea37939e05297766f6eb5ffd23a59"}},{"ruleId":"D2","level":"warning","message":{"text":"DiskPageOutputSupplier.getNext (cognitive 21): DiskPageOutputSupplier.getNext has cognitive complexity 21 (threshold 15). Drivers by points: if/else 15, error handling 4, 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":"presto-spark-base/src/main/java/com/facebook/presto/spark/execution/task/PrestoSparkTaskExecutorFactory.java"},"region":{"startLine":1204}}}],"partialFingerprints":{"codehealthFindingId/v1":"89b71569991b8b9e4441f16928186528cc666277cbcda65a317db7890b81857d"}},{"ruleId":"D2","level":"warning","message":{"text":"DistinguishedNameParser.getUTF8 (cognitive 21): DistinguishedNameParser.getUTF8 has cognitive complexity 21 (threshold 15). Drivers by points: if/else 16, loops 3, boolean chains 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":"presto-client/src/main/java/okhttp/internal/tls/DistinguishedNameParser.java"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"75072d19c5983928e1fe6f9e80342f19ef446918ab5cd2a3dfaee1cefb20cde5"}},{"ruleId":"D2","level":"warning","message":{"text":"Indexer.index (cognitive 20): Indexer.index has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12, loops 6, boolean chains 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":"presto-accumulo/src/main/java/com/facebook/presto/accumulo/index/Indexer.java"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb66ac161e8e60d0b5b7d137505942c793546aa5e67b2efa1087ba6039cfaedf"}},{"ruleId":"D2","level":"warning","message":{"text":"PushAggregationThroughDisjointUnion.resolveBranchConstant (cognitive 20): PushAggregationThroughDisjointUnion.resolveBranchConstant has cognitive complexity 20 (threshold 15). Drivers by points: if/else 16, loops 3, 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PushAggregationThroughDisjointUnion.java"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e7f12b386ac2bab9ed4217ff2d8e604aa9a433892f544a25e796ec1c58a6dac"}},{"ruleId":"D2","level":"warning","message":{"text":"PushAggregationThroughOuterJoin.coalesceWithNullAggregation (cognitive 20): PushAggregationThroughOuterJoin.coalesceWithNullAggregation has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13, loops 3, ternaries 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PushAggregationThroughOuterJoin.java"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"75502b4c73d82b1f3995d97478786ceac1f605535e54f9394d2fe489648bdbac"}},{"ruleId":"D2","level":"warning","message":{"text":"JoinEnumerator.extractJoinConditions (cognitive 20): JoinEnumerator.extractJoinConditions has cognitive complexity 20 (threshold 15). Drivers by points: if/else 15, boolean chains 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/ReorderJoins.java"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6b860bfa9473919e71a721415da5cb92fe5fd71be6fb4fc9cbd9f355158a2a2"}},{"ruleId":"D2","level":"warning","message":{"text":"Optimizer.visitAggregation (cognitive 20): Optimizer.visitAggregation has cognitive complexity 20 (threshold 15). Drivers by points: if/else 16, boolean chains 2, loops 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/OptimizeMixedDistinctAggregations.java"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cf96b6427971ad02161327306a45d8c11150a8fd995daa559cc991d1e1fdd3f"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamPreferredProperties.isSatisfiedBy (cognitive 20): StreamPreferredProperties.isSatisfiedBy has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11, boolean chains 9 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/StreamPreferredProperties.java"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"05b8490e4b1763c07b6e25ab10fcb48dfead930418c2192096fb0400c0b38681"}},{"ruleId":"D2","level":"warning","message":{"text":"CanonicalPlanGenerator.visitJoin (cognitive 20): CanonicalPlanGenerator.visitJoin has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13, loops 4, 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/CanonicalPlanGenerator.java"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"7197a92a47cae0db5b094cf295ad783b315959489f0afb104c20e81fdd0ddd5d"}},{"ruleId":"D2","level":"warning","message":{"text":"Visitor.visitWindow (cognitive 20): Visitor.visitWindow has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11, loops 6, ternaries 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/LocalExecutionPlanner.java"},"region":{"startLine":1136}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fdbd2d4b5c2a934cfcb30faa1ebb89c91995fb137aab0215c872b6445024474"}},{"ruleId":"D2","level":"warning","message":{"text":"PlanFragmenterUtils.analyzeGroupedExecution (cognitive 20): PlanFragmenterUtils.analyzeGroupedExecution has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13, boolean chains 6, 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/PlanFragmenterUtils.java"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"679bca30cc501e0b2e34d0752c8983d29c4ad9a663871d06224cd1765d0c3ab3"}},{"ruleId":"D2","level":"warning","message":{"text":"RelationPlanner.planCrossJoinUnnest (cognitive 20): RelationPlanner.planCrossJoinUnnest has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12, loops 6, boolean chains 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/RelationPlanner.java"},"region":{"startLine":986}}}],"partialFingerprints":{"codehealthFindingId/v1":"81c0fcaccd121dda77ddb658bf8eae4d33bf922d3c1ed3e991e5941c3d0a157c"}},{"ruleId":"D2","level":"warning","message":{"text":"Visitor.visitCall (cognitive 20): Visitor.visitCall has cognitive complexity 20 (threshold 15). Drivers by points: if/else 19, 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":"presto-main-base/src/main/java/com/facebook/presto/sql/relational/RowExpressionDomainTranslator.java"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"40650d37701237d3f5334ecbc5dfb3950eb8ad006f7ef4b5842bb50056ab22c1"}},{"ruleId":"D2","level":"warning","message":{"text":"StatementClientV1.advance (cognitive 20): StatementClientV1.advance has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12, error handling 5, 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":"presto-client/src/main/java/com/facebook/presto/client/StatementClientV1.java"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"84415ae00448256f9f3ea0c737decf7f34da44110de8cad685682c3f518e1ffc"}},{"ruleId":"D2","level":"warning","message":{"text":"Builder.build (cognitive 20): Builder.build has cognitive complexity 20 (threshold 15). Drivers by points: if/else 15, loops 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":"presto-common/src/main/java/com/facebook/presto/common/predicate/SortedRangeSet.java"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d108335dd9c9014d369608067335af601b1b6ec213669eebcac7eb57c0759fc"}},{"ruleId":"D2","level":"warning","message":{"text":"ZOrder.initializeDimensions (cognitive 20): ZOrder.initializeDimensions has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10, loops 10 (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":"presto-hive-common/src/main/java/com/facebook/presto/hive/zorder/ZOrder.java"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"29c8d59e60185d66e438aa43fec025691c372be5124fc1c07d9ed94f6a60838a"}},{"ruleId":"D2","level":"warning","message":{"text":"MetastoreUtil.getHiveSchema (cognitive 20): MetastoreUtil.getHiveSchema has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13, loops 5, 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":"presto-hive-metastore/src/main/java/com/facebook/presto/hive/metastore/MetastoreUtil.java"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"e41753fd1f764ae00f217c471c7f523efa3dd2b97639078f51e207be3f68e529"}},{"ruleId":"D2","level":"warning","message":{"text":"HivePartitionManager.createPartitionPredicates (cognitive 20): HivePartitionManager.createPartitionPredicates has cognitive complexity 20 (threshold 15). Drivers by points: if/else 17, 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":"presto-hive/src/main/java/com/facebook/presto/hive/HivePartitionManager.java"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"4689b75c1e32ce3387f90ff08a4e84ff6bf370d84319fc8cb204c11d2063dbc2"}},{"ruleId":"D2","level":"warning","message":{"text":"TableStatisticsMaker.makeTableStatistics (cognitive 20): TableStatisticsMaker.makeTableStatistics has cognitive complexity 20 (threshold 15). Drivers by points: if/else 15, boolean chains 4, 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":"presto-iceberg/src/main/java/com/facebook/presto/iceberg/TableStatisticsMaker.java"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"168900a709602620dd48f64ef20db692127ce3dc7e5115c3db159bf4f68e0a34"}},{"ruleId":"D2","level":"warning","message":{"text":"HistoryBasedPlanStatisticsTracker.getPlanNodeAppliedDynamicFilter (cognitive 20): HistoryBasedPlanStatisticsTracker.getPlanNodeAppliedDynamicFilter has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11, loops 9 (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":"presto-main-base/src/main/java/com/facebook/presto/cost/HistoryBasedPlanStatisticsTracker.java"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"521280e1edcbd3c75361b3d4068dfe4c9d43c2e8cbac3e2447c574e491209fda"}},{"ruleId":"D2","level":"warning","message":{"text":"SimpleNodeSelector.chooseLeastBusyNode (cognitive 20): SimpleNodeSelector.chooseLeastBusyNode has cognitive complexity 20 (threshold 15). Drivers by points: if/else 16, 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":"presto-main-base/src/main/java/com/facebook/presto/execution/scheduler/nodeSelection/SimpleNodeSelector.java"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"66cabed97ccf223236c02209aa3d734415da6f4586bcd098548083cff14de7c1"}},{"ruleId":"D2","level":"warning","message":{"text":"ClusterMemoryManager.process (cognitive 20): ClusterMemoryManager.process has cognitive complexity 20 (threshold 15). Drivers by points: if/else 16, 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":"presto-main/src/main/java/com/facebook/presto/memory/ClusterMemoryManager.java"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"9811d7f9e352398caf60c288bdfcd1e9200e5e0e57dcb6466cc5f87173f41467"}},{"ruleId":"D2","level":"warning","message":{"text":"AbstractPropertyManager.getUserSpecifiedProperties (cognitive 20): AbstractPropertyManager.getUserSpecifiedProperties has cognitive complexity 20 (threshold 15). Drivers by points: error handling 8, if/else 8, 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":"presto-main-base/src/main/java/com/facebook/presto/metadata/AbstractPropertyManager.java"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"8af798c0059ef2b97a68d924dfd5f5b9a01fab3f119edf5ceb4f8ac1c058e0b6"}},{"ruleId":"D2","level":"warning","message":{"text":"FunctionsParserHelper.createTypeVariableConstraints (cognitive 20): FunctionsParserHelper.createTypeVariableConstraints has cognitive complexity 20 (threshold 15). Drivers by points: if/else 15, loops 2, ternaries 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":"presto-main-base/src/main/java/com/facebook/presto/operator/annotations/FunctionsParserHelper.java"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f3dc5a78a89eccd8b31c2bc9889936029e8e2402f1de64daf1cfa3995c4c914"}},{"ruleId":"D2","level":"warning","message":{"text":"ParametricScalarImplementation.specialize (cognitive 20): ParametricScalarImplementation.specialize has cognitive complexity 20 (threshold 15). Drivers by points: if/else 15, loops 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":"presto-main-base/src/main/java/com/facebook/presto/operator/scalar/annotations/ParametricScalarImplementation.java"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ad0ece03cc8ac7624b7766ce542f65b175e326eba280506f0a9a94831f986e2"}},{"ruleId":"D2","level":"warning","message":{"text":"SplitToMapFunction.splitToMap (cognitive 20): SplitToMapFunction.splitToMap has cognitive complexity 20 (threshold 15). Drivers by points: if/else 18, 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":"presto-main-base/src/main/java/com/facebook/presto/operator/scalar/SplitToMapFunction.java"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7130024437bb67085f26dcb5c2a0536202e0b8c55fe49596ba520b8aca16829"}},{"ruleId":"D2","level":"warning","message":{"text":"TempStorageStandaloneSpiller.spill (cognitive 20): TempStorageStandaloneSpiller.spill has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13, error handling 4, 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":"presto-main-base/src/main/java/com/facebook/presto/spiller/TempStorageStandaloneSpiller.java"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"669e2086f6a3cfe311cba7bb343de3c6ab0b8e9ccc039a4d31b0a406081714dd"}},{"ruleId":"D2","level":"warning","message":{"text":"DateTimeUtils.parseDayTimeInterval (cognitive 20): DateTimeUtils.parseDayTimeInterval has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 10, if/else 10. 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":"presto-main-base/src/main/java/com/facebook/presto/util/DateTimeUtils.java"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"19d557966615d26907ac7f70a4d98bb1e9d85c431b1d4c27fdbf5cfcab0f7ab3"}},{"ruleId":"D2","level":"warning","message":{"text":"ListBatchStreamReader.readBlock (cognitive 20): ListBatchStreamReader.readBlock has cognitive complexity 20 (threshold 15). Drivers by points: if/else 20 (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":"presto-orc/src/main/java/com/facebook/presto/orc/reader/ListBatchStreamReader.java"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"2aa73f439d962d09854d78b9012d8224b09999783c08155180df715fddec71c5"}},{"ruleId":"D2","level":"warning","message":{"text":"LongInputStreamV1.next (cognitive 20): LongInputStreamV1.next has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13, 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":"presto-orc/src/main/java/com/facebook/presto/orc/stream/LongInputStreamV1.java"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a4d45ba7689f494460d82a766845ce4f28d91ca434d3ec8b3a706569474105c"}},{"ruleId":"D2","level":"warning","message":{"text":"LongInputStreamV1.next (cognitive 20): LongInputStreamV1.next has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13, 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":"presto-orc/src/main/java/com/facebook/presto/orc/stream/LongInputStreamV1.java"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"765d80bb25f5cafa94c38395352b7efe882d08410e924c33a2f40f127ef1b371"}},{"ruleId":"D2","level":"warning","message":{"text":"LongOutputStreamV2.determineEncoding (cognitive 20): LongOutputStreamV2.determineEncoding has cognitive complexity 20 (threshold 15). Drivers by points: if/else 15, loops 4, 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":"presto-orc/src/main/java/com/facebook/presto/orc/stream/LongOutputStreamV2.java"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dabc1b92dce749674352a956f9583fab2ebf78e284e8cb94af867ebe8f98b9c"}},{"ruleId":"D2","level":"warning","message":{"text":"OrcSelectiveRecordReader.applyFilterFunctions (cognitive 20): OrcSelectiveRecordReader.applyFilterFunctions has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10, loops 7, ternaries 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":"presto-orc/src/main/java/com/facebook/presto/orc/OrcSelectiveRecordReader.java"},"region":{"startLine":788}}}],"partialFingerprints":{"codehealthFindingId/v1":"df4e16b0d9c421dd7bf0872b33432cea8867533a48a679570ced536d2e55ffda"}},{"ruleId":"D2","level":"warning","message":{"text":"BinaryNestedBatchReader.readNestedWithNull (cognitive 20): BinaryNestedBatchReader.readNestedWithNull has cognitive complexity 20 (threshold 15). Drivers by points: loops 8, ternaries 7, if/else 5 (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":"presto-parquet/src/main/java/com/facebook/presto/parquet/batchreader/BinaryNestedBatchReader.java"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"af14e01d40e326235585ecb3d91cd039b47a2fba5f927497930c733efe489b8f"}},{"ruleId":"D2","level":"warning","message":{"text":"ParquetDereferencePushDown.createNestedColumn (cognitive 20): ParquetDereferencePushDown.createNestedColumn has cognitive complexity 20 (threshold 15). Drivers by points: if/else 17, boolean chains 2, 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":"presto-parquet/src/main/java/com/facebook/presto/parquet/rule/ParquetDereferencePushDown.java"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"05a576d53e3a1b68a4a1988379b44d30cdc6da6be8ed11eca173ed067951fc5e"}},{"ruleId":"D2","level":"warning","message":{"text":"PinotFilterExpressionConverter.handleTimeValueCast (cognitive 20): PinotFilterExpressionConverter.handleTimeValueCast has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11, boolean chains 5, error handling 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":"presto-pinot-toolkit/src/main/java/com/facebook/presto/pinot/query/PinotFilterExpressionConverter.java"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"e70c620dff1a7b12c5f1d5ef827a6a6acf85e9cc7bf83679b3a03ebd491f65f7"}},{"ruleId":"D2","level":"warning","message":{"text":"RcFileReader.advance (cognitive 20): RcFileReader.advance has cognitive complexity 20 (threshold 15). Drivers by points: if/else 17, 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":"presto-rcfile/src/main/java/com/facebook/presto/rcfile/RcFileReader.java"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"4af1eaa906d3dca6ad8c386de8a89b3f6be8c65ea9a8f9f26eb6ad07dca9f277"}},{"ruleId":"D2","level":"warning","message":{"text":"DistinguishedNameParser.nextAT (cognitive 20): DistinguishedNameParser.nextAT has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 9, if/else 6, loops 5 (nesting depth added 2). 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":"presto-client/src/main/java/okhttp/internal/tls/DistinguishedNameParser.java"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0021a81af0db7b5846df1708cc5cb3c238be21a7a4146e6e1152b9b7f893a11"}},{"ruleId":"D2","level":"warning","message":{"text":"DetermineJoinDistributionType.getCostBasedJoin (cognitive 19): DetermineJoinDistributionType.getCostBasedJoin has cognitive complexity 19 (threshold 15). Drivers by points: if/else 14, boolean chains 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/DetermineJoinDistributionType.java"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"70ab1f1467d1573e6c90bab5e98b0d67d1cd1001bd39c471933a72bc20a7020e"}},{"ruleId":"D2","level":"warning","message":{"text":"PullRowLocalChainAboveExchange.apply (cognitive 19): PullRowLocalChainAboveExchange.apply has cognitive complexity 19 (threshold 15). Drivers by points: if/else 15, loops 3, 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PullRowLocalChainAboveExchange.java"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d11b1b4fa66c649268cfccb10d231bbb074e40b442af5ee2f163b463da38773"}},{"ruleId":"D2","level":"warning","message":{"text":"PushFilterThroughSelectingAggregation.apply (cognitive 19): PushFilterThroughSelectingAggregation.apply has cognitive complexity 19 (threshold 15). Drivers by points: if/else 15, loops 4 (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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PushFilterThroughSelectingAggregation.java"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9b3fa39bf1271e969f55e25e52377c5f337d8f6c791153e86c061e32434f3fc"}},{"ruleId":"D2","level":"warning","message":{"text":"Rewriter.visitAggregation (cognitive 19): Rewriter.visitAggregation has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11, boolean chains 3, loops 3, match/switch 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/AddLocalExchanges.java"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"960ef5b6ee9eb11a85b0df4d95039cd98f8b4737a29ac95110282950a2647a9d"}},{"ruleId":"D2","level":"warning","message":{"text":"LookupVariableExtractor.extractFromFilter (cognitive 19): LookupVariableExtractor.extractFromFilter has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13, boolean chains 5, 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/IndexJoinOptimizer.java"},"region":{"startLine":853}}}],"partialFingerprints":{"codehealthFindingId/v1":"157c82efbdbcdd8c162142f7e50ee12120ff7e7d06687c8792c5a22867d50be9"}},{"ruleId":"D2","level":"warning","message":{"text":"Optimizer.createNonDistinctAggregation (cognitive 19): Optimizer.createNonDistinctAggregation has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12, loops 5, boolean chains 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/OptimizeMixedDistinctAggregations.java"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7499938ccd0748d9c7d6d0ac0dff9c63f5c6d99c39fc2d0cecf9b846ee5d584"}},{"ruleId":"D2","level":"warning","message":{"text":"Rewriter.visitFilteringSemiJoin (cognitive 19): Rewriter.visitFilteringSemiJoin has cognitive complexity 19 (threshold 15). Drivers by points: if/else 14, loops 4, 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PredicatePushDown.java"},"region":{"startLine":1563}}}],"partialFingerprints":{"codehealthFindingId/v1":"55e57831e07a8fc62c785375af1b133dbd3718b15ecdce2a7077c724c936d39a"}},{"ruleId":"D2","level":"warning","message":{"text":"Visitor.visitLogicalBinaryExpression (cognitive 19): Visitor.visitLogicalBinaryExpression has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13, boolean chains 5, 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/ExpressionInterpreter.java"},"region":{"startLine":851}}}],"partialFingerprints":{"codehealthFindingId/v1":"4070c4112ad66803aa0637c9b8b0d816795ce8f28ccb7637bd8a31efe0c814f3"}},{"ruleId":"D2","level":"warning","message":{"text":"LogicalPlanner.planStatementWithoutOutput (cognitive 19): LogicalPlanner.planStatementWithoutOutput has cognitive complexity 19 (threshold 15). Drivers by points: if/else 14, match/switch 4, boolean chains 1 (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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/LogicalPlanner.java"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8cdb4339e9e93db9fc0d021f06d78c4be1e69d6d56c9df469594d2cb0b34897"}},{"ruleId":"D2","level":"warning","message":{"text":"RewritingVisitor.visitLogicalBinaryExpression (cognitive 19): RewritingVisitor.visitLogicalBinaryExpression has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10, boolean chains 5, loops 4 (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":"presto-parser/src/main/java/com/facebook/presto/sql/tree/ExpressionTreeRewriter.java"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eea9db70bb838664a108534529a8fe06f2aaaaff28ba562da2a3c765b4bf5c4"}},{"ruleId":"D2","level":"warning","message":{"text":"Visitor.visitPlan (cognitive 19): Visitor.visitPlan has cognitive complexity 19 (threshold 15). Drivers by points: if/else 14, loops 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":"presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/optimization/ClickHouseComputePushdown.java"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"acd175ad4d134cfe632edc45d2ba1dde26d83b536bce0be17d3157724d1e5799"}},{"ruleId":"D2","level":"warning","message":{"text":"ConcurrentPhaseExecutor.reportProgressUntilFinished (cognitive 19): ConcurrentPhaseExecutor.reportProgressUntilFinished has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11, error handling 4, boolean chains 2, 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":"presto-benchmark-runner/src/main/java/com/facebook/presto/benchmark/framework/ConcurrentPhaseExecutor.java"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"822df988b361aff0f3ac60341aa02fc29d8a03650fb8759a5a485518a80a46d6"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeCassandraSession.buildColumnHandle (cognitive 19): NativeCassandraSession.buildColumnHandle has cognitive complexity 19 (threshold 15). Drivers by points: if/else 16, 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":"presto-cassandra/src/main/java/com/facebook/presto/cassandra/NativeCassandraSession.java"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"b161e9c493af257addb01ee4d49bd9b0fc9890c0bbc6f47ef0f0f999d134fed5"}},{"ruleId":"D2","level":"warning","message":{"text":"SortedRangeSet.intersect (cognitive 19): SortedRangeSet.intersect has cognitive complexity 19 (threshold 15). Drivers by points: if/else 16, 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":"presto-common/src/main/java/com/facebook/presto/common/predicate/SortedRangeSet.java"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e35596642d5d1768fc437cc77d0133c5f6408dfd563c46e80e89dee6175d651"}},{"ruleId":"D2","level":"warning","message":{"text":"DruidPushdownUtils.computeAggregationNodes (cognitive 19): DruidPushdownUtils.computeAggregationNodes has cognitive complexity 19 (threshold 15). Drivers by points: if/else 16, 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":"presto-druid/src/main/java/com/facebook/presto/druid/DruidPushdownUtils.java"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"5484d7ea7e047fb3f66139ca584f671699909ee43c3ba704007086669a6d16da"}},{"ruleId":"D2","level":"warning","message":{"text":"Query.retryConditionsMet (cognitive 19): Query.retryConditionsMet has cognitive complexity 19 (threshold 15). Drivers by points: if/else 18, 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":"presto-main/src/main/java/com/facebook/presto/server/protocol/Query.java"},"region":{"startLine":761}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c37ab9be089c6f3fff1e513185fc7c55e3e1dd6fd4a96173f56686fc5206bb6"}},{"ruleId":"D2","level":"warning","message":{"text":"ReactorNettyHttpClient.onSuccess (cognitive 19): ReactorNettyHttpClient.onSuccess has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13, boolean chains 3, error handling 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":"presto-main/src/main/java/com/facebook/presto/server/remotetask/ReactorNettyHttpClient.java"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0189a4d06c3d124fa4668b9484544ec6d8ecd02f5878b0fa99cd0f4aaded76d"}},{"ruleId":"D2","level":"warning","message":{"text":"AsyncPageTransportServlet.parseURI (cognitive 19): AsyncPageTransportServlet.parseURI has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9, boolean chains 5, loops 3, 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":"presto-main/src/main/java/com/facebook/presto/server/AsyncPageTransportServlet.java"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5e60f23df81184353e4a965caf1d393797718c93ebc4b591346beda9b0c2d22"}},{"ruleId":"D2","level":"warning","message":{"text":"GlueHiveMetastore.batchGetPartition (cognitive 19): GlueHiveMetastore.batchGetPartition has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12, loops 5, 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":"presto-hive-metastore/src/main/java/com/facebook/presto/hive/metastore/glue/GlueHiveMetastore.java"},"region":{"startLine":1107}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3e53dbf1028db4117219c52e4e0404424d706c74223e3d5c7b001ad81b0e4ab"}},{"ruleId":"D2","level":"warning","message":{"text":"ParquetQuickStatsBuilder.processColumnMetadata (cognitive 19): ParquetQuickStatsBuilder.processColumnMetadata has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10, match/switch 6, 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":"presto-hive/src/main/java/com/facebook/presto/hive/statistics/ParquetQuickStatsBuilder.java"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc951466b9414eb54785ab12c74315e1c84f34211967238a52686c6c5198a13c"}},{"ruleId":"D2","level":"warning","message":{"text":"InternalHiveSplitFactory.createInternalHiveSplit (cognitive 19): InternalHiveSplitFactory.createInternalHiveSplit has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12, boolean chains 5, loops 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":"presto-hive/src/main/java/com/facebook/presto/hive/util/InternalHiveSplitFactory.java"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"faffb871745271f6f34eeeec18e3683bcf4799e103c6ffafef5e0efd90ae39cd"}},{"ruleId":"D2","level":"warning","message":{"text":"ColumnMapping.buildColumnMappings (cognitive 19): ColumnMapping.buildColumnMappings has cognitive complexity 19 (threshold 15). Drivers by points: if/else 15, 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":"presto-hive/src/main/java/com/facebook/presto/hive/HivePageSourceProvider.java"},"region":{"startLine":823}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e5133ff2e35fe796551d1faa75a0e82778f7ae05a415ff8ef5805f4d22655e3"}},{"ruleId":"D2","level":"warning","message":{"text":"IcebergTableName.from (cognitive 19): IcebergTableName.from has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12, boolean chains 5, error handling 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-iceberg/src/main/java/com/facebook/presto/iceberg/IcebergTableName.java"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"582f09bd7381544b2d8fcc6a5d2ab7d82cd200b60a47ab15f7db15f007fd2ad2"}},{"ruleId":"D2","level":"warning","message":{"text":"LancePageToArrowConverter.writeBlockToVectorAtOffset (cognitive 19): LancePageToArrowConverter.writeBlockToVectorAtOffset has cognitive complexity 19 (threshold 15). Drivers by points: if/else 15, ternaries 3, 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":"presto-lance/src/main/java/com/facebook/presto/lance/LancePageToArrowConverter.java"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"23073db10d17328168d4d0c01adfa9622e61f3b432991827e06760e9d66906da"}},{"ruleId":"D2","level":"warning","message":{"text":"InternalResourceGroup.run (cognitive 19): InternalResourceGroup.run has cognitive complexity 19 (threshold 15). Drivers by points: if/else 15, boolean chains 3, 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":"presto-main-base/src/main/java/com/facebook/presto/execution/resourceGroups/InternalResourceGroup.java"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"61bd8676d013b7d2991cf62ffe874e4dfe5d5cdefc94e04989f507b6a872a6bf"}},{"ruleId":"D2","level":"warning","message":{"text":"FixedSourcePartitionedScheduler.\u003Cinit\u003E (cognitive 19): FixedSourcePartitionedScheduler.\u003Cinit\u003E has cognitive complexity 19 (threshold 15). Drivers by points: if/else 16, 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":"presto-main-base/src/main/java/com/facebook/presto/execution/scheduler/FixedSourcePartitionedScheduler.java"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1e10cec7dfe19e8bc10a87e28939444a8c08c15c05850bda774bbf0801173b4"}},{"ruleId":"D2","level":"warning","message":{"text":"NodeScheduler.selectExactNodes (cognitive 19): NodeScheduler.selectExactNodes has cognitive complexity 19 (threshold 15). Drivers by points: error handling 7, if/else 6, 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":"presto-main-base/src/main/java/com/facebook/presto/execution/scheduler/NodeScheduler.java"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"176f5b010cb0d995dced289bb1a9f5b772c12ab7c84adf5dc41e924c5472e2e2"}},{"ruleId":"D2","level":"warning","message":{"text":"CreateMaterializedViewTask.execute (cognitive 19): CreateMaterializedViewTask.execute has cognitive complexity 19 (threshold 15). Drivers by points: if/else 16, boolean chains 2, error handling 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":"presto-main-base/src/main/java/com/facebook/presto/execution/CreateMaterializedViewTask.java"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"b15786842a5b2888f9fc101e1704adfc3bfbe4923f5a78988172c35aa9b298ee"}},{"ruleId":"D2","level":"warning","message":{"text":"StatisticsListener.stateChanged (cognitive 19): StatisticsListener.stateChanged 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":"presto-main-base/src/main/java/com/facebook/presto/execution/QueryManagerStats.java"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"297c55aa4e9679c2f4d644834e02775e765fd7f3223311013b8d37cc84bd3cba"}},{"ruleId":"D2","level":"warning","message":{"text":"HashSemiJoinOperator.addInput (cognitive 19): HashSemiJoinOperator.addInput has cognitive complexity 19 (threshold 15). Drivers by points: if/else 15, boolean chains 2, loops 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":"presto-main-base/src/main/java/com/facebook/presto/operator/HashSemiJoinOperator.java"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8f21b4938a89452a0e1c01cdef4ac5a9c1fda8faa7e32c04ce8e6bc7a7d66f2"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalQueryRunner.createDrivers (cognitive 19): LocalQueryRunner.createDrivers has cognitive complexity 19 (threshold 15). Drivers by points: loops 13, if/else 6 (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":"presto-main-base/src/main/java/com/facebook/presto/testing/LocalQueryRunner.java"},"region":{"startLine":995}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0d5c190fe4c1ad0214b6d63b2646c873b7fa5a448c823dab0d3febb2dae1b3c"}},{"ruleId":"D2","level":"warning","message":{"text":"SliceData.fromSliceBasedBlock (cognitive 19): SliceData.fromSliceBasedBlock 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":"presto-thrift-api/src/main/java/com/facebook/presto/thrift/api/datatypes/SliceData.java"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"628e7dbcea3fbd6787ae1125dbb8210c31f24afe913455edbdff8f7996651eba"}},{"ruleId":"D2","level":"warning","message":{"text":"OrderedPeriodParser.parseInto (cognitive 19): OrderedPeriodParser.parseInto 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":"presto-main-base/src/main/java/com/facebook/presto/util/DateTimeUtils.java"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e01ea006e64b9a87bb40c8ad9e6323673546b02c935e0fbafa581940e89200b"}},{"ruleId":"D2","level":"warning","message":{"text":"ByteBatchStreamReader.readBlock (cognitive 19): ByteBatchStreamReader.readBlock has cognitive complexity 19 (threshold 15). Drivers by points: if/else 19 (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":"presto-orc/src/main/java/com/facebook/presto/orc/reader/ByteBatchStreamReader.java"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"73fa9b91866d7fe6279392e25cb87547406224ce628b1cdb509c5824f6fa953b"}},{"ruleId":"D2","level":"warning","message":{"text":"LongDirectBatchStreamReader.readBlock (cognitive 19): LongDirectBatchStreamReader.readBlock has cognitive complexity 19 (threshold 15). Drivers by points: if/else 19 (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":"presto-orc/src/main/java/com/facebook/presto/orc/reader/LongDirectBatchStreamReader.java"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2b5ec5f404177f33d7d16623ed596e80997cf99edb2b396a6adf41605126aba"}},{"ruleId":"D2","level":"warning","message":{"text":"SliceDictionaryBatchStreamReader.openRowGroup (cognitive 19): SliceDictionaryBatchStreamReader.openRowGroup has cognitive complexity 19 (threshold 15). Drivers by points: if/else 14, 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":"presto-orc/src/main/java/com/facebook/presto/orc/reader/SliceDictionaryBatchStreamReader.java"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"17aec230424222ebda93f817c035a675577014d4f56407b6fd83e600b9e225f1"}},{"ruleId":"D2","level":"warning","message":{"text":"OrcWriteValidation.validateColumnStatisticsEquivalent (cognitive 19): OrcWriteValidation.validateColumnStatisticsEquivalent has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13, boolean chains 6 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-orc/src/main/java/com/facebook/presto/orc/OrcWriteValidation.java"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"90cd1fab19ca5d291ff902fcf21c231a28ca8533cd86e361a3c08a5102a96cb7"}},{"ruleId":"D2","level":"warning","message":{"text":"ExtractDereferenceAndVariables.visitSpecialForm (cognitive 19): ExtractDereferenceAndVariables.visitSpecialForm has cognitive complexity 19 (threshold 15). Drivers by points: if/else 17, 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":"presto-parquet/src/main/java/com/facebook/presto/parquet/rule/ParquetDereferencePushDown.java"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4f2cc4ed34a31dc0079f418a66c613151ff64ba88fa21aa442d9908989168cb"}},{"ruleId":"D2","level":"warning","message":{"text":"PinotPushdownUtils.computeAggregationNodes (cognitive 19): PinotPushdownUtils.computeAggregationNodes has cognitive complexity 19 (threshold 15). Drivers by points: if/else 16, 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":"presto-pinot-toolkit/src/main/java/com/facebook/presto/pinot/PinotPushdownUtils.java"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"03a4d2919070c36aeb345b2fb4b978291534d461fdd14e1e2c1f702374da27c0"}},{"ruleId":"D2","level":"warning","message":{"text":"PrestoSparkSourceDistributionSplitAssigner.assignSplitsToTasks (cognitive 19): PrestoSparkSourceDistributionSplitAssigner.assignSplitsToTasks has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11, loops 6, 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":"presto-spark-base/src/main/java/com/facebook/presto/spark/planner/PrestoSparkSourceDistributionSplitAssigner.java"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"391e8123906bd80837f4c852931a592b51144bdf1d6d931b197c1ae39f5d5e13"}},{"ruleId":"D2","level":"warning","message":{"text":"Visitor.visitSetOperation (cognitive 18): Visitor.visitSetOperation has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9, loops 9 (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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java"},"region":{"startLine":3353}}}],"partialFingerprints":{"codehealthFindingId/v1":"fffa830fe615270c2b41da9da0bb2d8a773c161ad1b2b2623a2f064393ddb90e"}},{"ruleId":"D2","level":"warning","message":{"text":"InCodeGenerator.generateExpression (cognitive 18): InCodeGenerator.generateExpression has cognitive complexity 18 (threshold 15). Drivers by points: loops 5, error handling 4, match/switch 4, if/else 3, 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":"presto-main-base/src/main/java/com/facebook/presto/sql/gen/InCodeGenerator.java"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"496e9da4727d818732c105304127dd5f6d1c99cc6801b5d662b86c106bcfa57a"}},{"ruleId":"D2","level":"warning","message":{"text":"MaterializedViewRewrite.apply (cognitive 18): MaterializedViewRewrite.apply has cognitive complexity 18 (threshold 15). Drivers by points: if/else 14, boolean chains 4 (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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/materializedview/MaterializedViewRewrite.java"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"85961bca6fc65bee52bb8d6be9f58835892fd49a8c17f1b5e85ec555c8a97829"}},{"ruleId":"D2","level":"warning","message":{"text":"PushAggregationThroughDisjointUnion.apply (cognitive 18): PushAggregationThroughDisjointUnion.apply has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7, loops 7, ternaries 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PushAggregationThroughDisjointUnion.java"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a2b7f6988cc2b48e6ad83e9f839783a3839387d4d9c102bec07d638753e32aa"}},{"ruleId":"D2","level":"warning","message":{"text":"Rewriter.processLimitedOuterJoin (cognitive 18): Rewriter.processLimitedOuterJoin has cognitive complexity 18 (threshold 15). Drivers by points: if/else 15, loops 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PredicatePushDown.java"},"region":{"startLine":1026}}}],"partialFingerprints":{"codehealthFindingId/v1":"f827de818f0fb11c6cf10cbd3f22403cb16931551494331eed34b78e918e116d"}},{"ruleId":"D2","level":"warning","message":{"text":"PushdownSubfields.isMapFilterWithConstantFilterInMapKey (cognitive 18): PushdownSubfields.isMapFilterWithConstantFilterInMapKey has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12, 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PushdownSubfields.java"},"region":{"startLine":1211}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2942a6118695210c0f49dc14c51451d172919e5e5564007c492466991ccf090"}},{"ruleId":"D2","level":"warning","message":{"text":"Visitor.visitFunctionCall (cognitive 18): Visitor.visitFunctionCall has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12, boolean chains 3, loops 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/ExpressionInterpreter.java"},"region":{"startLine":909}}}],"partialFingerprints":{"codehealthFindingId/v1":"811e25ba0f3693fa547d20037cf3d837a8ba6b04d746d1b9aaedcc14fa635860"}},{"ruleId":"D2","level":"warning","message":{"text":"Visitor.euclideanSpatialTest (cognitive 18): Visitor.euclideanSpatialTest has cognitive complexity 18 (threshold 15). Drivers by points: if/else 18 (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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/LocalExecutionPlanner.java"},"region":{"startLine":2189}}}],"partialFingerprints":{"codehealthFindingId/v1":"199a48591010a9ebd171adb09e078eeede29a5453b55a3f646e099c8f5632175"}},{"ruleId":"D2","level":"warning","message":{"text":"QueryPlanner.aggregate (cognitive 18): QueryPlanner.aggregate has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12, loops 6 (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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/QueryPlanner.java"},"region":{"startLine":1314}}}],"partialFingerprints":{"codehealthFindingId/v1":"b935871863fb37b4cd2dbb5d253e36f927809c307061ee4a6f468e7d94ce2976"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkerFunctionUtil.getTypeSignatureParameters (cognitive 18): WorkerFunctionUtil.getTypeSignatureParameters has cognitive complexity 18 (threshold 15). Drivers by points: if/else 17, 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":"presto-built-in-worker-function-tools/src/main/java/com/facebook/presto/builtin/tools/WorkerFunctionUtil.java"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a785fb7ac456d12427845778265e6ffc82f60f1899706ba656eb817c76d5c7f"}},{"ruleId":"D2","level":"warning","message":{"text":"DistinctType.getLowestCommonSuperType (cognitive 18): DistinctType.getLowestCommonSuperType has cognitive complexity 18 (threshold 15). Drivers by points: if/else 14, 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":"presto-common/src/main/java/com/facebook/presto/common/type/DistinctType.java"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"7080430ed20689ac0f654865a845c92c424d8f0e938ae6382cb283cff7781725"}},{"ruleId":"D2","level":"warning","message":{"text":"TypeSignature.parseTypeSignatureParameter (cognitive 18): TypeSignature.parseTypeSignatureParameter has cognitive complexity 18 (threshold 15). Drivers by points: if/else 18 (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":"presto-common/src/main/java/com/facebook/presto/common/type/TypeSignature.java"},"region":{"startLine":662}}}],"partialFingerprints":{"codehealthFindingId/v1":"63c1d7c8b338d59a4679031232258f4e01e652d4932704c1c2fd5efa673f9ab5"}},{"ruleId":"D2","level":"warning","message":{"text":"CentralDirectoryFileHeader.read (cognitive 18): CentralDirectoryFileHeader.read has cognitive complexity 18 (threshold 15). Drivers by points: if/else 16, boolean chains 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":"presto-druid/src/main/java/com/facebook/presto/druid/zip/CentralDirectoryFileHeader.java"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f5d415408bfdad4264219fc50afc1c677e40a2240f5785672577448df94a7f5"}},{"ruleId":"D2","level":"warning","message":{"text":"1.rewriteSpecialForm (cognitive 18): 1.rewriteSpecialForm 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":"presto-expressions/src/main/java/com/facebook/presto/expressions/DynamicFilters.java"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"561617c506442896bf135c0a2f047f101ea2b1205727d1d0f40972d267e2eed5"}},{"ruleId":"D2","level":"warning","message":{"text":"HttpRemoteTaskWithEventLoop.sendUpdate (cognitive 18): HttpRemoteTaskWithEventLoop.sendUpdate has cognitive complexity 18 (threshold 15). Drivers by points: if/else 15, boolean chains 2, 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":"presto-main/src/main/java/com/facebook/presto/server/remotetask/HttpRemoteTaskWithEventLoop.java"},"region":{"startLine":981}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d2a0e0dbd0213c0ca65da3b795c73b0d71e3cf9a9ecaa179d533ea85c847e5f"}},{"ruleId":"D2","level":"warning","message":{"text":"HivePartitionManager.getPartitionListFromPartitionNames (cognitive 18): HivePartitionManager.getPartitionListFromPartitionNames has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13, 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":"presto-hive/src/main/java/com/facebook/presto/hive/HivePartitionManager.java"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"1221eda00b6b9745ca26e7ab25a2ab3f1ee9e4035dff06f2cd500a9ba3ad054b"}},{"ruleId":"D2","level":"warning","message":{"text":"HiveWriteUtils.getRowColumnInspector (cognitive 18): HiveWriteUtils.getRowColumnInspector has cognitive complexity 18 (threshold 15). Drivers by points: if/else 17, boolean chains 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":"presto-hive/src/main/java/com/facebook/presto/hive/HiveWriteUtils.java"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa9874a17935138252537c8a7f15bb43788e1e93a338090d34a52f23cb3eb006"}},{"ruleId":"D2","level":"warning","message":{"text":"HudiParquetPageSources.createParquetPageSource (cognitive 18): HudiParquetPageSources.createParquetPageSource has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12, error handling 3, 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":"presto-hudi/src/main/java/com/facebook/presto/hudi/HudiParquetPageSources.java"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bf7a4cd0f5fa64b23d18c4ed4d87d046be861c0a38afc324ba4d9dc2e635338"}},{"ruleId":"D2","level":"warning","message":{"text":"TypeConverter.toIcebergType (cognitive 18): TypeConverter.toIcebergType has cognitive complexity 18 (threshold 15). Drivers by points: if/else 17, 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":"presto-iceberg/src/main/java/com/facebook/presto/iceberg/TypeConverter.java"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"05af3725e9ec463b370e062e670e234f17045ea616adffdae3456df8e7b6069b"}},{"ruleId":"D2","level":"warning","message":{"text":"HistoryBasedPlanStatisticsCalculator.registerPlan (cognitive 18): HistoryBasedPlanStatisticsCalculator.registerPlan has cognitive complexity 18 (threshold 15). Drivers by points: if/else 15, boolean chains 1, error handling 1, 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":"presto-main-base/src/main/java/com/facebook/presto/cost/HistoryBasedPlanStatisticsCalculator.java"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"b296fe4c65a1a1c7aa2b6ffdd73dd746f81f625573a5ef024f85e29e52414c11"}},{"ruleId":"D2","level":"warning","message":{"text":"SimpleNodeSelector.computeAssignments (cognitive 18): SimpleNodeSelector.computeAssignments has cognitive complexity 18 (threshold 15). Drivers by points: if/else 15, match/switch 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":"presto-main-base/src/main/java/com/facebook/presto/execution/scheduler/nodeSelection/SimpleNodeSelector.java"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"229effaca54347ea76b93e1568def2149f5980098666ac6a2943278b111f68eb"}},{"ruleId":"D2","level":"warning","message":{"text":"CallTask.extractParameterValuesInOrder (cognitive 18): CallTask.extractParameterValuesInOrder has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13, loops 4, 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":"presto-main-base/src/main/java/com/facebook/presto/execution/CallTask.java"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b93ad048051d0f64abf9c5d350ca131b0adf504b9f754b6eadb8c77d96a1ac0"}},{"ruleId":"D2","level":"warning","message":{"text":"UnloadedIndexKeyRecordSet.\u003Cinit\u003E (cognitive 18): UnloadedIndexKeyRecordSet.\u003Cinit\u003E 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":"presto-main-base/src/main/java/com/facebook/presto/operator/index/UnloadedIndexKeyRecordSet.java"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"920b98399f148bb815a01e78c9d09c68ef42590eb635c8541051ff4fa1229a9f"}},{"ruleId":"D2","level":"warning","message":{"text":"HashAggregationOperator.getOutput (cognitive 18): HashAggregationOperator.getOutput has cognitive complexity 18 (threshold 15). Drivers by points: if/else 17, 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":"presto-main-base/src/main/java/com/facebook/presto/operator/HashAggregationOperator.java"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"0def9191cb7528e7567732f896f38437cfe3899c606b6f5f2f2383bf3998b3b1"}},{"ruleId":"D2","level":"warning","message":{"text":"LongDecode.getClosestFixedBits (cognitive 18): LongDecode.getClosestFixedBits has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10, boolean chains 8. 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":"presto-orc/src/main/java/com/facebook/presto/orc/stream/LongDecode.java"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d0f179b0a3a3abb2d48e39ba56a81794bbec4297c67615690a5737c776750c9"}},{"ruleId":"D2","level":"warning","message":{"text":"SerializationUtils.getClosestFixedBits (cognitive 18): SerializationUtils.getClosestFixedBits has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10, boolean chains 8. 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":"presto-orc/src/main/java/com/facebook/presto/orc/stream/LongOutputStreamV2.java"},"region":{"startLine":864}}}],"partialFingerprints":{"codehealthFindingId/v1":"645548b93c027aaa6964ae13390c9e0313582441945ffb5b851861261ca49778"}},{"ruleId":"D2","level":"warning","message":{"text":"DictionaryColumnWriter.tryConvertRowGroupToDirect (cognitive 18): DictionaryColumnWriter.tryConvertRowGroupToDirect has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12, 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":"presto-orc/src/main/java/com/facebook/presto/orc/writer/DictionaryColumnWriter.java"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"65080fbdbc8ef29ab0a12687ce6d766b1872a0d24db0c97b263bbe6d525816a5"}},{"ruleId":"D2","level":"warning","message":{"text":"CachingStripeMetadataSource.getInputs (cognitive 18): CachingStripeMetadataSource.getInputs 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":"presto-orc/src/main/java/com/facebook/presto/orc/CachingStripeMetadataSource.java"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ba930c27b39c7143089872b8cb46a144cb6c30fc2787e70ffd9897479e5f14f"}},{"ruleId":"D2","level":"warning","message":{"text":"OrcWriteValidation.validateRowGroupStatistics (cognitive 18): OrcWriteValidation.validateRowGroupStatistics has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13, 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":"presto-orc/src/main/java/com/facebook/presto/orc/OrcWriteValidation.java"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ab0c60944ff9c91adcb7b3ed7ab915dfce3dae8ee522ac218cccddec19988e4"}},{"ruleId":"D2","level":"warning","message":{"text":"BooleanFlatBatchReader.readWithNull (cognitive 18): BooleanFlatBatchReader.readWithNull has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13, loops 4, 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":"presto-parquet/src/main/java/com/facebook/presto/parquet/batchreader/BooleanFlatBatchReader.java"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dd0cd4129c8a4265e13e15295f787b5f361dcdb3732d8e9e37246a600a6827d"}},{"ruleId":"D2","level":"warning","message":{"text":"BooleanNestedBatchReader.readNestedWithNull (cognitive 18): BooleanNestedBatchReader.readNestedWithNull has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 7, loops 6, if/else 5 (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":"presto-parquet/src/main/java/com/facebook/presto/parquet/batchreader/BooleanNestedBatchReader.java"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d6a7dc453e1f63780ceb4cfd4e15b81052083ef3ef15dbb0e8d9bf37ae4593f"}},{"ruleId":"D2","level":"warning","message":{"text":"Int32FlatBatchReader.readWithNull (cognitive 18): Int32FlatBatchReader.readWithNull has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13, loops 4, 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":"presto-parquet/src/main/java/com/facebook/presto/parquet/batchreader/Int32FlatBatchReader.java"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9bf927377af6fa25755e20e8df95a61a0a65aa6f9f8d0bdc59def1824500e75"}},{"ruleId":"D2","level":"warning","message":{"text":"Int32NestedBatchReader.readNestedWithNull (cognitive 18): Int32NestedBatchReader.readNestedWithNull has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 7, loops 6, if/else 5 (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":"presto-parquet/src/main/java/com/facebook/presto/parquet/batchreader/Int32NestedBatchReader.java"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3c67cbecf578f63efe5fff87a0946aa13450ee7bc12cd1944d7fd878a93f402"}},{"ruleId":"D2","level":"warning","message":{"text":"Int64FlatBatchReader.readWithNull (cognitive 18): Int64FlatBatchReader.readWithNull has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13, loops 4, 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":"presto-parquet/src/main/java/com/facebook/presto/parquet/batchreader/Int64FlatBatchReader.java"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b6bfe35b720b952b33e12c3287d32e4639e34848030cb0c0ebb1cd6830bf082"}},{"ruleId":"D2","level":"warning","message":{"text":"Int64NestedBatchReader.readNestedWithNull (cognitive 18): Int64NestedBatchReader.readNestedWithNull has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 7, loops 6, if/else 5 (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":"presto-parquet/src/main/java/com/facebook/presto/parquet/batchreader/Int64NestedBatchReader.java"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"d12f1318986ca0495da02608f22a6f25f553a5b6bc3270f8925d16dfe5990690"}},{"ruleId":"D2","level":"warning","message":{"text":"Int64TimeAndTimestampMicrosFlatBatchReader.readWithNull (cognitive 18): Int64TimeAndTimestampMicrosFlatBatchReader.readWithNull has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13, loops 4, 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":"presto-parquet/src/main/java/com/facebook/presto/parquet/batchreader/Int64TimeAndTimestampMicrosFlatBatchReader.java"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3aaba2c28b94359473094c8ff685e254967376037bf33359828138d0dc9347f"}},{"ruleId":"D2","level":"warning","message":{"text":"Int64TimeAndTimestampMicrosNestedBatchReader.readNestedWithNull (cognitive 18): Int64TimeAndTimestampMicrosNestedBatchReader.readNestedWithNull has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 7, loops 6, if/else 5 (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":"presto-parquet/src/main/java/com/facebook/presto/parquet/batchreader/Int64TimeAndTimestampMicrosNestedBatchReader.java"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"3281b6fbba22dd39c4528c91720f75e7c6fd5b66484cd6f423da5f65e8e2d3e5"}},{"ruleId":"D2","level":"warning","message":{"text":"LongDecimalFlatBatchReader.readWithNull (cognitive 18): LongDecimalFlatBatchReader.readWithNull has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13, loops 4, 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":"presto-parquet/src/main/java/com/facebook/presto/parquet/batchreader/LongDecimalFlatBatchReader.java"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb6aabd63fc84a2b1544ddaa55c63ebfd3405bb66a22af3ec36de09e9397cc7b"}},{"ruleId":"D2","level":"warning","message":{"text":"ShortDecimalFlatBatchReader.readWithNull (cognitive 18): ShortDecimalFlatBatchReader.readWithNull has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13, loops 4, 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":"presto-parquet/src/main/java/com/facebook/presto/parquet/batchreader/ShortDecimalFlatBatchReader.java"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"63622516735febe1dc590a416933b4577eb65ddb43304a9aeee1a57cddac6e1e"}},{"ruleId":"D2","level":"warning","message":{"text":"TimestampFlatBatchReader.readWithNull (cognitive 18): TimestampFlatBatchReader.readWithNull has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13, loops 4, 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":"presto-parquet/src/main/java/com/facebook/presto/parquet/batchreader/TimestampFlatBatchReader.java"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"b50cd2973cdfec105c38ca178d700295fe711762a6bea55f8f48b4efc1ac3846"}},{"ruleId":"D2","level":"warning","message":{"text":"TimestampNestedBatchReader.readNestedWithNull (cognitive 18): TimestampNestedBatchReader.readNestedWithNull has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 7, loops 6, if/else 5 (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":"presto-parquet/src/main/java/com/facebook/presto/parquet/batchreader/TimestampNestedBatchReader.java"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"abdd199f8934c51951df5f8537fff596625040dc57eebb64a2cd8e99b505b0f6"}},{"ruleId":"D2","level":"warning","message":{"text":"UuidFlatBatchReader.readWithNull (cognitive 18): UuidFlatBatchReader.readWithNull has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13, loops 4, 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":"presto-parquet/src/main/java/com/facebook/presto/parquet/batchreader/UuidFlatBatchReader.java"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a6ffc2f68fec2c1b451cd1b70606d6f12762cc629f15ba01a65e4a640c45ed5"}},{"ruleId":"D2","level":"warning","message":{"text":"MetadataReader.readTypeSchema (cognitive 18): MetadataReader.readTypeSchema has cognitive complexity 18 (threshold 15). Drivers by points: if/else 17, 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":"presto-parquet/src/main/java/com/facebook/presto/parquet/cache/MetadataReader.java"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd6e1a7e34abfaf27036f8cae234d0b1838eac12da4f66eddd81b9848844f5ba"}},{"ruleId":"D2","level":"warning","message":{"text":"AbstractColumnReader.processValues (cognitive 18): AbstractColumnReader.processValues has cognitive complexity 18 (threshold 15). Drivers by points: if/else 14, loops 3, 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":"presto-parquet/src/main/java/com/facebook/presto/parquet/reader/AbstractColumnReader.java"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"95e96cf73f57bedbfef0e926d93783235de4276ae59ea737e88e891d25b40259"}},{"ruleId":"D2","level":"warning","message":{"text":"PinotQueryGeneratorContext.toSqlQuery (cognitive 18): PinotQueryGeneratorContext.toSqlQuery has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10, boolean chains 5, ternaries 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":"presto-pinot-toolkit/src/main/java/com/facebook/presto/pinot/query/PinotQueryGeneratorContext.java"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd162c4997f66533fb778dc579e27fdbc0de59695b9fc43b96301c2f7878dfff"}},{"ruleId":"D2","level":"warning","message":{"text":"PageResponseHandler.handle (cognitive 18): PageResponseHandler.handle has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11, error handling 3, 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":"presto-spark-base/src/main/java/com/facebook/presto/spark/execution/http/PrestoSparkHttpTaskClient.java"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"a30044bad574786824ed7974fba289c11e034aca88d97afcd710e50fc21e3e40"}},{"ruleId":"D2","level":"warning","message":{"text":"PrestoSparkTaskExecutorFactory.fillJavaExecutionTaskInputs (cognitive 18): PrestoSparkTaskExecutorFactory.fillJavaExecutionTaskInputs 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":"presto-spark-base/src/main/java/com/facebook/presto/spark/execution/task/PrestoSparkTaskExecutorFactory.java"},"region":{"startLine":729}}}],"partialFingerprints":{"codehealthFindingId/v1":"c313e05936223ae290b6dd565585581bc7318cbb34c36853e1848093c7de5abf"}},{"ruleId":"D2","level":"warning","message":{"text":"MapColumnValidator.validate (cognitive 18): MapColumnValidator.validate has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8, boolean chains 7, ternaries 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":"presto-verifier/src/main/java/com/facebook/presto/verifier/checksum/MapColumnValidator.java"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ca979177fea6069999aa2c07546cd60e8ac4e50d9b45c19ad05f1d5ce54e751"}},{"ruleId":"D2","level":"warning","message":{"text":"DdlVerification.verify (cognitive 18): DdlVerification.verify has cognitive complexity 18 (threshold 15). Drivers by points: error handling 9, if/else 8, 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":"presto-verifier/src/main/java/com/facebook/presto/verifier/framework/DdlVerification.java"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"6304f955a7f578ca0ac2cc325973068dd5aa142300d0289a90382ad60a9a0109"}},{"ruleId":"D2","level":"warning","message":{"text":"Visitor.checkTypesMatchForInsert (cognitive 17): Visitor.checkTypesMatchForInsert 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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"c45ba74f7c03e7783b9fcf71a67d63f7cbefe9779e5b926a1c1dd5664de45807"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseGroupInnerJoinsByConnector.getNewTableScanNode (cognitive 17): BaseGroupInnerJoinsByConnector.getNewTableScanNode has cognitive complexity 17 (threshold 15). Drivers by points: if/else 14, loops 3 (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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/GroupInnerJoinsByConnectorRuleSet.java"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb7811c3b6eeaec695b124559b2db039288512e4930a3f0a4a01b4812e6934e0"}},{"ruleId":"D2","level":"warning","message":{"text":"IndexSourceRewriter.visitProject (cognitive 17): IndexSourceRewriter.visitProject has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10, loops 7 (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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/IndexJoinOptimizer.java"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"038352b6232084eb3fb340843de5e3f646f40e910808404300d253937b65486f"}},{"ruleId":"D2","level":"warning","message":{"text":"Rewriter.extractNonNullVariablesRecursive (cognitive 17): Rewriter.extractNonNullVariablesRecursive has cognitive complexity 17 (threshold 15). Drivers by points: if/else 14, 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PayloadJoinOptimizer.java"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"5feb0c5068758aed5078c105b3b24340d91c013d5d55bca72e799a65d09f1319"}},{"ruleId":"D2","level":"warning","message":{"text":"Visitor.visitScanFilterAndProject (cognitive 17): Visitor.visitScanFilterAndProject has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8, loops 3, boolean chains 2, error handling 2, ternaries 2 (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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/LocalExecutionPlanner.java"},"region":{"startLine":1562}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5f509d340eacfaaafa9692012f9f0cf2407f6818276336996491828bb12c15d"}},{"ruleId":"D2","level":"warning","message":{"text":"PlanFragmenterUtils.buildCanonicalNameMap (cognitive 17): PlanFragmenterUtils.buildCanonicalNameMap has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10, loops 7 (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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/PlanFragmenterUtils.java"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f951307b23479e2412b1153d83b0b8fc857732a709cbe45c82e9b7c37862461"}},{"ruleId":"D2","level":"warning","message":{"text":"QueryBuilder.buildSql (cognitive 17): QueryBuilder.buildSql has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10, error handling 6, loops 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":"presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/QueryBuilder.java"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"340b9f99a46cce5b551e82b31933afa6cb32530c1919d0762168495148a5bfd1"}},{"ruleId":"D2","level":"warning","message":{"text":"PrometheusClient.fetchUri (cognitive 17): PrometheusClient.fetchUri has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9, error handling 6, 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":"presto-prometheus/src/main/java/com/facebook/presto/plugin/prometheus/PrometheusClient.java"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"0282ccfa42750b0f1fc329dc6985bc362ab6dc1270060ab1c28ea824a497aa2b"}},{"ruleId":"D2","level":"warning","message":{"text":"Console.process (cognitive 17): Console.process has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, boolean chains 4, error handling 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-cli/src/main/java/com/facebook/presto/cli/Console.java"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"066b0356becdb3078acd7e81ac03d217b5f3f825d553c759a7a4b5b1fda2f37d"}},{"ruleId":"D2","level":"warning","message":{"text":"Query.renderQueryOutput (cognitive 17): Query.renderQueryOutput has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12, ternaries 3, boolean chains 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":"presto-cli/src/main/java/com/facebook/presto/cli/Query.java"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"b490cc6d763039a58311c58854733140894ae76622f10d9f81edd305a5e471d6"}},{"ruleId":"D2","level":"warning","message":{"text":"Marker.compareTo (cognitive 17): Marker.compareTo has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, ternaries 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":"presto-common/src/main/java/com/facebook/presto/common/predicate/Marker.java"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"aba0688b5db56e4f0f873709b71546a7d4992fbfcac24a915c5ebdc02afcb9af"}},{"ruleId":"D2","level":"warning","message":{"text":"TupleDomainFilterUtils.toFilter (cognitive 17): TupleDomainFilterUtils.toFilter has cognitive complexity 17 (threshold 15). Drivers by points: if/else 14, ternaries 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":"presto-common/src/main/java/com/facebook/presto/common/predicate/TupleDomainFilterUtils.java"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"56f74e36cce5060bdcfd240c5ef862aea535ae74cf23a1020cda6bf1d76105f4"}},{"ruleId":"D2","level":"warning","message":{"text":"UnscaledDecimal128Arithmetic.multiply (cognitive 17): UnscaledDecimal128Arithmetic.multiply has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13, boolean chains 4 (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":"presto-common/src/main/java/com/facebook/presto/common/type/UnscaledDecimal128Arithmetic.java"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"166375bc5631736e3d90b000f25706bebac5c90a75a9de2e8acf1505fcf38f51"}},{"ruleId":"D2","level":"warning","message":{"text":"ElasticsearchClient.beginSearch (cognitive 17): ElasticsearchClient.beginSearch has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, error handling 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":"presto-elasticsearch/src/main/java/com/facebook/presto/elasticsearch/client/ElasticsearchClient.java"},"region":{"startLine":626}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d3b7ffdddcf17b04177564ff824a37a7f6f68e659dc26e8ee6f3ee4579c0040"}},{"ruleId":"D2","level":"warning","message":{"text":"ElasticsearchMetadata.getTableHandle (cognitive 17): ElasticsearchMetadata.getTableHandle has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9, error handling 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":"presto-elasticsearch/src/main/java/com/facebook/presto/elasticsearch/ElasticsearchMetadata.java"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cf44f41f2fb2eeed9e5caa81198219aad222b4f39a315f8335bf4c21bdb53ec"}},{"ruleId":"D2","level":"warning","message":{"text":"GlueExpressionUtil.buildGlueExpression (cognitive 17): GlueExpressionUtil.buildGlueExpression has cognitive complexity 17 (threshold 15). Drivers by points: if/else 15, 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":"presto-hive-metastore/src/main/java/com/facebook/presto/hive/metastore/glue/GlueExpressionUtil.java"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cc066e9ade7e2d0aa0a80399bfab62d1fcb6b24ede26d1192938c74d2144809"}},{"ruleId":"D2","level":"warning","message":{"text":"QuickStatsProvider.getQuickStats (cognitive 17): QuickStatsProvider.getQuickStats has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, error handling 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":"presto-hive/src/main/java/com/facebook/presto/hive/statistics/QuickStatsProvider.java"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee6bdd6af083bada45b071d47d7dc2c44b3f36d742a458a250813c20d47298fa"}},{"ruleId":"D2","level":"warning","message":{"text":"HiveFileIterator.computeNext (cognitive 17): HiveFileIterator.computeNext has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8, match/switch 4, 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":"presto-hive/src/main/java/com/facebook/presto/hive/util/HiveFileIterator.java"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"2992a341ef7d5c1973eab026ac58e570ffee4bebbbc2c698823cf2b037db9222"}},{"ruleId":"D2","level":"warning","message":{"text":"HiveTypeTranslator.isSupportedHiveType (cognitive 17): HiveTypeTranslator.isSupportedHiveType has cognitive complexity 17 (threshold 15). Drivers by points: if/else 16, 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":"presto-hive-metastore/src/main/java/com/facebook/presto/hive/HiveTypeTranslator.java"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f1df1911a44cdc4423e4ff3afbb4cd4404b5cc2484da31f0803297141d36817"}},{"ruleId":"D2","level":"warning","message":{"text":"FilteringPageSource.testNonNullPosition (cognitive 17): FilteringPageSource.testNonNullPosition has cognitive complexity 17 (threshold 15). Drivers by points: if/else 14, boolean chains 3 (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":"presto-hive/src/main/java/com/facebook/presto/hive/FilteringPageSource.java"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee914c18739031db362445ccee8e2f730588c9ca179fd3f4a2b2e6b6add1bf29"}},{"ruleId":"D2","level":"warning","message":{"text":"StoragePartitionLoader.convertFilesToInternalSplits (cognitive 17): StoragePartitionLoader.convertFilesToInternalSplits 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":"presto-hive/src/main/java/com/facebook/presto/hive/StoragePartitionLoader.java"},"region":{"startLine":654}}}],"partialFingerprints":{"codehealthFindingId/v1":"f72b9ed9cfe8c63bba2f9e3e389bd9d0853f1a214be95df9703e82294b9e839f"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoveOrphanFiles.doRemoveOrphanFiles (cognitive 17): RemoveOrphanFiles.doRemoveOrphanFiles has cognitive complexity 17 (threshold 15). Drivers by points: loops 6, if/else 5, error handling 3, ternaries 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":"presto-iceberg/src/main/java/com/facebook/presto/iceberg/procedure/RemoveOrphanFiles.java"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"e89385df04744de93ab6f74536e015303dbf2e9223252eeb65dfce07251d778e"}},{"ruleId":"D2","level":"warning","message":{"text":"IcebergNativeMetadata.getViews (cognitive 17): IcebergNativeMetadata.getViews has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, error handling 3, 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":"presto-iceberg/src/main/java/com/facebook/presto/iceberg/IcebergNativeMetadata.java"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7c5dc5934dcd83bd18380badcb0d1c42555c15068cd9357d531e37a6bd46bf4"}},{"ruleId":"D2","level":"warning","message":{"text":"IcebergNativeMetadata.listViews (cognitive 17): IcebergNativeMetadata.listViews has cognitive complexity 17 (threshold 15). Drivers by points: error handling 7, if/else 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":"presto-iceberg/src/main/java/com/facebook/presto/iceberg/IcebergNativeMetadata.java"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"9df85b1e4cff84be97443444a6e3840364d84e2ba73176b95bf5812ee4ba1d38"}},{"ruleId":"D2","level":"warning","message":{"text":"IcebergPageSink.abort (cognitive 17): IcebergPageSink.abort has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, error handling 4, 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":"presto-iceberg/src/main/java/com/facebook/presto/iceberg/IcebergPageSink.java"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"ace4213c89527d618ceff9bcfdc6faf06ff515f3976fb11d18c321b52caf093c"}},{"ruleId":"D2","level":"warning","message":{"text":"Partition.updateStats (cognitive 17): Partition.updateStats has cognitive complexity 17 (threshold 15). Drivers by points: if/else 14, 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":"presto-iceberg/src/main/java/com/facebook/presto/iceberg/Partition.java"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e0425c8303bead1cdda27b263fde9be7a392afcba23b1b63ebb8a644feb6a4c"}},{"ruleId":"D2","level":"warning","message":{"text":"RuntimeStatsMetricsReporter.report (cognitive 17): RuntimeStatsMetricsReporter.report 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":"presto-iceberg/src/main/java/com/facebook/presto/iceberg/RuntimeStatsMetricsReporter.java"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c0879b97e069db7327d2e09bce98c679915abf6e0e0d4db8466902e32aa41fc"}},{"ruleId":"D2","level":"warning","message":{"text":"ColumnJdbcTable.jdbcDataType (cognitive 17): ColumnJdbcTable.jdbcDataType 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":"presto-main-base/src/main/java/com/facebook/presto/connector/system/jdbc/ColumnJdbcTable.java"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f0e47c7f3707dc0ae517e9589843ecfc8c14f808a3918772988d695fc41b038"}},{"ruleId":"D2","level":"warning","message":{"text":"KuduClientSession.buildKuduSplits (cognitive 17): KuduClientSession.buildKuduSplits has cognitive complexity 17 (threshold 15). Drivers by points: if/else 14, 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":"presto-kudu/src/main/java/com/facebook/presto/kudu/KuduClientSession.java"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c6d9c05b35815eefc93ec2027e0f67b7ac2c9889fae65b1dcab8c44dab737e2"}},{"ruleId":"D2","level":"warning","message":{"text":"TypeHelper.getLong (cognitive 17): TypeHelper.getLong 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":"presto-kudu/src/main/java/com/facebook/presto/kudu/TypeHelper.java"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"fce31d45aa1bcee586d35367f08295d8dd0401a334155605616e22bcee0f56ba"}},{"ruleId":"D2","level":"warning","message":{"text":"QueryMonitor.logQueryTimeline (cognitive 17): QueryMonitor.logQueryTimeline has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12, loops 3, 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":"presto-main-base/src/main/java/com/facebook/presto/event/QueryMonitor.java"},"region":{"startLine":696}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bf537b58b5f4ec3763cbda8567d0c125bf177ba493bf51ec9d3f40f4dc24edb"}},{"ruleId":"D2","level":"warning","message":{"text":"NodeScheduler.createNodeMapSupplier (cognitive 17): NodeScheduler.createNodeMapSupplier has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8, loops 5, boolean chains 2, error handling 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":"presto-main-base/src/main/java/com/facebook/presto/execution/scheduler/NodeScheduler.java"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0d46732167d31471b19aa9771272a1b5f984a8de497d1796b2377904688a5e0"}},{"ruleId":"D2","level":"warning","message":{"text":"SqlQueryScheduler.initialize (cognitive 17): SqlQueryScheduler.initialize has cognitive complexity 17 (threshold 15). Drivers by points: if/else 16, 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":"presto-main-base/src/main/java/com/facebook/presto/execution/scheduler/SqlQueryScheduler.java"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dee34d82fb8df3f8f42380f596631b61d85cef44863d2e14dcf2848c77f11d1"}},{"ruleId":"D2","level":"warning","message":{"text":"TableWriteInfo.createWriterTarget (cognitive 17): TableWriteInfo.createWriterTarget 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":"presto-main-base/src/main/java/com/facebook/presto/execution/scheduler/TableWriteInfo.java"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cddd694b303dd9ff1bb5c550bc727b54104319f14afc2aa9749e614b175e0ae"}},{"ruleId":"D2","level":"warning","message":{"text":"StageExecutionStats.\u003Cinit\u003E (cognitive 17): StageExecutionStats.\u003Cinit\u003E has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 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":"presto-main-base/src/main/java/com/facebook/presto/execution/StageExecutionStats.java"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"92d5a995b0616434d41eb4191fb3352fdf78b856697c9664e757471425730233"}},{"ruleId":"D2","level":"warning","message":{"text":"ExactTypeSignature.equals (cognitive 17): ExactTypeSignature.equals has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13, match/switch 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":"presto-main-base/src/main/java/com/facebook/presto/metadata/BuiltInTypeAndFunctionNamespaceManager.java"},"region":{"startLine":1447}}}],"partialFingerprints":{"codehealthFindingId/v1":"c00acc8e4e2ec1c1d4cd55472f51e4d759e40197756ac78b1fb4814a2b6ce32a"}},{"ruleId":"D2","level":"warning","message":{"text":"MetadataManager.listTableColumns (cognitive 17): MetadataManager.listTableColumns has cognitive complexity 17 (threshold 15). Drivers by points: loops 16, if/else 1 (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":"presto-main-base/src/main/java/com/facebook/presto/metadata/MetadataManager.java"},"region":{"startLine":667}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f1958bd7c1be504e01efa0442ad170857164d5a4e6b0862ca6290c6d5ca7d74"}},{"ruleId":"D2","level":"warning","message":{"text":"StateCompiler.generateSerialize (cognitive 17): StateCompiler.generateSerialize has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13, 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":"presto-main-base/src/main/java/com/facebook/presto/operator/aggregation/state/StateCompiler.java"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b226b6e65c45a645bb13f4f8b56fef4702ed0e00823eb6b1a0ac1fa8f10e1d6"}},{"ruleId":"D2","level":"warning","message":{"text":"ArrayPositionWithIndexFunction.arrayPositionWithIndex (cognitive 17): ArrayPositionWithIndexFunction.arrayPositionWithIndex has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10, error handling 3, ternaries 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":"presto-main-base/src/main/java/com/facebook/presto/operator/scalar/ArrayPositionWithIndexFunction.java"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c6441bce864b86d430119e69c0d28719b7644c8b353b6b81811682186f9c16b"}},{"ruleId":"D2","level":"warning","message":{"text":"ArrayPositionWithIndexFunction.arrayPositionWithIndex (cognitive 17): ArrayPositionWithIndexFunction.arrayPositionWithIndex has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10, error handling 3, ternaries 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":"presto-main-base/src/main/java/com/facebook/presto/operator/scalar/ArrayPositionWithIndexFunction.java"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"55a6d63549a3f72ea996cb7ab21e3464b301bf6edef9d32b7850a15905f2c709"}},{"ruleId":"D2","level":"warning","message":{"text":"ArrayPositionWithIndexFunction.arrayPositionWithIndex (cognitive 17): ArrayPositionWithIndexFunction.arrayPositionWithIndex has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10, error handling 3, ternaries 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":"presto-main-base/src/main/java/com/facebook/presto/operator/scalar/ArrayPositionWithIndexFunction.java"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"60c235b62eb888e4f71cac52fd3638fcdecc85748cbf86fb52c314ce6bd6b6f3"}},{"ruleId":"D2","level":"warning","message":{"text":"ArrayPositionWithIndexFunction.arrayPositionWithIndex (cognitive 17): ArrayPositionWithIndexFunction.arrayPositionWithIndex has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10, error handling 3, ternaries 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":"presto-main-base/src/main/java/com/facebook/presto/operator/scalar/ArrayPositionWithIndexFunction.java"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"a913d190d6952211d9f6a8f280b329338ae381454e177c6cb836ace86ea51fbe"}},{"ruleId":"D2","level":"warning","message":{"text":"ArrayPositionWithIndexFunction.arrayPositionWithIndex (cognitive 17): ArrayPositionWithIndexFunction.arrayPositionWithIndex has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10, error handling 3, ternaries 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":"presto-main-base/src/main/java/com/facebook/presto/operator/scalar/ArrayPositionWithIndexFunction.java"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"20ec372a36ecbec72c64982ee26b01505898da4cc67a68cfdc4fdafa412b65c2"}},{"ruleId":"D2","level":"warning","message":{"text":"UnnestBlockBuilder.buildOutputBlockWithNullsByDictionary (cognitive 17): UnnestBlockBuilder.buildOutputBlockWithNullsByDictionary has cognitive complexity 17 (threshold 15). Drivers by points: loops 9, if/else 8 (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":"presto-main-base/src/main/java/com/facebook/presto/operator/unnest/UnnestBlockBuilder.java"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"fae076d70229bb61cc6619bd7e3afa3e618a418b5148734b1e5d66907ba03288"}},{"ruleId":"D2","level":"warning","message":{"text":"1.onSuccess (cognitive 17): 1.onSuccess has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13, boolean chains 2, error handling 1, 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":"presto-main-base/src/main/java/com/facebook/presto/operator/PageBufferClient.java"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"f83dcf0cd1855767f13ead1f34a0980430bb0abc2c19689d41e4d02ba84b963a"}},{"ruleId":"D2","level":"warning","message":{"text":"3.process (cognitive 17): 3.process has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13, match/switch 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":"presto-main-base/src/main/java/com/facebook/presto/operator/WorkProcessorUtils.java"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d9df6ea4549b12931606db0844500205292a24fa652ca07d17af7d160104bf9"}},{"ruleId":"D2","level":"warning","message":{"text":"TDigest.trimmedMean (cognitive 17): TDigest.trimmedMean has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 8, if/else 8, loops 1 (nesting depth added 1). 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":"presto-main-base/src/main/java/com/facebook/presto/tdigest/TDigest.java"},"region":{"startLine":595}}}],"partialFingerprints":{"codehealthFindingId/v1":"09212a62bfc3ec69f8cdfe808dbb931ee23bcd90b13beb783e113aaa6e6ca7be"}},{"ruleId":"D2","level":"warning","message":{"text":"IpPrefixOperators.castFromVarcharToIpPrefix (cognitive 17): IpPrefixOperators.castFromVarcharToIpPrefix has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9, loops 5, boolean chains 2, 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":"presto-main-base/src/main/java/com/facebook/presto/type/IpPrefixOperators.java"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab291da1d12ea8b17571bbd477691e73077d0f41fcd999e8b70550392a08a8b9"}},{"ruleId":"D2","level":"warning","message":{"text":"TypeCoercer.isTypeOnlyCoercion (cognitive 17): TypeCoercer.isTypeOnlyCoercion has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8, boolean chains 7, loops 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":"presto-main-base/src/main/java/com/facebook/presto/type/TypeCoercer.java"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0aab75919de7e9a6385226db3ea95810ee6747ded88c2cd583cb03ebff4a86d"}},{"ruleId":"D2","level":"warning","message":{"text":"ExactTypeSignature.equals (cognitive 17): ExactTypeSignature.equals has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13, match/switch 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":"presto-native-sidecar-plugin/src/main/java/com/facebook/presto/sidecar/typemanager/NativeTypeManager.java"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5a5c3f3b6b846d743b340cff5ec7e19c9c6e30a312fc4c11a3b48c2b999b696"}},{"ruleId":"D2","level":"warning","message":{"text":"DwrfMetadataWriter.toColumnStatistics (cognitive 17): DwrfMetadataWriter.toColumnStatistics has cognitive complexity 17 (threshold 15). Drivers by points: if/else 15, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-orc/src/main/java/com/facebook/presto/orc/metadata/DwrfMetadataWriter.java"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"961559218fbf562b7b31c6c9797dabbebacb8ee3ae12ab7493cbf5942d40e424"}},{"ruleId":"D2","level":"warning","message":{"text":"SliceDictionarySelectiveReader.openRowGroup (cognitive 17): SliceDictionarySelectiveReader.openRowGroup has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12, loops 5 (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":"presto-orc/src/main/java/com/facebook/presto/orc/reader/SliceDictionarySelectiveReader.java"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"e50770c117caa74f15f4247241d86fceb23564014aab848102e2fe2b698be329"}},{"ruleId":"D2","level":"warning","message":{"text":"LongInputStreamV2.readPatchedBaseValues (cognitive 17): LongInputStreamV2.readPatchedBaseValues has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8, loops 6, 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":"presto-orc/src/main/java/com/facebook/presto/orc/stream/LongInputStreamV2.java"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"419eac8e035e8720f968a47a3e6f1d48c0ea7c5c7464efca3fc286841e163c03"}},{"ruleId":"D2","level":"warning","message":{"text":"LongOutputStreamV2.preparePatchedBlob (cognitive 17): LongOutputStreamV2.preparePatchedBlob has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12, loops 4, 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":"presto-orc/src/main/java/com/facebook/presto/orc/stream/LongOutputStreamV2.java"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"58d95d66d9462b09a8c94904b0842cb7f7bd48b31d0fd7e65f50ebbe96d1c5d0"}},{"ruleId":"D2","level":"warning","message":{"text":"SerializationUtils.encodeBitWidth (cognitive 17): SerializationUtils.encodeBitWidth has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9, boolean chains 8. 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":"presto-orc/src/main/java/com/facebook/presto/orc/stream/LongOutputStreamV2.java"},"region":{"startLine":951}}}],"partialFingerprints":{"codehealthFindingId/v1":"b81eeb7ca36280af5d606792fd3d79687fc90760cde136eaf880b87b4903ab11"}},{"ruleId":"D2","level":"warning","message":{"text":"SerializationUtils.writeRemainingLongs (cognitive 17): SerializationUtils.writeRemainingLongs has cognitive complexity 17 (threshold 15). Drivers by points: loops 16, 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":"presto-orc/src/main/java/com/facebook/presto/orc/stream/LongOutputStreamV2.java"},"region":{"startLine":1236}}}],"partialFingerprints":{"codehealthFindingId/v1":"e24a81243514e3406ca6f68926c7e9fa1b228bb177ca9096bed3fdef22bc453e"}},{"ruleId":"D2","level":"warning","message":{"text":"DecimalColumnWriter.writeBlock (cognitive 17): DecimalColumnWriter.writeBlock has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10, loops 6, 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":"presto-orc/src/main/java/com/facebook/presto/orc/writer/DecimalColumnWriter.java"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3d2cbf83f25021d53cb4f3d011d535123f2da8a0864bd30f868e142ea6cc8ea"}},{"ruleId":"D2","level":"warning","message":{"text":"DictionaryColumnWriter.bufferOutputData (cognitive 17): DictionaryColumnWriter.bufferOutputData has cognitive complexity 17 (threshold 15). Drivers by points: loops 10, 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":"presto-orc/src/main/java/com/facebook/presto/orc/writer/DictionaryColumnWriter.java"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"23889e4585a777f6145d8bb6af638ad466de240526ec8853246da28ed9f84d0d"}},{"ruleId":"D2","level":"warning","message":{"text":"OrcWriter.\u003Cinit\u003E (cognitive 17): OrcWriter.\u003Cinit\u003E has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, loops 5, 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":"presto-orc/src/main/java/com/facebook/presto/orc/OrcWriter.java"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"357fad31d99f025622996345e732fca1425ec538959f580769a21533af9d49e4"}},{"ruleId":"D2","level":"warning","message":{"text":"BooleanRLEValuesDecoder.skip (cognitive 17): BooleanRLEValuesDecoder.skip has cognitive complexity 17 (threshold 15). Drivers by points: if/else 14, 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":"presto-parquet/src/main/java/com/facebook/presto/parquet/batchreader/decoders/rle/BooleanRLEValuesDecoder.java"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"4120cdf38c746e89c9e7f50c3be53db6c45acb26eeaf8ef6485ed24e743d241b"}},{"ruleId":"D2","level":"warning","message":{"text":"TupleDomainParquetPredicate.createDomain (cognitive 17): TupleDomainParquetPredicate.createDomain has cognitive complexity 17 (threshold 15). Drivers by points: if/else 14, 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":"presto-parquet/src/main/java/com/facebook/presto/parquet/predicate/TupleDomainParquetPredicate.java"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"b305e5fc1f6855797d8aa6a179ad6a67e251cb34c8d46472168fd4fc4900caac"}},{"ruleId":"D2","level":"warning","message":{"text":"TupleDomainParquetPredicate.matches (cognitive 17): TupleDomainParquetPredicate.matches has cognitive complexity 17 (threshold 15). Drivers by points: if/else 14, 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":"presto-parquet/src/main/java/com/facebook/presto/parquet/predicate/TupleDomainParquetPredicate.java"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"c17773b843333d1f2b5752ec9beececeb2e0276b4b41cfa49a3f1833161f0f49"}},{"ruleId":"D2","level":"warning","message":{"text":"ParquetReader.typeCoercion (cognitive 17): ParquetReader.typeCoercion 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":"presto-parquet/src/main/java/com/facebook/presto/parquet/reader/ParquetReader.java"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"2623af0b0d7bbaf47a4e7ff7a2ffefffeb3592da4af8f13288c6975266bd2e74"}},{"ruleId":"D2","level":"warning","message":{"text":"PinotBrokerPageSource.setValue (cognitive 17): PinotBrokerPageSource.setValue has cognitive complexity 17 (threshold 15). Drivers by points: if/else 16, boolean chains 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":"presto-pinot-toolkit/src/main/java/com/facebook/presto/pinot/PinotBrokerPageSource.java"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"e698bf92f0f6db13c83d5741b962f02eea284714b7a5fc80a9cd9a3e8e7dc8b3"}},{"ruleId":"D2","level":"warning","message":{"text":"ProxyResource.rewriteResponse (cognitive 17): ProxyResource.rewriteResponse 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":"presto-proxy/src/main/java/com/facebook/presto/proxy/ProxyResource.java"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"4757e7b5ff156c81922c7c45162a33b285603ddb0162d577df26e93d3e9dca61"}},{"ruleId":"D2","level":"warning","message":{"text":"QueryRewriter.getColumnTypeRewrite (cognitive 17): QueryRewriter.getColumnTypeRewrite has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10, boolean chains 3, loops 2, ternaries 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-verifier/src/main/java/com/facebook/presto/verifier/rewrite/QueryRewriter.java"},"region":{"startLine":645}}}],"partialFingerprints":{"codehealthFindingId/v1":"b78fb3461ccea42ea67f7480589de48e3af0f134d43a34724e68ec23dc19b445"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseArrowFlightClientHandler.createFlightClient (cognitive 17): BaseArrowFlightClientHandler.createFlightClient has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9, error handling 7, boolean chains 1 (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":"presto-base-arrow-flight/src/main/java/com/facebook/plugin/arrow/BaseArrowFlightClientHandler.java"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"66131dfb4fb590cbc85bde95af81cc92f699a7193b656b342b9895eadab88f13"}},{"ruleId":"D2","level":"warning","message":{"text":"ArrowBatchSource.nextBatch (cognitive 17): ArrowBatchSource.nextBatch has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12, loops 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":"presto-common-arrow/src/main/java/com/facebook/plugin/arrow/ArrowBatchSource.java"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f5f33fe607ee92900d70bbac1f2387e65f8b41d606214b9c490a410cac953da"}},{"ruleId":"D2","level":"warning","message":{"text":"ColumnCardinalityCache.getCardinalities (cognitive 16): ColumnCardinalityCache.getCardinalities has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, loops 3, boolean chains 2, 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":"presto-accumulo/src/main/java/com/facebook/presto/accumulo/index/ColumnCardinalityCache.java"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9eb760bd8ce2c09953270e28fb7da6f847fa0a6cd8fa055edccd0d2baca4fb9"}},{"ruleId":"D2","level":"warning","message":{"text":"Visitor.processMaterializedView (cognitive 16): Visitor.processMaterializedView has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, loops 4 (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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java"},"region":{"startLine":2708}}}],"partialFingerprints":{"codehealthFindingId/v1":"60c14aeb7359ec97309ad27dd3fb4c6e6b2188bac63c7a646363c73518aa9738"}},{"ruleId":"D2","level":"warning","message":{"text":"SwapAdjacentWindowsBySpecifications.compareOrderBy (cognitive 16): SwapAdjacentWindowsBySpecifications.compareOrderBy has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11, boolean chains 4, 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/GatherAndMergeWindows.java"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"3570fd9ce5a136d17dcfa24d823737ffabeafc285012297a04eaafa070477426"}},{"ruleId":"D2","level":"warning","message":{"text":"MergeMinMaxByAggregations.apply (cognitive 16): MergeMinMaxByAggregations.apply has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, loops 5, 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/MergeMinMaxByAggregations.java"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"62da7e18b10aa38c13b1cd268012c29f1be934bb8981821694d91f6944c07302"}},{"ruleId":"D2","level":"warning","message":{"text":"PreAggregateBeforeGroupId.apply (cognitive 16): PreAggregateBeforeGroupId.apply has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9, loops 7 (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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PreAggregateBeforeGroupId.java"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4e91a14507ae9cd2c7379a2d59bc73a9b4e933314f836d25a85e6bcbf0a670c"}},{"ruleId":"D2","level":"warning","message":{"text":"PushPartialAggregationThroughExchange.apply (cognitive 16): PushPartialAggregationThroughExchange.apply has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, boolean chains 7, match/switch 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PushPartialAggregationThroughExchange.java"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2a3655a327e1ec21101dc912d4bf7d69cd995b1f47b3aa18453ea08d8d5aa7d"}},{"ruleId":"D2","level":"warning","message":{"text":"RewriteAggregationIfToFilter.apply (cognitive 16): RewriteAggregationIfToFilter.apply has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11, loops 2, ternaries 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/RewriteAggregationIfToFilter.java"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d9456799928ffd072621cccc61dd7c257f71d0584f6802051a43155ac25f311"}},{"ruleId":"D2","level":"warning","message":{"text":"SelectLowestCostMVRewrite.apply (cognitive 16): SelectLowestCostMVRewrite.apply has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11, boolean chains 3, 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/SelectLowestCostMVRewrite.java"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"530a52b9888e3931e5dc56c36f5e0baa590040530c5eb3f81fdc3649da2ee009"}},{"ruleId":"D2","level":"warning","message":{"text":"SimplifyAggregationsOverConstant.tryFold (cognitive 16): SimplifyAggregationsOverConstant.tryFold has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13, ternaries 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/SimplifyAggregationsOverConstant.java"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a6afbfccafe2766f113d0227dfd11c732493a6fa0699851087eb5b75635535f"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfidenceBasedBroadcastUtil.treatLowConfidenceZeroEstimationsAsUnknown (cognitive 16): ConfidenceBasedBroadcastUtil.treatLowConfidenceZeroEstimationsAsUnknown has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13, 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/ConfidenceBasedBroadcastUtil.java"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"94c27570ff65c55d59c8092b1d923391aebdcad5bab7f80e6a6e081b9c1d859e"}},{"ruleId":"D2","level":"warning","message":{"text":"Rewriter.tryNormalizeToOuterToInnerJoin (cognitive 16): Rewriter.tryNormalizeToOuterToInnerJoin has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, boolean chains 5, ternaries 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PredicatePushDown.java"},"region":{"startLine":1368}}}],"partialFingerprints":{"codehealthFindingId/v1":"52329a5f3e5311c0fb6dca740bcd22ee19dbf16bbb68a3d32b2065c4da5744dd"}},{"ruleId":"D2","level":"warning","message":{"text":"Rewriter.visitLimit (cognitive 16): Rewriter.visitLimit has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13, 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PrefilterForLimitingAggregation.java"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"23781be2a066e6ce088c383cdac1b0860adac487f280e480761c0572b8efab98"}},{"ruleId":"D2","level":"warning","message":{"text":"Visitor.printTableScanInfo (cognitive 16): Visitor.printTableScanInfo has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13, 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/planPrinter/PlanPrinter.java"},"region":{"startLine":1056}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb0d9dba20e787f8242e6feb6198039309ec2ed16253f01cd3205b029354d4a6"}},{"ruleId":"D2","level":"warning","message":{"text":"TextRenderer.printEstimates (cognitive 16): TextRenderer.printEstimates has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 10, if/else 3, 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/planPrinter/TextRenderer.java"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2c57a1346cf6afd7da7b09a087e3f49f1a58b42ac6fd818dad04e5601756829"}},{"ruleId":"D2","level":"warning","message":{"text":"Builder.generateMoreEquivalences (cognitive 16): Builder.generateMoreEquivalences has cognitive complexity 16 (threshold 15). Drivers by points: loops 10, if/else 6 (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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/EqualityInference.java"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ee65eca4d63f33e4035edc81c0218c2f3b8c8c64ca0da6481178798cd2f8c26"}},{"ruleId":"D2","level":"warning","message":{"text":"Visitor.visitSpatialJoin (cognitive 16): Visitor.visitSpatialJoin has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11, 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/LocalExecutionPlanner.java"},"region":{"startLine":2077}}}],"partialFingerprints":{"codehealthFindingId/v1":"eda8dcaec19a5bb9383d4707b6dc714c1b7e660800ee9118d31fa415a1ab565b"}},{"ruleId":"D2","level":"warning","message":{"text":"PlannerUtils.containsNonDeterministicExpression (cognitive 16): PlannerUtils.containsNonDeterministicExpression has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/PlannerUtils.java"},"region":{"startLine":969}}}],"partialFingerprints":{"codehealthFindingId/v1":"892a56ccf57c9c17452fc80d02d255941eb2bdb6d4fef96568e0cfaaab69bfd1"}},{"ruleId":"D2","level":"warning","message":{"text":"QueryPlanner.plan (cognitive 16): QueryPlanner.plan has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, loops 4, ternaries 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/QueryPlanner.java"},"region":{"startLine":763}}}],"partialFingerprints":{"codehealthFindingId/v1":"51d7152e0f7f8af5f517b9b03b55755c796918feb97cbb743a9fe5be3d0575a4"}},{"ruleId":"D2","level":"warning","message":{"text":"RelationPlanner.processTableArguments (cognitive 16): RelationPlanner.processTableArguments 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/RelationPlanner.java"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"a04a988bbffd046361b870669ec7e78e5d33dd3bf54ccac8533ffe0e3d4116c4"}},{"ruleId":"D2","level":"warning","message":{"text":"RelationPlanner.visitUnnest (cognitive 16): RelationPlanner.visitUnnest has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, loops 6, boolean chains 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/RelationPlanner.java"},"region":{"startLine":1185}}}],"partialFingerprints":{"codehealthFindingId/v1":"63e24b173410b44131d2299bad34352bbdbf8a2113d83c8e5e92705d036e7fa9"}},{"ruleId":"D2","level":"warning","message":{"text":"ReservedIdentifiers.validateDocs (cognitive 16): ReservedIdentifiers.validateDocs has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13, loops 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":"presto-parser/src/main/java/com/facebook/presto/sql/ReservedIdentifiers.java"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d2c7e3ddd7e39e65d301e85ae6689282fadeaacb053b5b41c6031437fe0b865"}},{"ruleId":"D2","level":"warning","message":{"text":"StandardColumnMappings.getWriteMappingForAccumulators (cognitive 16): StandardColumnMappings.getWriteMappingForAccumulators has cognitive complexity 16 (threshold 15). Drivers by points: if/else 15, 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":"presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/mapping/StandardColumnMappings.java"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aa9f294e58b4f8f2426d56fa547771c5f91c9d78e2ab5c9fa0cd99e03424677"}},{"ruleId":"D2","level":"warning","message":{"text":"FileMergeCacheManager.write (cognitive 16): FileMergeCacheManager.write has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13, boolean chains 2, error handling 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":"presto-cache/src/main/java/com/facebook/presto/cache/filemerge/FileMergeCacheManager.java"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ecc502f173484c6f0d10a8f63e4a68225e83658c960ce1078fe42b4380183fb"}},{"ruleId":"D2","level":"warning","message":{"text":"CassandraPageSink.appendColumn (cognitive 16): CassandraPageSink.appendColumn has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14, 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":"presto-cassandra/src/main/java/com/facebook/presto/cassandra/CassandraPageSink.java"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fedca0d4486605eb72ad9607bab041bb0ef605d892b4f97616fcde4443282c0"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeCassandraSession.getPartitions (cognitive 16): NativeCassandraSession.getPartitions has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13, 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":"presto-cassandra/src/main/java/com/facebook/presto/cassandra/NativeCassandraSession.java"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"75dd507ac98311a78e7144ab1fc2b1df994acbf68d68f0d829681794a5c4c1cf"}},{"ruleId":"D2","level":"warning","message":{"text":"StatementClientV1.buildQueryRequest (cognitive 16): StatementClientV1.buildQueryRequest has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7, loops 7, boolean chains 1, ternaries 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":"presto-client/src/main/java/com/facebook/presto/client/StatementClientV1.java"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"458e856053cd5f2b4f185b12c4276d3cf3c39715fcfb796df18fb003e7acef2d"}},{"ruleId":"D2","level":"warning","message":{"text":"StatementClientV1.processResponse (cognitive 16): StatementClientV1.processResponse has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, loops 6 (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":"presto-client/src/main/java/com/facebook/presto/client/StatementClientV1.java"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e6616df28f232714ee49f898fa24510a0192f9f37cc296967ec4b12d155f1d7"}},{"ruleId":"D2","level":"warning","message":{"text":"BlockFlattener.flattenDictionaryBlock (cognitive 16): BlockFlattener.flattenDictionaryBlock has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, 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":"presto-common/src/main/java/com/facebook/presto/common/block/BlockFlattener.java"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"55658b87faed0d7941d66b0f760a5a80f0851d7ca27d5ac78f0edc59fafd594b"}},{"ruleId":"D2","level":"warning","message":{"text":"BytesRange.testBytes (cognitive 16): BytesRange.testBytes has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, boolean chains 4, 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":"presto-common/src/main/java/com/facebook/presto/common/predicate/TupleDomainFilter.java"},"region":{"startLine":1046}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca61dbe49d2f8b672802f95ef7a1faa8ab7f7cd8236f1529fa4bf0f05623c7a9"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionMatchSpec.match (cognitive 16): SessionMatchSpec.match has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14, boolean chains 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":"presto-session-property-managers-common/src/main/java/com/facebook/presto/session/SessionMatchSpec.java"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"50c35e22f4f2e3e5252d4595e2c9da1c0d8ca61d6e95ec9257dbda9ba64053ab"}},{"ruleId":"D2","level":"warning","message":{"text":"TableDataRewriteDistributedProcedure.extractSortFieldStrings (cognitive 16): TableDataRewriteDistributedProcedure.extractSortFieldStrings has cognitive complexity 16 (threshold 15). Drivers by points: error handling 8, if/else 6, ternaries 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":"presto-spi/src/main/java/com/facebook/presto/spi/procedure/TableDataRewriteDistributedProcedure.java"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e38ff48bdce8a5990a3d0a781717e2b0a5a908f9da7d17dfba04dc07404bb10"}},{"ruleId":"D2","level":"warning","message":{"text":"HostAddress.fromString (cognitive 16): HostAddress.fromString has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, boolean chains 2, error handling 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":"presto-spi/src/main/java/com/facebook/presto/spi/HostAddress.java"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2477011037be146c803e61b3a993180a2a21798f1e350c5528b1c2d49622acb"}},{"ruleId":"D2","level":"warning","message":{"text":"Builder.addRow (cognitive 16): Builder.addRow 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":"presto-spi/src/main/java/com/facebook/presto/spi/InMemoryRecordSet.java"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd1a6cb6788fe575cdf3af5f64a596572b59f4801eb34f5f60a568a427e55c4a"}},{"ruleId":"D2","level":"warning","message":{"text":"JtsGeometrySerde.readPolygon (cognitive 16): JtsGeometrySerde.readPolygon has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11, loops 4, error handling 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":"presto-geospatial-toolkit/src/main/java/com/facebook/presto/geospatial/serde/JtsGeometrySerde.java"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"f05eb798f7654cd388343a7911e83334038f90c39827eab87a0f77e405967ff6"}},{"ruleId":"D2","level":"warning","message":{"text":"PrestoS3InputStream.read (cognitive 16): PrestoS3InputStream.read has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9, error handling 3, match/switch 3, 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":"presto-hive/src/main/java/com/facebook/presto/hive/s3/PrestoS3FileSystem.java"},"region":{"startLine":983}}}],"partialFingerprints":{"codehealthFindingId/v1":"da7e45db0fd4133e016f2e0aa23e9b2db287d7cdf0a4e78869faa8a5b1a392e4"}},{"ruleId":"D2","level":"warning","message":{"text":"MetastoreHiveStatisticsProvider.validateColumnStatistics (cognitive 16): MetastoreHiveStatisticsProvider.validateColumnStatistics has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9, boolean chains 7. 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":"presto-hive/src/main/java/com/facebook/presto/hive/statistics/MetastoreHiveStatisticsProvider.java"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"aace4e9b69f8b225249a339d8d885d5be7e5a7e916953bb7ba6acbc8f1a63ae6"}},{"ruleId":"D2","level":"warning","message":{"text":"HiveMaterializedViewUtils.differenceDataPredicates (cognitive 16): HiveMaterializedViewUtils.differenceDataPredicates has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, loops 3, 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":"presto-hive/src/main/java/com/facebook/presto/hive/HiveMaterializedViewUtils.java"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b0a1e36d6fabc22cb91b17bf4aa04ff33eec833ba052ce9d15ee83741051ee7"}},{"ruleId":"D2","level":"warning","message":{"text":"HiveMetadata.finishStatisticsCollection (cognitive 16): HiveMetadata.finishStatisticsCollection has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9, ternaries 5, 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":"presto-hive/src/main/java/com/facebook/presto/hive/HiveMetadata.java"},"region":{"startLine":1618}}}],"partialFingerprints":{"codehealthFindingId/v1":"3184a14e4a84ba23c33096a1d02cbfbbdfa1aa17ac6116b83358f9f38003b43e"}},{"ruleId":"D2","level":"warning","message":{"text":"HiveWriteUtils.createFieldSetter (cognitive 16): HiveWriteUtils.createFieldSetter has cognitive complexity 16 (threshold 15). Drivers by points: if/else 16. 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":"presto-hive/src/main/java/com/facebook/presto/hive/HiveWriteUtils.java"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"f37927e900d45f95808c3effd12eb59b685dcc1ed081f34d5cb3480341e48fff"}},{"ruleId":"D2","level":"warning","message":{"text":"HiveWriteUtils.getJavaObjectInspector (cognitive 16): HiveWriteUtils.getJavaObjectInspector has cognitive complexity 16 (threshold 15). Drivers by points: if/else 16. 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":"presto-hive/src/main/java/com/facebook/presto/hive/HiveWriteUtils.java"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"d562fa2932484fa1505d9881cfb6ccc0773ff15d2ee2a660cde060cc9f6269ac"}},{"ruleId":"D2","level":"warning","message":{"text":"IcebergAbstractMetadata.createMaterializedView (cognitive 16): IcebergAbstractMetadata.createMaterializedView has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, error handling 4, boolean chains 1, 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":"presto-iceberg/src/main/java/com/facebook/presto/iceberg/IcebergAbstractMetadata.java"},"region":{"startLine":1888}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa6d5f7bb547c47ec4a9904ce6480c74a67cc6ac05ea5ae4adfc74ae7be7b942"}},{"ruleId":"D2","level":"warning","message":{"text":"PrestoDriverUri.setupClient (cognitive 16): PrestoDriverUri.setupClient has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13, 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":"presto-jdbc/src/main/java/com/facebook/presto/jdbc/PrestoDriverUri.java"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"74019e26cb75f2c70eaeb9a5d833950ce37458af0f3f818750fd9ffe143f33e4"}},{"ruleId":"D2","level":"warning","message":{"text":"AbstractRowEncoder.appendColumnValue (cognitive 16): AbstractRowEncoder.appendColumnValue has cognitive complexity 16 (threshold 15). Drivers by points: if/else 16. 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":"presto-kafka/src/main/java/com/facebook/presto/kafka/encoder/AbstractRowEncoder.java"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"379cf8c03708dd55307c85a30e3faae7029b8087f173d5a33b10e9365cc6090d"}},{"ruleId":"D2","level":"warning","message":{"text":"RangeBoundValueSerializer.writeValue (cognitive 16): RangeBoundValueSerializer.writeValue has cognitive complexity 16 (threshold 15). Drivers by points: if/else 16 (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":"presto-kudu/src/main/java/com/facebook/presto/kudu/properties/RangeBoundValueSerializer.java"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"6339f40e71192cd7e8f6806e4749e0212730ccef0118924d01442e099af170ab"}},{"ruleId":"D2","level":"warning","message":{"text":"LanceSqlFilterBuilder.toLiteral (cognitive 16): LanceSqlFilterBuilder.toLiteral has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11, boolean chains 3, ternaries 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-lance/src/main/java/com/facebook/presto/lance/LanceSqlFilterBuilder.java"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2767e362f72dd05e8ad70228b8902341eb25c0b916e1ac73f37fb1b0fd01572"}},{"ruleId":"D2","level":"warning","message":{"text":"SqlStageExecution.updateTaskStatus (cognitive 16): SqlStageExecution.updateTaskStatus has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, error handling 3, 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":"presto-main-base/src/main/java/com/facebook/presto/execution/SqlStageExecution.java"},"region":{"startLine":654}}}],"partialFingerprints":{"codehealthFindingId/v1":"f240812a51616a4fa5926b7bdbdcfb4f557a3c4ce64a0dbca6477640bd30df4c"}},{"ruleId":"D2","level":"warning","message":{"text":"FunctionAndTypeManager.getSpecializedFunctionKey (cognitive 16): FunctionAndTypeManager.getSpecializedFunctionKey has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, loops 4 (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":"presto-main-base/src/main/java/com/facebook/presto/metadata/FunctionAndTypeManager.java"},"region":{"startLine":1021}}}],"partialFingerprints":{"codehealthFindingId/v1":"266c6e5c45a0ee92bc4ee3b9f8727e5639085e087ca71cdbf17e6be99226b4c9"}},{"ruleId":"D2","level":"warning","message":{"text":"AbstractArraySortByKeyFunction.sortByKey (cognitive 16): AbstractArraySortByKeyFunction.sortByKey has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, error handling 5, loops 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":"presto-main-base/src/main/java/com/facebook/presto/operator/scalar/AbstractArraySortByKeyFunction.java"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"405e8d85eb8a7d87bc40df9957e2cacbff17d01109d9e7e467aaa7aef570e22c"}},{"ruleId":"D2","level":"warning","message":{"text":"HashAggregationOperator.getGlobalAggregationOutput (cognitive 16): HashAggregationOperator.getGlobalAggregationOutput has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11, 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":"presto-main-base/src/main/java/com/facebook/presto/operator/HashAggregationOperator.java"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"837ba3260678cc76c0cf021221773d66f5e2ea4a5d7d8e171062a9b42cb1b367"}},{"ruleId":"D2","level":"warning","message":{"text":"PagesHash.\u003Cinit\u003E (cognitive 16): PagesHash.\u003Cinit\u003E has cognitive complexity 16 (threshold 15). Drivers by points: loops 8, if/else 7, boolean chains 1 (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":"presto-main-base/src/main/java/com/facebook/presto/operator/PagesHash.java"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"35a6b9baf48732b6cab95f8d1d9dbdcd1fdc48bcc4b1a86c11bbb95523b29bd2"}},{"ruleId":"D2","level":"warning","message":{"text":"TDigestUtils.insertionSort (cognitive 16): TDigestUtils.insertionSort has cognitive complexity 16 (threshold 15). Drivers by points: loops 8, if/else 7, 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":"presto-main-base/src/main/java/com/facebook/presto/tdigest/TDigestUtils.java"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e131755d39d054a99d408b248624b6d10de918f6099ca7b73ff346d3854b814"}},{"ruleId":"D2","level":"warning","message":{"text":"MongoPageSource.appendTo (cognitive 16): MongoPageSource.appendTo has cognitive complexity 16 (threshold 15). Drivers by points: if/else 15, error handling 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":"presto-mongodb/src/main/java/com/facebook/presto/mongodb/MongoPageSource.java"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"de519ec5d98cc9bd92768da397a30dd8cc98321c58b2c5132315fd46a6f7d58e"}},{"ruleId":"D2","level":"warning","message":{"text":"ListSelectiveStreamReader.populateOutputPositionsWithFilter (cognitive 16): ListSelectiveStreamReader.populateOutputPositionsWithFilter has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, loops 5, 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":"presto-orc/src/main/java/com/facebook/presto/orc/reader/ListSelectiveStreamReader.java"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"c23664a4fe2ae576f189cdd860b8192ccbc2b79d10edb309961258f44b489231"}},{"ruleId":"D2","level":"warning","message":{"text":"SliceDirectSelectiveStreamReader.evaluateFilterWithNull (cognitive 16): SliceDirectSelectiveStreamReader.evaluateFilterWithNull has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, boolean chains 3, 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":"presto-orc/src/main/java/com/facebook/presto/orc/reader/SliceDirectSelectiveStreamReader.java"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d8d82d58bb07ee2440a60a312963606189b721441e233c65d4993fa26fab3d1"}},{"ruleId":"D2","level":"warning","message":{"text":"StructSelectiveStreamReader.pruneOutputPositions (cognitive 16): StructSelectiveStreamReader.pruneOutputPositions has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14, 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":"presto-orc/src/main/java/com/facebook/presto/orc/reader/StructSelectiveStreamReader.java"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8e5a8e4adf58970ca57aa75d4927d1d9c5d6ac58d1284c8553cd01387c8342f"}},{"ruleId":"D2","level":"warning","message":{"text":"AbstractOrcDataSource.readSmallDiskRanges (cognitive 16): AbstractOrcDataSource.readSmallDiskRanges has cognitive complexity 16 (threshold 15). Drivers by points: loops 9, if/else 7 (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":"presto-orc/src/main/java/com/facebook/presto/orc/AbstractOrcDataSource.java"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"de0e99b0d2fde562a76d69a3cf59fcd11c286c66b27820a77101d10b50e95311"}},{"ruleId":"D2","level":"warning","message":{"text":"DictionaryCompressionOptimizer.convertLowCompressionStreams (cognitive 16): DictionaryCompressionOptimizer.convertLowCompressionStreams has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14, 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":"presto-orc/src/main/java/com/facebook/presto/orc/DictionaryCompressionOptimizer.java"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"32a9ef910187e2bfd5e100e1ca2b6fc62afff8b714e961e44e893a3c7e085e75"}},{"ruleId":"D2","level":"warning","message":{"text":"OrcWriter.addStatsRecursive (cognitive 16): OrcWriter.addStatsRecursive has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5, loops 4, ternaries 4, 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":"presto-orc/src/main/java/com/facebook/presto/orc/OrcWriter.java"},"region":{"startLine":801}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf8126f20ebf193bf90271f9c89df037b36709360d7c766c63a5178dbad270ea"}},{"ruleId":"D2","level":"warning","message":{"text":"BinaryFlatBatchReader.readWithNull (cognitive 16): BinaryFlatBatchReader.readWithNull has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, loops 5, 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":"presto-parquet/src/main/java/com/facebook/presto/parquet/batchreader/BinaryFlatBatchReader.java"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e1ab9ca683847bfc2f0a5f7dfd9892f6e2978fbb86291f250266a5a19fbc62a"}},{"ruleId":"D2","level":"warning","message":{"text":"ParquetSchemaConverter.getPrimitiveType (cognitive 16): ParquetSchemaConverter.getPrimitiveType has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14, boolean chains 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":"presto-parquet/src/main/java/com/facebook/presto/parquet/writer/ParquetSchemaConverter.java"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccbc2ad7c6cfce7eaea5a09cd5855431b6a39ca7886680253882af9d1eb33982"}},{"ruleId":"D2","level":"warning","message":{"text":"PinotBrokerPageSource.populateFromQueryResults (cognitive 16): PinotBrokerPageSource.populateFromQueryResults has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7, ternaries 6, boolean chains 2, 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":"presto-pinot-toolkit/src/main/java/com/facebook/presto/pinot/PinotBrokerPageSource.java"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fe19b0b398b185de6a72bac4235bbf10fe132dc947de2c9d81a979e97f3c821"}},{"ruleId":"D2","level":"warning","message":{"text":"PinotMetrics.monitorRequest (cognitive 16): PinotMetrics.monitorRequest has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 8, if/else 6, boolean chains 1, ternaries 1 (nesting depth added 9). 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":"presto-pinot-toolkit/src/main/java/com/facebook/presto/pinot/PinotMetrics.java"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b57e51d4dbbb988ce0e723b9da593634aa01ad5abe29730c8b4e6567b6df837"}},{"ruleId":"D2","level":"warning","message":{"text":"RcFileEncoding.getEncoding (cognitive 16): RcFileEncoding.getEncoding has cognitive complexity 16 (threshold 15). Drivers by points: if/else 15, 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":"presto-rcfile/src/main/java/com/facebook/presto/rcfile/RcFileEncoding.java"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfb0ac364f99ff71c8cfcf8e7286120b3c45c5319ab87fe69e2519d3f0dad6b5"}},{"ruleId":"D2","level":"warning","message":{"text":"RawColumnDecoder.\u003Cinit\u003E (cognitive 16): RawColumnDecoder.\u003Cinit\u003E has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, error handling 2, boolean chains 1, ternaries 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":"presto-record-decoder/src/main/java/com/facebook/presto/decoder/raw/RawColumnDecoder.java"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ed50ff426c8b27cc54056d28bc2fd12cf24271be0dbc623ab0e7a9feab8fe16"}},{"ruleId":"D2","level":"warning","message":{"text":"AbstractResourceConfigurationManager.validateRootGroups (cognitive 16): AbstractResourceConfigurationManager.validateRootGroups has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6, loops 5, match/switch 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":"presto-resource-group-managers/src/main/java/com/facebook/presto/resourceGroups/AbstractResourceConfigurationManager.java"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"54f89de24d177010351c7d86889078c3ceb5da3f3a05bb247dfce4f55b412a04"}},{"ruleId":"D2","level":"warning","message":{"text":"PrestoSparkRowBatchBuilder.createGroupedRowBatch (cognitive 16): PrestoSparkRowBatchBuilder.createGroupedRowBatch has cognitive complexity 16 (threshold 15). Drivers by points: loops 6, if/else 4, ternaries 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":"presto-spark-base/src/main/java/com/facebook/presto/spark/execution/PrestoSparkRowBatch.java"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"623557a2fae138ebe6269aa5de326bae0baef63fae15c919133f6e5c323a582e"}},{"ruleId":"D2","level":"warning","message":{"text":"BlockArrowWriter.prestoToArrowType (cognitive 16): BlockArrowWriter.prestoToArrowType has cognitive complexity 16 (threshold 15). Drivers by points: if/else 16. 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":"presto-common-arrow/src/main/java/com/facebook/plugin/arrow/BlockArrowWriter.java"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0ebc8fd6328f44f76475f41ae8c61db5e10837963e80916a50fce8fd8b522ef"}},{"ruleId":"D2","level":"warning","message":{"text":"DistinguishedNameParser.findMostSpecific (cognitive 16): DistinguishedNameParser.findMostSpecific has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, match/switch 2, boolean chains 1, 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":"presto-client/src/main/java/okhttp/internal/tls/DistinguishedNameParser.java"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"5441a6289679d61027a7fa432a5458cd706625568275702886e3f80ad0f1a331"}},{"ruleId":"D2","level":"warning","message":{"text":"DistinguishedNameParser.hexAV (cognitive 16): DistinguishedNameParser.hexAV has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7, loops 5, boolean chains 4 (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":"presto-client/src/main/java/okhttp/internal/tls/DistinguishedNameParser.java"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"762a1576f5632eb34669d3697fb5efaa545e7ecc4ff0e4afdcd5f159445a6cd0"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: FeaturesConfig: TooManyMethods \u2014 524 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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/FeaturesConfig.java"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fe232f7f07e17ab7d71ee7ea93986359cc3620865b9cbdc9ef956479c69dabf"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MetadataManagerStats: TooManyMethods \u2014 343 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":"presto-main-base/src/main/java/com/facebook/presto/metadata/MetadataManagerStats.java"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"db838e2d376a6ad7721728dd92f7b43b314910da65a30ea1000825eb24c27163"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SystemSessionProperties: TooManyMethods \u2014 326 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":"presto-main-base/src/main/java/com/facebook/presto/SystemSessionProperties.java"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"e244f90b7c8da8f71ef5491e9030abfea994bfaeb94e6551d9f084efee6c5b9c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: HiveClientConfig: TooManyMethods \u2014 245 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":"presto-hive/src/main/java/com/facebook/presto/hive/HiveClientConfig.java"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6e5000378dc871cf417e1732e86bbbcf2455737a1e1ef094343fdf0d38d9d84"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AstBuilder: TooManyMethods \u2014 243 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":"presto-parser/src/main/java/com/facebook/presto/sql/parser/AstBuilder.java"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"f52ee43343a7eaca0b20a64b1e9bd06fbcd11e4fd186e9aa977f085422ee3f67"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: analyzer/StatementAnalyzer.java: FileTooLong \u2014 3636 significant lines (blank, comment-only and punctuation-only lines excluded), about 89% of them inside a single declaration: StatementAnalyzer (416-5634). 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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"52ee6f52f985101ded8ca3e013b6eb14d02844c55ad18104fdcaf9c56a429b10"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PrestoResultSet: TooManyMethods \u2014 212 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":"presto-jdbc/src/main/java/com/facebook/presto/jdbc/PrestoResultSet.java"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"922e0b36f684c0dbf04917fc0efd867aeec8a742f550da9503ca2ef19d15a22b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AstVisitor: TooManyMethods \u2014 191 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":"presto-parser/src/main/java/com/facebook/presto/sql/tree/AstVisitor.java"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c38d6514329b490ba891a81a46d78b272efce4c11522bb18c7d16984f687f0f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: presto/SystemSessionProperties.java: FileTooLong \u2014 3169 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: SystemSessionProperties (99-4218). 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":"presto-main-base/src/main/java/com/facebook/presto/SystemSessionProperties.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3928b9b068361179e8338ed1093576c61d4875ad2455c308d94181a1bef56e5"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PrestoDatabaseMetaData: TooManyMethods \u2014 188 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":"presto-jdbc/src/main/java/com/facebook/presto/jdbc/PrestoDatabaseMetaData.java"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"45fc692bcc6558a64fc33a475a99a5f3f1e63d5036d10c3494e064323d165e58"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Analysis: TooManyMethods \u2014 186 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":"presto-analyzer/src/main/java/com/facebook/presto/sql/analyzer/Analysis.java"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"665940f6f45e65d8918fc2bd00a74c2c59fddf45511af2a072c535d571c54567"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: planner/LocalExecutionPlanner.java: FileTooLong \u2014 2853 significant lines (blank, comment-only and punctuation-only lines excluded), about 87% of them inside a single declaration: LocalExecutionPlanner (380-3895). 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/LocalExecutionPlanner.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"10cddd0da1b95c2fb52fb4b96b301cf4e88e324071a877962fb2e938926c227f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Visitor: TooManyMethods \u2014 171 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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f28e7aa94462b8e86bba2e6c179a93bb03f633a2d00d65b4c650870edd1c2ac"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: hive/HiveMetadata.java: FileTooLong \u2014 2815 significant lines (blank, comment-only and punctuation-only lines excluded), about 86% of them inside a single declaration: HiveMetadata (400-4003). 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":"presto-hive/src/main/java/com/facebook/presto/hive/HiveMetadata.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"916ac57888a084a149b8b916395a121fa9773fdfecf1e9afcb746cd410b51b6d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: HiveMetadata: TooManyMethods \u2014 149 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":"presto-hive/src/main/java/com/facebook/presto/hive/HiveMetadata.java"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfc1d5f0b57a73841bda4767f2613dd5e7a736c605348cdf3760ccb8d1ad87ce"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MetadataManager: TooManyMethods \u2014 145 methods. Most of these members implement metadata.Metadata (116 of 131 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":"presto-main-base/src/main/java/com/facebook/presto/metadata/MetadataManager.java"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"f215f5966cbe9562ea05c7e6c450cb09c77c724f647139d83227be5c2c4d4dc9"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BytecodeBlock: TooManyMethods \u2014 131 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":"presto-bytecode/src/main/java/com/facebook/presto/bytecode/BytecodeBlock.java"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb66c1e4a172473df7831406ad1e3dfe6e99315e0d94407eed57d708ebc1cee1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: analyzer/FeaturesConfig.java: FileTooLong \u2014 2179 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: FeaturesConfig (73-3901). 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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/FeaturesConfig.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a04b9d811806ceb25e3eeb9220ee300899ed5715de6de9f8c00a5ab4fa57840"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MathFunctions: TooManyMethods \u2014 128 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":"presto-main-base/src/main/java/com/facebook/presto/operator/scalar/MathFunctions.java"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d0d0974f88ebca02ef193d60409cd51cfdc10f6b7eb2a7ad0fb26d8422502d4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: parser/AstBuilder.java: FileTooLong \u2014 2111 significant lines (blank, comment-only and punctuation-only lines excluded), about 89% of them inside a single declaration: AstBuilder (252-3238). 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":"presto-parser/src/main/java/com/facebook/presto/sql/parser/AstBuilder.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"949884afdaed9e61c3a37c3f09fe472f013b22fc5ff326fe3007d580e8adae91"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Formatter: TooManyMethods \u2014 121 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":"presto-parser/src/main/java/com/facebook/presto/sql/SqlFormatter.java"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"86b793d02755bc4834f2f8e653942b90f55ab6f68071a4d1b4b19397a64a5ac2"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: StatsRecordingMetadataManager: TooManyMethods \u2014 120 methods. Most of these members implement metadata.Metadata (116 of 117 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":"presto-main-base/src/main/java/com/facebook/presto/metadata/StatsRecordingMetadataManager.java"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d759bb14ef9a147be0931c188491857e8c2609939db7ce37c4923e68baf7caf"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: metastore/SemiTransactionalHiveMetastore.java: FileTooLong \u2014 1960 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: SemiTransactionalHiveMetastore (125-3158). 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":"presto-hive-metastore/src/main/java/com/facebook/presto/hive/metastore/SemiTransactionalHiveMetastore.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbb5c50e9a88b442b102c9922314761ad91d87d39a8220f7c8d5ae7843801e71"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: iceberg/IcebergAbstractMetadata.java: FileTooLong \u2014 1957 significant lines (blank, comment-only and punctuation-only lines excluded), about 85% of them inside a single declaration: IcebergAbstractMetadata (312-2816). 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":"presto-iceberg/src/main/java/com/facebook/presto/iceberg/IcebergAbstractMetadata.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"68f878c5c30293a52a97d61f1e42fe1c1158088755b6649964a4db7ea9644898"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DelegatingMetadataManager: TooManyMethods \u2014 115 methods. Most of these members implement metadata.Metadata (111 of 112 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":"presto-main-base/src/main/java/com/facebook/presto/metadata/DelegatingMetadataManager.java"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"66f47ff7f8b8cc308acc1e7ea46896097c7cfff34e164c43c0bb758e01dc2f91"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ClassLoaderSafeConnectorMetadata: TooManyMethods \u2014 113 methods. Most of these members implement connector.ConnectorMetadata (105 of 106 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":"presto-spi/src/main/java/com/facebook/presto/spi/connector/classloader/ClassLoaderSafeConnectorMetadata.java"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"daad4e65ad52c4c07e86253ca6db8b31e0299a20db4f7349d7dff97e5b330eb5"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: IcebergAbstractMetadata: TooManyMethods \u2014 111 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":"presto-iceberg/src/main/java/com/facebook/presto/iceberg/IcebergAbstractMetadata.java"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"10671e994cdd5a2f6aae0bb82f4e9ac0296eadf27c803ca2bfd7b361983fc586"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: UnscaledDecimal128Arithmetic: 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":"presto-common/src/main/java/com/facebook/presto/common/type/UnscaledDecimal128Arithmetic.java"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc67caf6b0b40ffc54d29d27fe9f4267ac367bb5ea64eed1cba5ec546f40a679"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DateTimeFunctions: 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":"presto-main-base/src/main/java/com/facebook/presto/operator/scalar/DateTimeFunctions.java"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"7377b14a0648c6652de0c717dd36aa8c13aa43464960642373e6914bc505d7d6"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: QueryStateMachine: 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":"presto-main-base/src/main/java/com/facebook/presto/execution/QueryStateMachine.java"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"f39b18368b2449bdd8ba03e79cd8f63d780ed4e3ac4766ec51a3a2aeb3787277"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: HiveSessionProperties: TooManyMethods \u2014 96 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":"presto-hive/src/main/java/com/facebook/presto/hive/HiveSessionProperties.java"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"a189276edacdf629fef690cca5759099118e1c7c7f18acc5f5595a8793f5eaa7"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: IcebergUtil: TooManyMethods \u2014 96 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":"presto-iceberg/src/main/java/com/facebook/presto/iceberg/IcebergUtil.java"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f8aad32cac51635ec161ff02cc32442654eed644d9bc91af5692763514a4242"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AccessDeniedException: TooManyMethods \u2014 91 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":"presto-spi/src/main/java/com/facebook/presto/spi/security/AccessDeniedException.java"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"2818591db87720aa1f1fd6a582a1ea0d018ee609c124643a05dfa4ce38dd3e16"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: analyzer/ExpressionAnalyzer.java: FileTooLong \u2014 1516 significant lines (blank, comment-only and punctuation-only lines excluded), about 87% of them inside a single declaration: ExpressionAnalyzer (209-2285). 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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/ExpressionAnalyzer.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"92305a03fe5c0d254755cdedfdd0096ae63d0740f680c4437961820e7633bf81"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PinotConfig: TooManyMethods \u2014 90 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":"presto-pinot-toolkit/src/main/java/com/facebook/presto/pinot/PinotConfig.java"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"631db646ca9725dbb2f5ec8e69f8cd189b535f03c27c79a40a472b7f0bfb3281"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: FileHiveMetastore: 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":"presto-hive-metastore/src/main/java/com/facebook/presto/hive/metastore/file/FileHiveMetastore.java"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"98a7a4cb013f6c41e499804e7efe71275895c31bdd8a87cf30ca069361a2b943"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TaskManagerConfig: 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":"presto-main-base/src/main/java/com/facebook/presto/execution/TaskManagerConfig.java"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad3dadda01ffa026c56247d6746249a2b4c0202a9d2e23d8edd3d6c8010ef940"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: sql/SqlFormatter.java: FileTooLong \u2014 1419 significant lines (blank, comment-only and punctuation-only lines excluded), about 90% of them inside a single declaration: SqlFormatter (165-2156). 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":"presto-parser/src/main/java/com/facebook/presto/sql/SqlFormatter.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b26fa5d227213290a97a9b3369b29df4d9d380a0cb30015a7384e4de58448404"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: GeoFunctions: 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":"presto-main-base/src/main/java/com/facebook/presto/geospatial/GeoFunctions.java"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7162cb1ba76ed4962a3f5a0e7793697c1207d28bc1181f030b32e9370f375a0"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Visitor: 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/LocalExecutionPlanner.java"},"region":{"startLine":937}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0b5ed816bcdd13754f27e010671659f20f9ef0cbea0e10133576b7617008d43"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PrestoConnection: 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":"presto-jdbc/src/main/java/com/facebook/presto/jdbc/PrestoConnection.java"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f119ebf93f59fc6b761b31e3044ea546b5d8a7590c93ae4e0abb282c7d2b56f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: HadoopExtendedFileSystem: TooManyMethods \u2014 83 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":"presto-hdfs-core/src/main/java/org/apache/hadoop/fs/HadoopExtendedFileSystem.java"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"52c514b3d64b7b86187c2b89b9bfd4cf2badec637fa009b45f76a623c6e6f966"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SemiTransactionalHiveMetastore: TooManyMethods \u2014 83 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":"presto-hive-metastore/src/main/java/com/facebook/presto/hive/metastore/SemiTransactionalHiveMetastore.java"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"99da9d2ecdde7ced17d74a6a0771aa66aaa99fa4736e9e134a68f06e096a34dc"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PrestoPreparedStatement: TooManyMethods \u2014 83 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":"presto-jdbc/src/main/java/com/facebook/presto/jdbc/PrestoPreparedStatement.java"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"bad8dfb290c8870ffffa7f3cc07c73e12a7957cbe22f407b30598a894622f70c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: metadata/MetadataManagerStats.java: FileTooLong \u2014 1375 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: MetadataManagerStats (23-2419). 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":"presto-main-base/src/main/java/com/facebook/presto/metadata/MetadataManagerStats.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bafd3d3eea89ee3a8b74837e08f98a73ba59be9a5b7bee9aa1a9369e5713670"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BytecodeExpressions: 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":"presto-bytecode/src/main/java/com/facebook/presto/bytecode/expression/BytecodeExpressions.java"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"b56ce8000285d026253a10dfc6c75b8d7502e9d4bf74dc969a38484752a3dd6e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DefaultTraversalVisitor: 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":"presto-parser/src/main/java/com/facebook/presto/sql/tree/DefaultTraversalVisitor.java"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"5709859b42e265ab00acbe5c8f61cd0fdd27f30a6cc2f138e0c07c6e80264fda"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: thrift/ThriftHiveMetastore.java: FileTooLong \u2014 1340 significant lines (blank, comment-only and punctuation-only lines excluded), about 88% of them inside a single declaration: ThriftHiveMetastore (173-1926). 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":"presto-hive-metastore/src/main/java/com/facebook/presto/hive/metastore/thrift/ThriftHiveMetastore.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ba631910e8a22befa39fed8d3824999f18754743d9226c5d4fc2f591d0315e5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: optimizations/AddExchanges.java: FileTooLong \u2014 1323 significant lines (blank, comment-only and punctuation-only lines excluded), about 88% of them inside a single declaration: AddExchanges (183-1996). 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/AddExchanges.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"afc8c15be7e53df1ec5023808bd92431b27bed3a5179c73ec4c7cdb248b461c3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: metadata/MetadataManager.java: FileTooLong \u2014 1316 significant lines (blank, comment-only and punctuation-only lines excluded), about 90% of them inside a single declaration: MetadataManager (153-1971). 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":"presto-main-base/src/main/java/com/facebook/presto/metadata/MetadataManager.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ceab0bb57484c35604ae3918d445f78ea06bfb6484aa39315f23fb9920c3268"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: scalar/MathFunctions.java: FileTooLong \u2014 1301 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: MathFunctions (80-1933). 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":"presto-main-base/src/main/java/com/facebook/presto/operator/scalar/MathFunctions.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e089d441760f56667b147d72b8d2f02866ce08e178796e89765d2cf435adcfd0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: planner/QueryPlanner.java: FileTooLong \u2014 1293 significant lines (blank, comment-only and punctuation-only lines excluded), about 87% of them inside a single declaration: QueryPlanner (185-2107). 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/QueryPlanner.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"83f93f70350cf7cd7ad58aa50665789ff3d5ff249b858a0eac55decdc07801e4"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CopyOnFirstWriteConfiguration: TooManyMethods \u2014 77 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":"presto-hive/src/main/java/com/facebook/presto/hive/CopyOnFirstWriteConfiguration.java"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"3908b024321dbc19bffc77b25d61799a7b8f293b2feaacc87f7956865f177f35"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: HiveUtil: TooManyMethods \u2014 77 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":"presto-hive/src/main/java/com/facebook/presto/hive/HiveUtil.java"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"e17797bddcf2ac52a8a5010a3bdec0af6319f60e654460b07f67495fdd417d57"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PrestoSparkConfig: TooManyMethods \u2014 77 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":"presto-spark-base/src/main/java/com/facebook/presto/spark/PrestoSparkConfig.java"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"373b88f81d7429d6abaac6426177eda9cd29df902768e26bb4549bb110334efe"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: metadata/BuiltInTypeAndFunctionNamespaceManager.java: FileTooLong \u2014 1268 significant lines (blank, comment-only and punctuation-only lines excluded), about 60% of them inside a single declaration: BuiltInTypeAndFunctionNamespaceManager (525-1552). 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":"presto-main-base/src/main/java/com/facebook/presto/metadata/BuiltInTypeAndFunctionNamespaceManager.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb20a46f42c9a07ef52d1a7394ec9602065d155d3ed3353fd1caeb868c811d0e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: QueryStats: TooManyMethods \u2014 75 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":"presto-main-base/src/main/java/com/facebook/presto/execution/QueryStats.java"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"61a139beea076a9dc5750f7f0d0f84882d9b2b9a65c082eef8098ab0a1526f8e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: FunctionAndTypeManager: TooManyMethods \u2014 75 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":"presto-main-base/src/main/java/com/facebook/presto/metadata/FunctionAndTypeManager.java"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c5b964874ad8800c81d35f672624d9317d3fc259186a3c94694aada4d0a9128"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Rewriter: 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/UnaliasSymbolReferences.java"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"88868a8bc7a3fab801fde73a9c67591daf873b3254bc10d47fae62459703df47"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: HiveMetastoreCacheStats: TooManyMethods \u2014 73 methods. Most of these members implement metastore.MetastoreCacheStats (72 of 73 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":"presto-hive-metastore/src/main/java/com/facebook/presto/hive/metastore/HiveMetastoreCacheStats.java"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"5450e1ea3d577e00dfa55efb2f2707e88091ac0d4506303b30f0fffbc96cf7ae"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: NoopMetastoreCacheStats: TooManyMethods \u2014 73 methods. Most of these members implement metastore.MetastoreCacheStats (72 of 73 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":"presto-hive-metastore/src/main/java/com/facebook/presto/hive/metastore/NoopMetastoreCacheStats.java"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"50865268528fa6cdae36cb618ddcc24a1ada49ab5279654142bafe485738f02f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Visitor: TooManyMethods \u2014 73 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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/ExpressionAnalyzer.java"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bf96991c804ec70b36673699279d40b0f87a1521dfaf2bce67e53157e806e70"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Rewriter: TooManyMethods \u2014 73 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/AddExchanges.java"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"69536c22fece6fc336a6353d603a5f37dd0d2d2edc112ab25f337acb72e66446"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: planPrinter/PlanPrinter.java: FileTooLong \u2014 1204 significant lines (blank, comment-only and punctuation-only lines excluded), about 87% of them inside a single declaration: PlanPrinter (173-1770). 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/planPrinter/PlanPrinter.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c76df581f4b27992b38b4134a77501826fb528143ec8da5bc8b16c400437e4f8"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Visitor: 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/planPrinter/PlanPrinter.java"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"dda442836983d725e7432ff3df66780b6cecd677e7677c039bbe2b339765df38"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: optimizations/PredicatePushDown.java: FileTooLong \u2014 1200 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: PredicatePushDown (126-1838). 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PredicatePushDown.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eff44755253c3c477d6f3eb6fe27a538c6869c0d49d28ce98c03fa81f0fd9183"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: iceberg/IcebergUtil.java: FileTooLong \u2014 1190 significant lines (blank, comment-only and punctuation-only lines excluded), about 82% of them inside a single declaration: IcebergUtil (238-1919). 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":"presto-iceberg/src/main/java/com/facebook/presto/iceberg/IcebergUtil.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"137198147722712d553c987cb679d7484d2583981cb49d743e6e10be4c593ff7"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ThriftHiveMetastore: TooManyMethods \u2014 70 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":"presto-hive-metastore/src/main/java/com/facebook/presto/hive/metastore/thrift/ThriftHiveMetastore.java"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"67efe1072460faab388b928648c256dfc0729b16d6f6247954a418da24f88ce2"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DictionaryBlock: 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":"presto-common/src/main/java/com/facebook/presto/common/block/DictionaryBlock.java"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"f24db8464a560c76d2274f21d9fa27ffeaad5acd3a9fa0c0e45e2a4ad9a6bd49"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AccessControlManager: TooManyMethods \u2014 69 methods. Most of these members implement security.AccessControl (53 of 68 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":"presto-main-base/src/main/java/com/facebook/presto/security/AccessControlManager.java"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"636ace3dd0f3fe7590eb0e4c2f4af05c72db7df5aa390a3e91477df45be256e7"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CachingFileSystem: 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":"presto-cache/src/main/java/com/facebook/presto/cache/CachingFileSystem.java"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"30602dd1ef68e57253c9626f6cffd30f0fbe3a5cba03bef1f74b7c758701a397"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: jdbc/PrestoResultSet.java: FileTooLong \u2014 1121 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: PrestoResultSet (74-1874). 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":"presto-jdbc/src/main/java/com/facebook/presto/jdbc/PrestoResultSet.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"397220b039d067f95c4f70bfef489a52e0e2ef67bd422f815a167e79c6d1f981"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: planner/PlanOptimizers.java: FileTooLong \u2014 1119 significant lines (blank, comment-only and punctuation-only lines excluded), about 79% of them inside a single declaration: PlanOptimizers (250-1295). 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/PlanOptimizers.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"03692068721167476ec11a5c46da9a43fdf25f5ffcc8b7f44488f10251138711"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TestingPrestoServer: TooManyMethods \u2014 67 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":"presto-main/src/main/java/com/facebook/presto/server/testing/TestingPrestoServer.java"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"8adf43ed88d672d215043188ceb88eb5e0587c6c40bc5cd3ad661d1235890b80"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CassandraClientConfig: 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":"presto-cassandra/src/main/java/com/facebook/presto/cassandra/CassandraClientConfig.java"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"a333933d08686dff2a401b942e815941db4758435132b35d4aab963507c2fbcb"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: InternalResourceGroup: 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":"presto-main-base/src/main/java/com/facebook/presto/execution/resourceGroups/InternalResourceGroup.java"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e5ecb8135ce91c65d2aa5c6f6039d03361271a4b11bdf2bde9a5a060c616eb7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: analyzer/Analysis.java: FileTooLong \u2014 1071 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: Analysis (117-2164). 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":"presto-analyzer/src/main/java/com/facebook/presto/sql/analyzer/Analysis.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"90b9745b579beb920f4d50e0cab3516dbd81658edffebb7ed2ad2cd6bc13ce53"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Formatter: 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":"presto-parser/src/main/java/com/facebook/presto/sql/ExpressionFormatter.java"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"71ed24c8e8d409b76eceefc112593b0ccda73517c34d0e7ae83edfb2745a97b0"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: InMemoryCachingHiveMetastore: 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":"presto-hive-metastore/src/main/java/com/facebook/presto/hive/metastore/InMemoryCachingHiveMetastore.java"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"28e1930cca241f3f6dcb806085828b1ff91c390ce98c4c36f0ca0cf04d9592b8"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: GlueHiveMetastore: TooManyMethods \u2014 63 methods. Most of these members implement metastore.ExtendedHiveMetastore (44 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":"presto-hive-metastore/src/main/java/com/facebook/presto/hive/metastore/glue/GlueHiveMetastore.java"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"67ceee4bd520d2c137055eb75ab37443f8f13d6d019d2530d61353c0e4b3c3d4"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TaskExecutor: 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":"presto-main-base/src/main/java/com/facebook/presto/execution/executor/TaskExecutor.java"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfc0fc12573b42b552ed1a23c1e2f2bd8e2acf8030aa24d1d3243eabb1e96c86"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: VerifierConfig: 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":"presto-verifier/src/main/java/com/facebook/presto/verifier/framework/VerifierConfig.java"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"5440ec229365334f8b84b75df4e8139b27c191752806a10ec39612d4e3ec25d5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: hive/HiveClientConfig.java: FileTooLong \u2014 1044 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: HiveClientConfig (60-1848). 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":"presto-hive/src/main/java/com/facebook/presto/hive/HiveClientConfig.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8472d24809c6ff85035ef239664e722e4c3b5b329c109cc632b5cfcac788d9d6"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LocalQueryRunner: TooManyMethods \u2014 62 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":"presto-main-base/src/main/java/com/facebook/presto/testing/LocalQueryRunner.java"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"4734f6adf59cfeaa94f0c4353ccedfb9f366d72a2df4dd610432b1327b468f40"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: scalar/DateTimeFunctions.java: FileTooLong \u2014 1022 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: DateTimeFunctions (71-1552). 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":"presto-main-base/src/main/java/com/facebook/presto/operator/scalar/DateTimeFunctions.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"83cb108b2ccd51ddbc65c6b05c69ab8b0fb50a190777855982d3faa7ffbc2a1e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: HiveS3Config: 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":"presto-hive/src/main/java/com/facebook/presto/hive/s3/HiveS3Config.java"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"678fc9ba489382b2bbd810218b46a95a44a10571506888464ddd414c9ec92701"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TaskStats: 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":"presto-main-base/src/main/java/com/facebook/presto/operator/TaskStats.java"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"175ca65770950a8f7b1504e4055d1aaff6485c777175465ef602d90b42ccc0b8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: util/JsonUtil.java: FileTooLong \u2014 1009 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: JsonUtil (105-1505). 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":"presto-main-base/src/main/java/com/facebook/presto/util/JsonUtil.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d21f5393f598f19105269dac5eff83b86baa53ca3fe85ff90088ae0daf521703"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: glue/GlueHiveMetastore.java: FileTooLong \u2014 1008 significant lines (blank, comment-only and punctuation-only lines excluded), about 84% of them inside a single declaration: GlueHiveMetastore (182-1504). 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":"presto-hive-metastore/src/main/java/com/facebook/presto/hive/metastore/glue/GlueHiveMetastore.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab894fe9e5e894edfe7cabd2e969fd0d5e1bf59e94dee039312e3220c65c117e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: task/PrestoSparkTaskExecutorFactory.java: FileTooLong \u2014 1002 significant lines (blank, comment-only and punctuation-only lines excluded), about 83% of them inside a single declaration: PrestoSparkTaskExecutorFactory (184-1313). 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":"presto-spark-base/src/main/java/com/facebook/presto/spark/execution/task/PrestoSparkTaskExecutorFactory.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a27abc0e16afeedf390696a46253adc3094c3a7fedad7c4e162dd673fd0221ea"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PrestoStatement: TooManyMethods \u2014 60 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":"presto-jdbc/src/main/java/com/facebook/presto/jdbc/PrestoStatement.java"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e9f531712346f31c7f5f6456c9952d76f30c4d09c37d3419e8144894c68b2a7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: geospatial/GeoFunctions.java: FileTooLong \u2014 999 significant lines (blank, comment-only and punctuation-only lines excluded), about 89% of them inside a single declaration: GeoFunctions (123-1483). 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":"presto-main-base/src/main/java/com/facebook/presto/geospatial/GeoFunctions.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fc4883ed9650f080370ca04e5602916a81856932c7f7f5a6fe2641fe9816ce3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: remotetask/HttpRemoteTaskWithEventLoop.java: FileTooLong \u2014 987 significant lines (blank, comment-only and punctuation-only lines excluded), about 88% of them inside a single declaration: HttpRemoteTaskWithEventLoop (157-1466). 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":"presto-main/src/main/java/com/facebook/presto/server/remotetask/HttpRemoteTaskWithEventLoop.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f63367463c5101d5f3c9d33ecfde3fc3540cd93341e4b4a2e2b5a2f4285f832"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Visitor: 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/sanity/ValidateDependenciesChecker.java"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"4172748ad33f337bec35d13be9021669370c054a1e71e13edb3b0a5b1e73a66e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: execution/QueryStateMachine.java: FileTooLong \u2014 979 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: QueryStateMachine (110-1502). 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":"presto-main-base/src/main/java/com/facebook/presto/execution/QueryStateMachine.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"669e636c267c6f54043e9d6f3f26c32d4f94f9873c0c0503a361794f82000de5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: planner/RelationPlanner.java: FileTooLong \u2014 975 significant lines (blank, comment-only and punctuation-only lines excluded), about 86% of them inside a single declaration: RelationPlanner (152-1452). 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/RelationPlanner.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eaaa92c2435f4a156a61251add3ff1b6decec6c48dafe1ce573b64e31161354"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: testing/LocalQueryRunner.java: FileTooLong \u2014 973 significant lines (blank, comment-only and punctuation-only lines excluded), about 70% of them inside a single declaration: LocalQueryRunner (313-1279). 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":"presto-main-base/src/main/java/com/facebook/presto/testing/LocalQueryRunner.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef7a82ef420199f6075d0fd99e2c6cc4e4b030fd9743c01565b9a397f8912771"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: predicate/TupleDomainFilter.java: FileTooLong \u2014 969 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: TupleDomainFilter (39-1777). 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":"presto-common/src/main/java/com/facebook/presto/common/predicate/TupleDomainFilter.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab7e457452322185dec63c3da0b6b01a2225bd0762afa261919a97b40069a2d9"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MetastoreUtil: 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":"presto-hive-metastore/src/main/java/com/facebook/presto/hive/metastore/MetastoreUtil.java"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"332071ce7292879aa50ffa4b1b108c9f38c8a78672924e8332bcf734d683c94e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PlannerUtils: 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/PlannerUtils.java"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8ec28c70833ce23c2f0b219762b813a42358a40b755ff8f4e57cdb4d82d09ab"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: FunctionResolution: TooManyMethods \u2014 58 methods. Most of these members implement function.StandardFunctionResolution (40 of 55 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":"presto-main-base/src/main/java/com/facebook/presto/sql/relational/FunctionResolution.java"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4e97d717b0973c47bb8431854f4f4207e004da33885a8866e74a656b3168630"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: type/UnscaledDecimal128Arithmetic.java: FileTooLong \u2014 960 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: UnscaledDecimal128Arithmetic (44-1746). 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":"presto-common/src/main/java/com/facebook/presto/common/type/UnscaledDecimal128Arithmetic.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"686fb2b8a9ced54db21003a81f1fb9dec6ba6a083e70eabde56ed98a3ac70a08"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: iceberg/IcebergPageSourceProvider.java: FileTooLong \u2014 952 significant lines (blank, comment-only and punctuation-only lines excluded), about 80% of them inside a single declaration: IcebergPageSourceProvider (204-1193). 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":"presto-iceberg/src/main/java/com/facebook/presto/iceberg/IcebergPageSourceProvider.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"91d47183b2e0b5b745681386a2332e8897a440ca23a03180fbf41dacad554f66"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SqlStandardAccessControl: TooManyMethods \u2014 57 methods. Most of these members implement connector.ConnectorAccessControl (47 of 57 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":"presto-hive/src/main/java/com/facebook/presto/hive/security/SqlStandardAccessControl.java"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"93e69bc7d51ca398af415f3bfb9a915a936d973fd2650df2c11b20ef07be0546"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: StringFunctions: 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":"presto-main-base/src/main/java/com/facebook/presto/operator/scalar/StringFunctions.java"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"600d7ce383f49e6a429645a583608e5a106d5a045e1489105bbb9c40af475232"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Visitor: 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":"presto-main-base/src/main/java/com/facebook/presto/sql/relational/SqlToRowExpressionTranslator.java"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d6070d75996cc84e79f5964ed2bb3a52b471838fdd65a53f48a0cd19f4cc05c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ReactorNettyHttpClientConfig: 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":"presto-main/src/main/java/com/facebook/presto/server/remotetask/ReactorNettyHttpClientConfig.java"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"40ec5f837f313e2e4b7479758322fe8a25011eeb47e134cf78c3837062ea7aa9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: s3/PrestoS3FileSystem.java: FileTooLong \u2014 945 significant lines (blank, comment-only and punctuation-only lines excluded), about 85% of them inside a single declaration: PrestoS3FileSystem (164-1440). 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":"presto-hive/src/main/java/com/facebook/presto/hive/s3/PrestoS3FileSystem.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4de79d757e67f44aeea09640d7a2f58e4cf49a1d43bdb32e8796d11532dbf04"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: file/FileHiveMetastore.java: FileTooLong \u2014 940 significant lines (blank, comment-only and punctuation-only lines excluded), about 89% of them inside a single declaration: FileHiveMetastore (126-1510). 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":"presto-hive-metastore/src/main/java/com/facebook/presto/hive/metastore/file/FileHiveMetastore.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"798ef3d1c823bd5447ff15ddc8f2abb16519cb12029553e4804d6d168bce5719"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: planner/CanonicalPlanGenerator.java: FileTooLong \u2014 935 significant lines (blank, comment-only and punctuation-only lines excluded), about 90% of them inside a single declaration: CanonicalPlanGenerator (116-1386). 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/CanonicalPlanGenerator.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6715d4bbfd8278238d03d8ca30774f6631ea3a015f0d5b501c075595cb33baf"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ClickHouseClient: 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":"presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/ClickHouseClient.java"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"0356e7d8e8b2c343d11f1d607154da3cc0c434e12f17c1e27adab0f24de2bfe8"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: OperatorContext: 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":"presto-main-base/src/main/java/com/facebook/presto/operator/OperatorContext.java"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0a80193cb24a3c96ae80ab73b2b2348b3dd4b5e1abe102d08e91c6630006264"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: planner/LogicalPlanner.java: FileTooLong \u2014 921 significant lines (blank, comment-only and punctuation-only lines excluded), about 84% of them inside a single declaration: LogicalPlanner (161-1231). 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/LogicalPlanner.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e1e9bbc81170604c7049cc9ff62a4b1c9ada2485e907877b269d20470464626"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RunLengthEncodedBlock: TooManyMethods \u2014 55 methods. Most of these members implement block.Block (35 of 50 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":"presto-common/src/main/java/com/facebook/presto/common/block/RunLengthEncodedBlock.java"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca6798a2159c90071fd2b36e46e95a0ecfd880851dfd7b632ca550988fe513dd"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ThriftHiveMetastoreClient: TooManyMethods \u2014 55 methods. Most of these members implement thrift.HiveMetastoreClient (51 of 54 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":"presto-hive-metastore/src/main/java/com/facebook/presto/hive/metastore/thrift/ThriftHiveMetastoreClient.java"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"65d32f744086115c62d2c82c957a3797e73841d9e9f0a2bf6f2710f17f197ce1"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: OperatorStats: 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":"presto-main-base/src/main/java/com/facebook/presto/operator/OperatorStats.java"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bbdebc7f6e037b02f13f201c88fb3cb7777fb04ccc8ec4e7a6aaa1276fb3ee6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: metadata/StatsRecordingMetadataManager.java: FileTooLong \u2014 904 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: StatsRecordingMetadataManager (67-1520). 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":"presto-main-base/src/main/java/com/facebook/presto/metadata/StatsRecordingMetadataManager.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7967812b6635d729c858499b8a68a1e2f446b70cbfde2a1591de73e6e4752c4"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DefaultTreeRewriter: 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":"presto-verifier/src/main/java/com/facebook/presto/verifier/rewrite/DefaultTreeRewriter.java"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8a89df8f9b930354b5cabb2e022b89cc9a6bd3894f41336781687c0b382e700"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: jdbc/PrestoDatabaseMetaData.java: FileTooLong \u2014 888 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: PrestoDatabaseMetaData (33-1521). 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":"presto-jdbc/src/main/java/com/facebook/presto/jdbc/PrestoDatabaseMetaData.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7992668ae9271d9289035f4e885179f2ac552a39631cb3d74a1dacf68a6c36ff"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: FileBasedAccessControl: TooManyMethods \u2014 53 methods. Most of these members implement connector.ConnectorAccessControl (47 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":"presto-plugin-toolkit/src/main/java/com/facebook/presto/plugin/base/security/FileBasedAccessControl.java"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"955f6418e32e33acb7abd2a0cd5fa2d335dd20083939da04ea53056ba9006540"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: hive/HiveUtil.java: FileTooLong \u2014 874 significant lines (blank, comment-only and punctuation-only lines excluded), about 79% of them inside a single declaration: HiveUtil (198-1411). 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":"presto-hive/src/main/java/com/facebook/presto/hive/HiveUtil.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc0ebe56582c13b78c454646a42f10c6c4729f0132f9163dc5497936ceca8dee"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: hive/HiveSessionProperties.java: FileTooLong \u2014 873 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: HiveSessionProperties (44-1189). 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":"presto-hive/src/main/java/com/facebook/presto/hive/HiveSessionProperties.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3872b18fde990c9dd534ff1d4cfdaf1fd0d13c13b33550312468372193c0d3eb"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RecordingHiveMetastore: TooManyMethods \u2014 52 methods. Most of these members implement metastore.ExtendedHiveMetastore (42 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":"presto-hive-metastore/src/main/java/com/facebook/presto/hive/metastore/RecordingHiveMetastore.java"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a526bb5c4e8bd086b75c6219ba2e57ae42ba540f67549639e1f2a4fe3691066"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: NodePrinter: 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":"presto-main-base/src/main/java/com/facebook/presto/util/GraphvizPrinter.java"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd1b09470d0bd0c928604debd06585ee900dbad5e8c62324d2808ee125c0d9d9"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: HttpRemoteTaskWithEventLoop: 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":"presto-main/src/main/java/com/facebook/presto/server/remotetask/HttpRemoteTaskWithEventLoop.java"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"5417075290a703b910aa61e8fb117eaade5c5cf1443cd0da9ca68703e5434b3a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: planner/ExpressionInterpreter.java: FileTooLong \u2014 865 significant lines (blank, comment-only and punctuation-only lines excluded), about 83% of them inside a single declaration: ExpressionInterpreter (163-1365). 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/ExpressionInterpreter.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4720e6a70bdb82669e419718ad3cd7306c8e1862b5d302bdefd3550734127d79"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: relational/SqlToRowExpressionTranslator.java: FileTooLong \u2014 862 significant lines (blank, comment-only and punctuation-only lines excluded), about 82% of them inside a single declaration: SqlToRowExpressionTranslator (175-1223). 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":"presto-main-base/src/main/java/com/facebook/presto/sql/relational/SqlToRowExpressionTranslator.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a07507d534b798b9034206dfd5fd0d0cfebefcdc2e983a3fbeca34ded42238dc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: stream/LongOutputStreamV2.java: FileTooLong \u2014 854 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: LongOutputStreamV2 (45-1467). 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":"presto-orc/src/main/java/com/facebook/presto/orc/stream/LongOutputStreamV2.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8bfb3c0e05d94dd9c8e63c5f54067d5138d803034c968dbaebf622c015c3c07"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: execution/QueryStats.java: FileTooLong \u2014 851 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: QueryStats (49-1230). 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":"presto-main-base/src/main/java/com/facebook/presto/execution/QueryStats.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceb7d04f67bcc6f4f4327e0b40f00200c777f45dd9776cb26e39b8140208f09c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ThriftMetastoreUtil: 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":"presto-hive-metastore/src/main/java/com/facebook/presto/hive/metastore/thrift/ThriftMetastoreUtil.java"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cc13fa165f2526ac144baab8a34ebc7d03041ca5f3d56d3366ec79194d0a16c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AllowAllAccessControl: TooManyMethods \u2014 51 methods. Most of these members implement security.AccessControl (50 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":"presto-spi/src/main/java/com/facebook/presto/spi/security/AllowAllAccessControl.java"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebe9d484d1aba49df10ee8390da2bc0c30de77b84630e85a9044855bcdc3f500"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DenyAllAccessControl: TooManyMethods \u2014 51 methods. Most of these members implement security.AccessControl (50 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":"presto-spi/src/main/java/com/facebook/presto/spi/security/DenyAllAccessControl.java"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"4707c0c4146755bcf547615780c7fca7936deb835881ce852ebb936adc46d5e5"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MetastoreClientConfig: 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":"presto-hive-metastore/src/main/java/com/facebook/presto/hive/MetastoreClientConfig.java"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"1092eb53e275b09da26410020165ad1bf109fe8ca51e09e96ca05a6e31d67eae"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: InternalCommunicationConfig: 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":"presto-internal-communication/src/main/java/com/facebook/presto/server/InternalCommunicationConfig.java"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"636d47d354480c105aa38f422bba7c0c84af59519a2386a59f9913b5d47239a3"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SqlStageExecution: 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":"presto-main-base/src/main/java/com/facebook/presto/execution/SqlStageExecution.java"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"73d7b344c9a5f7cdf6bba759efa04ed0dc15e43ec9b115ce4e336037bac7345e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Visitor: 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PropertyDerivations.java"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1baaf8930b4bc42d766ad5dbdd0a062edd74ddf31f038d0421f9be4a321fe8b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ForwardingConnectorAccessControl: TooManyMethods \u2014 50 methods. Most of these members implement connector.ConnectorAccessControl (47 of 50 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":"presto-plugin-toolkit/src/main/java/com/facebook/presto/plugin/base/security/ForwardingConnectorAccessControl.java"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fa35da5a1715fd01786793ff36d7bb743abdf0ecfbea06cfc19c75555e13a13"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: execution/AbstractPrestoSparkQueryExecution.java: FileTooLong \u2014 832 significant lines (blank, comment-only and punctuation-only lines excluded), about 81% of them inside a single declaration: AbstractPrestoSparkQueryExecution (173-1134). 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":"presto-spark-base/src/main/java/com/facebook/presto/spark/execution/AbstractPrestoSparkQueryExecution.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d79502c9c87e1fc1105515863ffac558a7692b1f5fe9a2b0679547b6b0f05589"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LazyBlock: TooManyMethods \u2014 49 methods. Most of these members implement block.Block (32 of 45 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":"presto-common/src/main/java/com/facebook/presto/common/block/LazyBlock.java"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfeba6ea14d20cfe599fba07a5d40b33efa3619450bac4f4ee1fcdf335520bae"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Session: 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":"presto-main-base/src/main/java/com/facebook/presto/Session.java"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"1256617f90a8d001c75235ffbdebb9dde525e3b6559dba3b45aa4415bd92c035"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Visitor: 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/ExpressionInterpreter.java"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"43296ad092f529dd3854f35db40d964062aff46f2cc5c5d227ae001d55e68075"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Visitor: 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/StreamPropertyDerivations.java"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"19f6b9921a1d7519253d1e4d949cb48f40f88df4abec9bbbd955e6e2f06ebc5b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MongoClientConfig: 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":"presto-mongodb/src/main/java/com/facebook/presto/mongodb/MongoClientConfig.java"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"18ab6996acdbbbf85764ac589fbcc82da68d6741bdee847bfbc4232a0031af41"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: optimizations/PushdownSubfields.java: FileTooLong \u2014 811 significant lines (blank, comment-only and punctuation-only lines excluded), about 87% of them inside a single declaration: PushdownSubfields (123-1241). 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PushdownSubfields.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"da9908fef82c9c4152d1a61471a2ebf01d8a281d25fbd81adcd3b1ce5214888b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: hive/HiveSplitManager.java: FileTooLong \u2014 808 significant lines (blank, comment-only and punctuation-only lines excluded), about 85% of them inside a single declaration: HiveSplitManager (139-1126). 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":"presto-hive/src/main/java/com/facebook/presto/hive/HiveSplitManager.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"611e8563fb8f12ba8b9b5f1b5011cee6c3013d358f815145e1cdb36703eee94f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: optimizations/PruneUnreferencedOutputs.java: FileTooLong \u2014 808 significant lines (blank, comment-only and punctuation-only lines excluded), about 89% of them inside a single declaration: PruneUnreferencedOutputs (116-1142). 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PruneUnreferencedOutputs.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"59f103b8eda5bedf7a6e03d90e8a9a3844cb5dbef1adf48a2cb47a5b685f83be"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: gen/AccumulatorCompiler.java: FileTooLong \u2014 803 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: AccumulatorCompiler (82-1090). 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":"presto-hive-function-namespace/src/main/java/com/facebook/presto/hive/functions/gen/AccumulatorCompiler.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"16ea78ddd94b667cb6d68a17cd32cc7b241f573167fb7770d6fe14ea9a4d9463"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: aggregation/AccumulatorCompiler.java: FileTooLong \u2014 803 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: AccumulatorCompiler (84-1091). 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":"presto-main-base/src/main/java/com/facebook/presto/operator/aggregation/AccumulatorCompiler.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9864a5710869380aee0e572509a66459a2ef5c929d23224db7bcb7a28d2bf6f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: aggregation/GenericAccumulatorFactory.java: FileTooLong \u2014 801 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: GenericAccumulatorFactory (88-1272). 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":"presto-main-base/src/main/java/com/facebook/presto/operator/aggregation/GenericAccumulatorFactory.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ae5ac77aeda064882c98779e1fbe2b0bdd4dc42d7b93ed0a5bdca419bc863b4"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BaseJdbcClient: 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":"presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/BaseJdbcClient.java"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb1eea76f66d59f8fe36465cbd0d25d39019adcec205c7ded970f4a06ab22e00"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: InvokeInstruction: 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":"presto-bytecode/src/main/java/com/facebook/presto/bytecode/instruction/InvokeInstruction.java"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bdb2150010662ec754076c25af545aa4cbb7c009b2f3c8a9b69d3f196864627"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BridgingHiveMetastore: TooManyMethods \u2014 48 methods. Most of these members implement metastore.ExtendedHiveMetastore (44 of 47 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":"presto-hive-metastore/src/main/java/com/facebook/presto/hive/metastore/thrift/BridgingHiveMetastore.java"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"af9322d089069fe917d436d82eb5b560f6def9f6404087b774d33b3a2acc3b4e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LegacyAccessControl: TooManyMethods \u2014 48 methods. Most of these members implement connector.ConnectorAccessControl (47 of 48 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":"presto-hive/src/main/java/com/facebook/presto/hive/security/LegacyAccessControl.java"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"250cb324edf8ba00087f6a85cd76582880b1fb3a4eb56047f15c6dd5b56826d6"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: QueryInfo: 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":"presto-main-base/src/main/java/com/facebook/presto/execution/QueryInfo.java"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"49977be073ebb4d9b1c835d7d77e8beac89e7b10e94d186416bd4b4cc11958d1"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: StageExecutionStats: 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":"presto-main-base/src/main/java/com/facebook/presto/execution/StageExecutionStats.java"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"c719bc018b09865fb3805b5a332f389aef9e1b4ee0eb7d22aaedda63a782095b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: FileBasedSystemAccessControl: TooManyMethods \u2014 48 methods. Most of these members implement security.SystemAccessControl (45 of 48 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":"presto-main-base/src/main/java/com/facebook/presto/security/FileBasedSystemAccessControl.java"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"d82e0e15763f89589ebe2bdd535601ee1c000f650abc8168379e096976a4c6d9"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: StatsRecordingSystemAccessControl: TooManyMethods \u2014 48 methods. Most of these members implement security.SystemAccessControl (45 of 48 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":"presto-main-base/src/main/java/com/facebook/presto/security/StatsRecordingSystemAccessControl.java"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ef5ed421ef4f8553e16f04c452538210ed0ecbd0ee9a2ea4f2a96cf3bd01f87"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: QueryPlanner: 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/QueryPlanner.java"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e53f7259fc1371b7e39eaf60c0c67af9499d046cb082ce1f6c352118e65d8f8"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: OrcOutputBuffer: 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":"presto-orc/src/main/java/com/facebook/presto/orc/OrcOutputBuffer.java"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"09736fd33d5c66814f998dc809597d2a40fb2aefe09cd6818863e121e5eb8d99"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AllowAllAccessControl: TooManyMethods \u2014 48 methods. Most of these members implement connector.ConnectorAccessControl (47 of 48 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":"presto-plugin-toolkit/src/main/java/com/facebook/presto/plugin/base/security/AllowAllAccessControl.java"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"d775baf265f1ccb815509a7b51fbbcac8e8b949ddd3f16a4782b9ad76a0474bb"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ForwardingSystemAccessControl: TooManyMethods \u2014 48 methods. Most of these members implement security.SystemAccessControl (45 of 48 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":"presto-plugin-toolkit/src/main/java/com/facebook/presto/plugin/base/security/ForwardingSystemAccessControl.java"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"b216055af783fb664f314b4cbddd26def7647c0a2357b714b1f62f215865b52f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: GroupByIdBlock: TooManyMethods \u2014 48 methods. Most of these members implement block.Block (31 of 44 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":"presto-spi/src/main/java/com/facebook/presto/spi/function/aggregation/GroupByIdBlock.java"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"75617e05c0af206c80a56e06868d13ccb9c3ccfc870fb2f566805701eb52e3bd"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: security/AccessControlManager.java: FileTooLong \u2014 798 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: AccessControlManager (73-1389). 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":"presto-main-base/src/main/java/com/facebook/presto/security/AccessControlManager.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1efda381eeb756e583e8c5c836aa15cb48104f1d5cdef21958c67c8e59c87c3f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: security/StatsRecordingSystemAccessControl.java: FileTooLong \u2014 790 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: StatsRecordingSystemAccessControl (44-1217). 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":"presto-main-base/src/main/java/com/facebook/presto/security/StatsRecordingSystemAccessControl.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f58b04cc3d834e21890a0f0886c2a383da3446f1047fbd84c9a050e79bcacac6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: optimizations/AddLocalExchanges.java: FileTooLong \u2014 786 significant lines (blank, comment-only and punctuation-only lines excluded), about 86% of them inside a single declaration: AddLocalExchanges (130-1236). 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/AddLocalExchanges.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a014867daeb4de6914fe5e35f8258d01fa459fa3fb33463ddb4aa64296577085"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: InitializingSystemAccessControl: TooManyMethods \u2014 47 methods. Most of these members implement security.SystemAccessControl (45 of 47 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":"presto-main-base/src/main/java/com/facebook/presto/security/AccessControlManager.java"},"region":{"startLine":1111}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d4f6646c84ab13150eaa74c35b1ce7a0c1eb87e7c04d2317210d2e90f8fe34b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Rewriter: 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PruneUnreferencedOutputs.java"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"060cdddd676cb4b3cefc330cad31bb5dbe682590b72c2ef6c472bf85b7b5d804"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Patterns: 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/plan/Patterns.java"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"1beb53b0d568672c48d7ab2cea57244cfff4cbb2e9b26a9a9a734e264d7a4489"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: server/ServerMainModule.java: FileTooLong \u2014 779 significant lines (blank, comment-only and punctuation-only lines excluded), about 61% of them inside a single declaration: ServerMainModule (323-1022). 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":"presto-main/src/main/java/com/facebook/presto/server/ServerMainModule.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4267c534dbba374b7ad6fde0a15da439bc06376f29df260d3e4e9be4c7474269"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: metastore/InMemoryCachingHiveMetastore.java: FileTooLong \u2014 776 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: InMemoryCachingHiveMetastore (91-1136). 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":"presto-hive-metastore/src/main/java/com/facebook/presto/hive/metastore/InMemoryCachingHiveMetastore.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6274a58fca8d33f9c4863622cccd7c6821c1b2a767123ae5dcf783519e06c5d8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: resourceGroups/InternalResourceGroup.java: FileTooLong \u2014 770 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: InternalResourceGroup (86-1225). 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":"presto-main-base/src/main/java/com/facebook/presto/execution/resourceGroups/InternalResourceGroup.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"03a99960db7246782e652ab3805292a718879d89ba359a85fc25b4b62ddf29ec"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: QueryStateTimer: 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":"presto-main-base/src/main/java/com/facebook/presto/execution/QueryStateTimer.java"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b71773bfe1a74229c0b40e3239633647e3594bb67130b833a59559695f0ba0d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AllowAllSystemAccessControl: TooManyMethods \u2014 46 methods. Most of these members implement security.SystemAccessControl (45 of 46 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":"presto-main-base/src/main/java/com/facebook/presto/security/AllowAllSystemAccessControl.java"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"f369ca31638cddf064e233e272b58fc782474630c43dcfa5515acc033474fc5a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Rewriter: 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PredicatePushDown.java"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"464f4c8fc6ac0016a3a6a5e119e422072466b2f319fe8d595fd7a9b7e5aa1757"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: metadata/FunctionAndTypeManager.java: FileTooLong \u2014 766 significant lines (blank, comment-only and punctuation-only lines excluded), about 84% of them inside a single declaration: FunctionAndTypeManager (145-1271). 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":"presto-main-base/src/main/java/com/facebook/presto/metadata/FunctionAndTypeManager.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa366171c400c423de5da10a98d619654a4a3b1ecf7ca6e29026d2d43a481856"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: execution/SqlTaskExecution.java: FileTooLong \u2014 753 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: SqlTaskExecution (82-1399). 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":"presto-main-base/src/main/java/com/facebook/presto/execution/SqlTaskExecution.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8e00dfe7656e5cde033a4444f412cadbd46cb61f0d7640f234da55ed62a254d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DumpBytecodeVisitor: 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":"presto-bytecode/src/main/java/com/facebook/presto/bytecode/DumpBytecodeVisitor.java"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4a6bc5033ef75a4ac224ffb424dc1045d271fe16d918aaf00e6b80535434ca7"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ThriftHiveMetastoreStats: 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":"presto-hive-metastore/src/main/java/com/facebook/presto/hive/metastore/thrift/ThriftHiveMetastoreStats.java"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"2580210c58b6ff1756bf2b8928362d8062dec7de821ff4f3c009ad0cf452164b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PrestoS3FileSystem: 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":"presto-hive/src/main/java/com/facebook/presto/hive/s3/PrestoS3FileSystem.java"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f35a2f136e10b3e96f9a66486cbdcfcf10f97f74ec6b8ec713d9998885cb68a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PrestoS3FileSystemStats: 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":"presto-hive/src/main/java/com/facebook/presto/hive/s3/PrestoS3FileSystemStats.java"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"6706e28bfd595ef808b5dec58136f7c79a7c5841369776f0031ee85610498031"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: FunctionsConfig: 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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/FunctionsConfig.java"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"026a86369eeee3504e248f601daeb2c9f9cb4d7a80340cc7b02abd407b4f793e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CanonicalPlanGenerator: 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/CanonicalPlanGenerator.java"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"34831e221136109179a0ff34495b912d4583b3eae1520358963d04c7bb0239f1"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Rewriter: 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/AddLocalExchanges.java"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"c341bd4b1c7a5d1d7e124683b65736d6ce70c7b30add5fb6c31a55878bb8db60"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DecimalCasts: 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":"presto-main-base/src/main/java/com/facebook/presto/type/DecimalCasts.java"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"a93b3e90468c9f2a6971a1995580664e4f5f3c4805bf0c615c473cd199c79336"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: hive/HivePageSourceProvider.java: FileTooLong \u2014 746 significant lines (blank, comment-only and punctuation-only lines excluded), about 90% of them inside a single declaration: HivePageSourceProvider (95-968). 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":"presto-hive/src/main/java/com/facebook/presto/hive/HivePageSourceProvider.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a343024c715adc3b1b4f0f794f184e44232095d93e8661c359eb3790292f3367"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: metastore/MetastoreUtil.java: FileTooLong \u2014 744 significant lines (blank, comment-only and punctuation-only lines excluded), about 81% of them inside a single declaration: MetastoreUtil (161-1159). 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":"presto-hive-metastore/src/main/java/com/facebook/presto/hive/metastore/MetastoreUtil.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"01807e851dce0d587334dcf2334f922abc241bf5f78ecb9add77c99eb6eb674e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: gen/PageFunctionCompiler.java: FileTooLong \u2014 741 significant lines (blank, comment-only and punctuation-only lines excluded), about 85% of them inside a single declaration: PageFunctionCompiler (126-1019). 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":"presto-main-base/src/main/java/com/facebook/presto/sql/gen/PageFunctionCompiler.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dd589e9d50bad6a03120fc7654f0ea7dcc050b31684e88fa82f9a9794ea2727"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: gen/JoinCompiler.java: FileTooLong \u2014 737 significant lines (blank, comment-only and punctuation-only lines excluded), about 90% of them inside a single declaration: JoinCompiler (91-1003). 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":"presto-main-base/src/main/java/com/facebook/presto/sql/gen/JoinCompiler.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c9d9fcd04830049a5402009288eae9c3c14bd69838c6b24289ea2714f395ac0"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BytecodeVisitor: 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":"presto-bytecode/src/main/java/com/facebook/presto/bytecode/BytecodeVisitor.java"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ca15b3f98a0f3edad567a66f76bbc86545b215bede2e3ee5e202c45bee52f06"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SystemTableAwareAccessControl: TooManyMethods \u2014 44 methods. Most of these members implement connector.ConnectorAccessControl (42 of 44 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":"presto-hive/src/main/java/com/facebook/presto/hive/security/SystemTableAwareAccessControl.java"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2f36ad51c041a4c35dfa6ff163a21870d6c5879ccfaacc5bdc0fbf8c62b8cec"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: InternalResourceGroupManager: 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":"presto-main-base/src/main/java/com/facebook/presto/execution/resourceGroups/InternalResourceGroupManager.java"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"729796944fb58a53fe87fbbaa56fc8c1de0128a806c4aa9f5647a8290345811d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: VarbinaryFunctions: 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":"presto-main-base/src/main/java/com/facebook/presto/operator/scalar/VarbinaryFunctions.java"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a13b6c0aac37b7390ba054cc0b00a82c526e16376214afacfee59603ea058d4"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BasicQueryStats: 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":"presto-main-base/src/main/java/com/facebook/presto/server/BasicQueryStats.java"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"153fa4d4e15023f016d99f464242b845f415ae33d915c88ebca62d96bae26741"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Visitor: 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/SplitSourceFactory.java"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"445a81cb96229c314da7f141e4b55ccbc6a529b7c7e35f35092e5757fb48c117"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RewritingVisitor: 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":"presto-parser/src/main/java/com/facebook/presto/sql/tree/ExpressionTreeRewriter.java"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"03210fa5d9f6aa0eeea5897ad6228e1583074af8702ff2f7891545f23a19c565"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: operator/OperatorStats.java: FileTooLong \u2014 731 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: OperatorStats (40-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":"presto-main-base/src/main/java/com/facebook/presto/operator/OperatorStats.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"49bd070d3a0f44f8552676fd0c70247ea71b5dd9ebd313fcfda1c9d45f6c63ca"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: optimizations/PropertyDerivations.java: FileTooLong \u2014 722 significant lines (blank, comment-only and punctuation-only lines excluded), about 86% of them inside a single declaration: PropertyDerivations (121-1131). 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PropertyDerivations.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"73ff1b7cd7e166504b0b99fe8b532083d952827b0e66277076af2397e23aff6c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: orc/OrcWriteValidation.java: FileTooLong \u2014 720 significant lines (blank, comment-only and punctuation-only lines excluded), about 88% of them inside a single declaration: OrcWriteValidation (102-1132). 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":"presto-orc/src/main/java/com/facebook/presto/orc/OrcWriteValidation.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ee5751ebec1692285b6a68cb95e8e904b4dbd2f4d87f06721c2f22e0342548b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: spark/PrestoSparkQueryExecutionFactory.java: FileTooLong \u2014 717 significant lines (blank, comment-only and punctuation-only lines excluded), about 80% of them inside a single declaration: PrestoSparkQueryExecutionFactory (163-862). 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":"presto-spark-base/src/main/java/com/facebook/presto/spark/PrestoSparkQueryExecutionFactory.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"364d6515e3056fb2bc51b7c405db115bd53515022c6b982d8cb0a3ff53e8d3b9"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: VariableWidthBlockBuilder: 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":"presto-common/src/main/java/com/facebook/presto/common/block/VariableWidthBlockBuilder.java"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"0059d0560445ce018a1f6c94c1ffcaba18c36af45e74e78f8db579fed837edd5"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ElasticsearchConfig: 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":"presto-elasticsearch/src/main/java/com/facebook/presto/elasticsearch/ElasticsearchConfig.java"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"431305a6d83195272bf4bec099b5b1ee407479c619321b44be56b12e1542506e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: HiveCommonClientConfig: 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":"presto-hive-common/src/main/java/com/facebook/presto/hive/HiveCommonClientConfig.java"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"e92e5bc203038ae8d99251e568c31b2fb7989703f1fc4e9f7eace1ba95724d4d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: IcebergRestConfig: 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":"presto-iceberg/src/main/java/com/facebook/presto/iceberg/rest/IcebergRestConfig.java"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"55e7ecc6348505778927abf413c6f59cd6a3856af774e4363b83ac6cd7eeb393"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SqlQueryExecution: 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":"presto-main-base/src/main/java/com/facebook/presto/execution/SqlQueryExecution.java"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"57fc54fd870558199b02644dcc17ddc5754e1a6f29d34c5a1027301447115b4e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TaskContext: 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":"presto-main-base/src/main/java/com/facebook/presto/operator/TaskContext.java"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"305c907107f434981bcbf8c9119c889f60444564417302eeb472fc34617a36bc"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Stats: 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":"presto-main-base/src/main/java/com/facebook/presto/security/StatsRecordingSystemAccessControl.java"},"region":{"startLine":875}}}],"partialFingerprints":{"codehealthFindingId/v1":"19272d9420df84e944f8426b26066d4e55694fe8a333deaaf1da264d391f8abf"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SymbolMapper: 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/SymbolMapper.java"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2c4ebfd229254b4816e08a7d5003a461f3c88252fe0ee2cabd8d49ef2e68ce2"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DecimalOperators: 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":"presto-main-base/src/main/java/com/facebook/presto/type/DecimalOperators.java"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"8832d8a5467ca9910826bde813d2de43e27258d48f90e0dc657eb04fa07d04e4"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Visitor: 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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/AggregationAnalyzer.java"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b869e4eaea7fd8119b8c2944b2ec68aeb08e06daad54e3042de8e616c07f28b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Rewriter: 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PushdownSubfields.java"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e6052fa2f1f749401e81bd2e20d07bd85cffc45d094e2a9d0ba1f3521609856"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ExpressionRewriter: 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":"presto-parser/src/main/java/com/facebook/presto/sql/tree/ExpressionRewriter.java"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"27b616b354b117d05b8653eefbed556111d5af9f8a7f16be380bf436fca6e64c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: sanity/ValidateDependenciesChecker.java: FileTooLong \u2014 700 significant lines (blank, comment-only and punctuation-only lines excluded), about 88% of them inside a single declaration: ValidateDependenciesChecker (103-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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/sanity/ValidateDependenciesChecker.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a72e0e643452a30f5ea6a9e3453e786d5b31e022cc5f41b9d2f6d1ddf771dca5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: optimizations/HashGenerationOptimizer.java: FileTooLong \u2014 698 significant lines (blank, comment-only and punctuation-only lines excluded), about 89% of them inside a single declaration: HashGenerationOptimizer (97-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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/HashGenerationOptimizer.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c29a064335d0ae3325684c392680b78d51bfe9a6f6a70980c8d15d52b60655b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: optimizations/UnaliasSymbolReferences.java: FileTooLong \u2014 692 significant lines (blank, comment-only and punctuation-only lines excluded), about 86% of them inside a single declaration: UnaliasSymbolReferences (125-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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/UnaliasSymbolReferences.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"12c275e4cc9b9c395fce7dd47adee74cdcca8687fdd5281235f7b003c73436a8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: event/QueryMonitor.java: FileTooLong \u2014 691 significant lines (blank, comment-only and punctuation-only lines excluded), about 87% of them inside a single declaration: QueryMonitor (107-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":"presto-main-base/src/main/java/com/facebook/presto/event/QueryMonitor.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"464a3239dda1d8c7c74aca61300cc2e3218b24b7aa13672da4f6f05f83da1af7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: orc/OrcWriter.java: FileTooLong \u2014 690 significant lines (blank, comment-only and punctuation-only lines excluded), about 87% of them inside a single declaration: OrcWriter (106-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":"presto-orc/src/main/java/com/facebook/presto/orc/OrcWriter.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b42c0f581a9b6c30f3e57557e24c063c1d174e3fed040e3ac74b10893385d2c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: rewrite/ShowQueriesRewrite.java: FileTooLong \u2014 689 significant lines (blank, comment-only and punctuation-only lines excluded), about 77% of them inside a single declaration: ShowQueriesRewrite (176-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":"presto-main-base/src/main/java/com/facebook/presto/sql/rewrite/ShowQueriesRewrite.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f215517286aab4eb10ba529217543fe0b95101d1f7f7f2d1ea6f6f53b0a6ab75"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: rule/TransformTableFunctionToTableFunctionProcessor.java: FileTooLong \u2014 686 significant lines (blank, comment-only and punctuation-only lines excluded), about 90% of them inside a single declaration: TransformTableFunctionToTableFunctionProcessor (133-1032). 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/TransformTableFunctionToTableFunctionProcessor.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e4ad80182f66e778d3d18a87219bb081add3e7b97b2afdc5cbf4a013f9d648c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: materializedview/DifferentialPlanRewriter.java: FileTooLong \u2014 686 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: DifferentialPlanRewriter (108-1124). 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/materializedview/DifferentialPlanRewriter.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"91640712d5bb75804557378089e4913a4a6b723f4848754fcf9a7f3883b27622"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LexicoderRowSerializer: TooManyMethods \u2014 41 methods. Most of these members implement serializers.AccumuloRowSerializer (36 of 41 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":"presto-accumulo/src/main/java/com/facebook/presto/accumulo/serializers/LexicoderRowSerializer.java"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"59761a0e536579eaa5d00409e1fdbf6738fd02255aabe8755d8e3e824f0da310"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DistinctType: 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":"presto-common/src/main/java/com/facebook/presto/common/type/DistinctType.java"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"c80f02fe2c4474c3ae38d391b46f0780c6da2c940e360b304ecb50a06c23d374"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: GlueHiveMetastoreConfig: 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":"presto-hive-metastore/src/main/java/com/facebook/presto/hive/metastore/glue/GlueHiveMetastoreConfig.java"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"29b0d411a2900652cc197b850f78cfe1cf231496323fab5ad4cd5318133cc83a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PrestoSparkSessionProperties: 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":"presto-spark-base/src/main/java/com/facebook/presto/spark/PrestoSparkSessionProperties.java"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"70437ab28e39667f474120fc1a9091306b8e147a97fb81665d5dc8553fad958b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: optimizations/IndexJoinOptimizer.java: FileTooLong \u2014 673 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: IndexJoinOptimizer (80-1035). 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/IndexJoinOptimizer.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c45d5155910d2589a76f939bed028ab1482fe06d4ad56b61a4deedb53b22f6d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AbstractSingleMapBlock: 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":"presto-common/src/main/java/com/facebook/presto/common/block/AbstractSingleMapBlock.java"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a090d26a37ef0c30b633ff36bce20c3172cde3fe90b37531872c03d43ae0050"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PartitionTransforms: 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":"presto-iceberg/src/main/java/com/facebook/presto/iceberg/PartitionTransforms.java"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"268bb148a4fb62213aadc34adfec89cc49f510ddf35cdc83c8e89223469c53b5"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DataDefinitionExecution: 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":"presto-main-base/src/main/java/com/facebook/presto/execution/DataDefinitionExecution.java"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b723175d93b6a33405c274e5b5354b125d4593339d1857228eb3167250e931b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DriverContext: 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":"presto-main-base/src/main/java/com/facebook/presto/operator/DriverContext.java"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bae59ba6bb1b81a71a3df368714a16122e1b5aa122c3c96050570e6d348d8cc"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: OperatorStatistics: 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":"presto-spi/src/main/java/com/facebook/presto/spi/eventlistener/OperatorStatistics.java"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2b420cf780ba3e7b7fd32aeb948c54a4a72e4caac9dccafe790655b161ecb82"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: scalar/StringFunctions.java: FileTooLong \u2014 664 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: StringFunctions (62-1065). 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":"presto-main-base/src/main/java/com/facebook/presto/operator/scalar/StringFunctions.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"888a2ecb45a052952f5b15587b9e898b66ce6de6b3760b85a669e72577f85fe2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: presto/Session.java: FileTooLong \u2014 662 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: Session (79-1023). 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":"presto-main-base/src/main/java/com/facebook/presto/Session.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4ed3d6f493fb9965d7573c403535cd6603d8ea0e763bd0aa73b010761a691a3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: execution/SqlQueryExecution.java: FileTooLong \u2014 656 significant lines (blank, comment-only and punctuation-only lines excluded), about 86% of them inside a single declaration: SqlQueryExecution (113-1037). 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":"presto-main-base/src/main/java/com/facebook/presto/execution/SqlQueryExecution.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5488c0017239ab9bb9cb348d6a4538125672b5f42f73bf0dfefe9c3287023d7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: planner/RowExpressionInterpreter.java: FileTooLong \u2014 656 significant lines (blank, comment-only and punctuation-only lines excluded), about 84% of them inside a single declaration: RowExpressionInterpreter (124-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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/RowExpressionInterpreter.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd8abaeba8358b6051cec32a4967713442c78c41653037d6eb2a300d58f307a1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: statistics/MetastoreHiveStatisticsProvider.java: FileTooLong \u2014 655 significant lines (blank, comment-only and punctuation-only lines excluded), about 88% of them inside a single declaration: MetastoreHiveStatisticsProvider (99-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":"presto-hive/src/main/java/com/facebook/presto/hive/statistics/MetastoreHiveStatisticsProvider.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5281c747d352784d33e76be5c060da217dbb46e26c8f146fc049b376a26dce1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: testing/TestingPrestoServer.java: FileTooLong \u2014 655 significant lines (blank, comment-only and punctuation-only lines excluded), about 80% of them inside a single declaration: TestingPrestoServer (149-968). 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":"presto-main/src/main/java/com/facebook/presto/server/testing/TestingPrestoServer.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fcdf20667a46a3fcefa9f8b53ed295eef51490577c1d7c69462f6d25d913a43"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: scheduler/SqlQueryScheduler.java: FileTooLong \u2014 653 significant lines (blank, comment-only and punctuation-only lines excluded), about 85% of them inside a single declaration: SqlQueryScheduler (114-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":"presto-main-base/src/main/java/com/facebook/presto/execution/scheduler/SqlQueryScheduler.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"25abf3c457092a51ea6b3fc19d36fc2f293898a418fa238423f4eccc94a50bcb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: iceberg/IcebergHiveMetadata.java: FileTooLong \u2014 651 significant lines (blank, comment-only and punctuation-only lines excluded), about 78% of them inside a single declaration: IcebergHiveMetadata (164-885). 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":"presto-iceberg/src/main/java/com/facebook/presto/iceberg/IcebergHiveMetadata.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b02f5c9c51b0896509eb74218f64527ced08275c3c911f3e7b9095d2e6832342"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AbstractSingleArrayBlock: 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":"presto-common/src/main/java/com/facebook/presto/common/block/AbstractSingleArrayBlock.java"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"6262199e3ec25b6a99936a1c3014a32f79c5bdea20114a03a66c298e1583fd2a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MapBlockBuilder: 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":"presto-common/src/main/java/com/facebook/presto/common/block/MapBlockBuilder.java"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"214474c0b06abe460f2b33c1c9724eb660efd84c64f96cdd8dd2d21c4a8d72a3"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SessionBuilder: 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":"presto-main-base/src/main/java/com/facebook/presto/Session.java"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"61f7a9b5ad211daf10440279989f52a435e35a46601eed6836c46927963bb4e8"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AccessControlCheckerExecution: 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":"presto-main-base/src/main/java/com/facebook/presto/execution/AccessControlCheckerExecution.java"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf326e77a549b4724130ca23de9011a715e98387adb3cc24d4510d3a6d20adb6"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PagesIndex: 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":"presto-main-base/src/main/java/com/facebook/presto/operator/PagesIndex.java"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec51fc73c7aef29fb541e3787ae714978bd917f1f0891905953649fdc4bed19b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SfmSketch: 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":"presto-main-base/src/main/java/com/facebook/presto/operator/aggregation/noisyaggregation/sketch/SfmSketch.java"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"f41fa605c91dcec0e2e6d3e082ee4a71951be7543d3faf3fc5bf13d09e663448"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ResourceManagerConfig: 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":"presto-main-base/src/main/java/com/facebook/presto/resourcemanager/ResourceManagerConfig.java"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1ad2aa10a3b83c8afaf4edcd37c56737cb570aa5fa37c7269cc73bd7cd602e4"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ServerConfig: 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":"presto-main-base/src/main/java/com/facebook/presto/server/ServerConfig.java"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"84df9f11e432f5c6018ba557bc412194a17eb300ec7665d1e27287742b157436"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RelationPlanner: 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/RelationPlanner.java"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fd4adf83214295642b4955de629f6eb8c29a6bc5cac4405c12af01d508bf116"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DeltaBuilder: 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/materializedview/DifferentialPlanRewriter.java"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb550d3071729e5d9f8c7fa52c5613d67f9f9bdf8ec9f3c87899636992b1cbae"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DictionaryColumnWriter: 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":"presto-orc/src/main/java/com/facebook/presto/orc/writer/DictionaryColumnWriter.java"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"57a0914d167e995f6c3e79124a56c4c11e5eec9c25cf0221d3912dc20a128644"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SegmentedSliceBlockBuilder: 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":"presto-orc/src/main/java/com/facebook/presto/orc/writer/SegmentedSliceBlockBuilder.java"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"75f69e8340b064fe23f959e3adc2f5cafb72f35bb82d5370537e175e13b141f7"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BufferedOutputStreamSliceOutput: 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":"presto-rcfile/src/main/java/com/facebook/presto/rcfile/BufferedOutputStreamSliceOutput.java"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c290291ac2b272d621116d7254fcd89ec589ad4d441bd757efeeaa5672d5101"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: hive/HiveWriteUtils.java: FileTooLong \u2014 650 significant lines (blank, comment-only and punctuation-only lines excluded), about 77% of them inside a single declaration: HiveWriteUtils (165-1061). 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":"presto-hive/src/main/java/com/facebook/presto/hive/HiveWriteUtils.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3a04bb8ffa081ee854ede36d2247478180e8890dd26127fa6fe2206f386d911"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: orc/OrcSelectiveRecordReader.java: FileTooLong \u2014 638 significant lines (blank, comment-only and punctuation-only lines excluded), about 89% of them inside a single declaration: OrcSelectiveRecordReader (91-1010). 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":"presto-orc/src/main/java/com/facebook/presto/orc/OrcSelectiveRecordReader.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"da6fee3235ce11b6f3e07949715b4573c1868d4536a63193295727c3157b3a77"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: StringRowSerializer: TooManyMethods \u2014 38 methods. Most of these members implement serializers.AccumuloRowSerializer (36 of 38 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":"presto-accumulo/src/main/java/com/facebook/presto/accumulo/serializers/StringRowSerializer.java"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"f55a3cffdf2b9648d34b239a6caccb9e106ab59a4ce36dc5347613f904144066"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AbstractSingleRowBlock: 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":"presto-common/src/main/java/com/facebook/presto/common/block/AbstractSingleRowBlock.java"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a541f2d12adfa353ecd587b303f57097c0f1f064247ff5831630306443a97eb"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Int128ArrayBlockBuilder: 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":"presto-common/src/main/java/com/facebook/presto/common/block/Int128ArrayBlockBuilder.java"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"b021a53afcb18f27d6be6357ea42a84e1aeaffea3371e22395b6c00dcac6adcd"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: QueryContext: 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":"presto-main-base/src/main/java/com/facebook/presto/memory/QueryContext.java"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bac26139cb4c88f88b402774ae1bfb545b919ae41eb6aa54eb31153976afc31"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: HandleResolver: 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":"presto-main-base/src/main/java/com/facebook/presto/metadata/HandleResolver.java"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6b73a3910db256212d0f9fbd5aef7109f7b4761d0c758bf4b89204d1e691ac9"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PipelineStats: 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":"presto-main-base/src/main/java/com/facebook/presto/operator/PipelineStats.java"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"caa617cb9bd994a2d5b32cd76039f8636e3478e33cd6264eab510be1678d3c18"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ExpressionAnalyzer: 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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/ExpressionAnalyzer.java"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"99e8d7c3067ed52f32d1552b84003e1e29d1510ece0e525651ed70fd960ceb85"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Expressions: 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":"presto-main-base/src/main/java/com/facebook/presto/sql/relational/Expressions.java"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ee45aa3abaaa89d8bca61443c50caacf524f6439e3691e05ca37316caf49e9e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TestingAccessControlManager: 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":"presto-main-base/src/main/java/com/facebook/presto/testing/TestingAccessControlManager.java"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"265089dc03c35330d6c716c21b16b27c7a4540c4b8f0d3312106526cea5c8f0e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: OrcMetadataReader: 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":"presto-orc/src/main/java/com/facebook/presto/orc/metadata/OrcMetadataReader.java"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"06ec03b75e1871fc170dc7dcb4e3ab01124370bc92b47844144d6d1d59018311"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: executor/TaskExecutor.java: FileTooLong \u2014 633 significant lines (blank, comment-only and punctuation-only lines excluded), about 89% of them inside a single declaration: TaskExecutor (87-1068). 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":"presto-main-base/src/main/java/com/facebook/presto/execution/executor/TaskExecutor.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4fc7c1bcabc03d05a46bf4b06d2c013f2b0e00cae40d59f5ff257bee5d06ef3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: operator/WindowOperator.java: FileTooLong \u2014 629 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: WindowOperator (65-947). 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":"presto-main-base/src/main/java/com/facebook/presto/operator/WindowOperator.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dca86f88527dec52be1731802a8c406449ccb8989a3807aa2a0acdbfc212ef3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: util/GraphvizPrinter.java: FileTooLong \u2014 626 significant lines (blank, comment-only and punctuation-only lines excluded), about 86% of them inside a single declaration: GraphvizPrinter (106-947). 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":"presto-main-base/src/main/java/com/facebook/presto/util/GraphvizPrinter.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"23cc45d79741713d18da6397156a86995db0de002883d64d693aba6f601316d2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: thrift/ThriftMetastoreUtil.java: FileTooLong \u2014 625 significant lines (blank, comment-only and punctuation-only lines excluded), about 81% of them inside a single declaration: ThriftMetastoreUtil (134-910). 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":"presto-hive-metastore/src/main/java/com/facebook/presto/hive/metastore/thrift/ThriftMetastoreUtil.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa4a49a17320b0a690a24f4729a070d7ffe495a6048eb0878de64f4475b75c37"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: StandardColumnMappings: 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":"presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/mapping/StandardColumnMappings.java"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"680a7225999147833c64fa93fd2675804322956ca0a1769ce1a8bfa859a394cd"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RebindSafeMBeanServer: 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":"presto-common/src/main/java/com/facebook/presto/common/util/RebindSafeMBeanServer.java"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8e65d432bcd379a4ccf5f83323109fd4e324e782da993d5dae412c6515574f0"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: OrcFileWriterConfig: 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":"presto-hive/src/main/java/com/facebook/presto/hive/OrcFileWriterConfig.java"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"f875408195f25ebeca7aaaa8e221902dcd80a08837743a7a708f485d3609f62d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MetastoreHiveStatisticsProvider: 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":"presto-hive/src/main/java/com/facebook/presto/hive/statistics/MetastoreHiveStatisticsProvider.java"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"45b2d3e9f66129d8d7c02389d79c88f639dc2bcbb49e50882528756b32ea6581"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BuiltInTypeAndFunctionNamespaceManager: 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":"presto-main-base/src/main/java/com/facebook/presto/metadata/BuiltInTypeAndFunctionNamespaceManager.java"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"a15b9a1fa73b784ff9e966a5f47be78336e5b7f2f520b7f247cc4d3038c058ab"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DiscoveryNodeManager: 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":"presto-main/src/main/java/com/facebook/presto/metadata/DiscoveryNodeManager.java"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"4093f63d9d0e8e49822ff2ab5cf001fcc6965a2dc616a16bc0c5198223f573e7"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AbstractOrcRecordReader: 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":"presto-orc/src/main/java/com/facebook/presto/orc/AbstractOrcRecordReader.java"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"91890da1acbb03a4b2d0e56ab4cc5103a2477c83f979bce6ab1819f22562a5c2"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ChunkedSliceOutput: 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":"presto-orc/src/main/java/com/facebook/presto/orc/ChunkedSliceOutput.java"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd54bd23434bf9e7a4754ade4739989e1fa9089d2de47b3cea32730d8e6aac72"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DwrfMetadataReader: 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":"presto-orc/src/main/java/com/facebook/presto/orc/metadata/DwrfMetadataReader.java"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b50ea675b58090bfc120e3c4f101da15acbc1b418628b110d5f183e6a694a1c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: QueryStatistics: 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":"presto-spi/src/main/java/com/facebook/presto/spi/eventlistener/QueryStatistics.java"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"82affc0ca71ae7b1b566378686ad0fea8341295bd6137136cbc1a7bc3f72b445"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: analyzer/MaterializedViewQueryOptimizer.java: FileTooLong \u2014 611 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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/MaterializedViewQueryOptimizer.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d328419f05d8bb8b2841bd5d16b6b0013c5986ca34240b334b120671018725d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: jdbc/PrestoPreparedStatement.java: FileTooLong \u2014 610 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: PrestoPreparedStatement (72-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":"presto-jdbc/src/main/java/com/facebook/presto/jdbc/PrestoPreparedStatement.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0beeacdd07a67da21aa3626651abeae996cb5851d298c7fa9ee824eb06e27e0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: operator/TaskStats.java: FileTooLong \u2014 610 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: TaskStats (34-866). 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":"presto-main-base/src/main/java/com/facebook/presto/operator/TaskStats.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aae35eaadfa1c3200f79f208ac9e97786e0e980c5fe316fbd173ae77a5f3191f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LongArrayBlockBuilder: 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":"presto-common/src/main/java/com/facebook/presto/common/block/LongArrayBlockBuilder.java"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"25eb256ba8dd4fe357ed11768d632ab8d69671565ab10b84264e5b3a69839cec"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Range: 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":"presto-common/src/main/java/com/facebook/presto/common/predicate/Range.java"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd6ca3d822c7c0b0253c5ee71d72ac8d7806fdfdcb85ebd58a74eeba4fc8640f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TypeSignature: 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":"presto-common/src/main/java/com/facebook/presto/common/type/TypeSignature.java"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"d79f9a8f02ba3cdf0c42470a7389069cf1d2c6404c32ce4b6f161569f09e1488"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TypeWithName: 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":"presto-common/src/main/java/com/facebook/presto/common/type/TypeWithName.java"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ed9e65f89b6ee7a8feba9c40408785ea6888fa8bc110f9494d0f3eb3f34c00e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: IcebergHiveMetadata: 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":"presto-iceberg/src/main/java/com/facebook/presto/iceberg/IcebergHiveMetadata.java"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc1838ba96abba88473212d81d0f66bdf423d9dd8af95426c4e15c7417cab7b4"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: OAuth2Config: 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":"presto-main/src/main/java/com/facebook/presto/server/security/oauth2/OAuth2Config.java"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"631172be6c09b3ce04b23ed3dc25f48abefde2f22eb3f0549a1f8dd592b07194"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PlanVisitor: 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":"presto-spi/src/main/java/com/facebook/presto/spi/plan/PlanVisitor.java"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"44e9f31af64055cd032d31f78c04c37ff44d4028c0a4bd2ba148eed33d1642a1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: hive/StoragePartitionLoader.java: FileTooLong \u2014 600 significant lines (blank, comment-only and punctuation-only lines excluded), about 86% of them inside a single declaration: StoragePartitionLoader (99-819). 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":"presto-hive/src/main/java/com/facebook/presto/hive/StoragePartitionLoader.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"15d07c4ce23397c40ba8b5732254f0065ef5c292b1b04230ce87cb98c585cf44"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: clickhouse/ClickHouseClient.java: FileTooLong \u2014 599 significant lines (blank, comment-only and punctuation-only lines excluded), about 88% of them inside a single declaration: ClickHouseClient (89-930). 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":"presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/ClickHouseClient.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c2ea6e13618adcee35f26afebe0299bc93e6a2a9915df141e57cf0dec6d97be"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: planner/PlannerUtils.java: FileTooLong \u2014 590 significant lines (blank, comment-only and punctuation-only lines excluded), about 84% of them inside a single declaration: PlannerUtils (111-995). 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/PlannerUtils.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2493141352ce1a7af5dbe1b78bdf9b520d6042bfbd0d5646bfaa6a9e53e9cd0d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: jdbc/BaseJdbcClient.java: FileTooLong \u2014 588 significant lines (blank, comment-only and punctuation-only lines excluded), about 87% of them inside a single declaration: BaseJdbcClient (96-861). 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":"presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/BaseJdbcClient.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a70e8b452fc2e3ed500cfa2b43b0c4dedfa9e3fbb205982f40ab444f8a5e26b0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: hive/HiveSplitSource.java: FileTooLong \u2014 585 significant lines (blank, comment-only and punctuation-only lines excluded), about 89% of them inside a single declaration: HiveSplitSource (80-915). 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":"presto-hive/src/main/java/com/facebook/presto/hive/HiveSplitSource.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"40472ab8aeb78012c50943b3927d809b4e504c77c829bdeed2ac7fa1963465b8"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AlluxioCacheConfig: 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":"presto-cache/src/main/java/com/facebook/presto/cache/alluxio/AlluxioCacheConfig.java"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"635bf86b6257c7ec84f605db54be7a2089ff76fd17bf7b7b366c4980d3d4bdce"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: StatementClientV1: 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":"presto-client/src/main/java/com/facebook/presto/client/StatementClientV1.java"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b375b845b3af07219c9a267f92894f7c506a7476ad444b13ac1e252d9abbadb"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AbstractCachingHiveMetastore: 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":"presto-hive-metastore/src/main/java/com/facebook/presto/hive/metastore/AbstractCachingHiveMetastore.java"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"20360d458ac4ac4eb251bb2d8d8b00e2df5529ca335160dfcd994b6837062a47"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PrestoIcebergTableForMetricsConfig: 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":"presto-iceberg/src/main/java/com/facebook/presto/iceberg/PrestoIcebergTableForMetricsConfig.java"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9108d73762d0d474592cb390e8dbf679475fdc422db8f5c414708e22d089c4e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SqlQueryScheduler: 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":"presto-main-base/src/main/java/com/facebook/presto/execution/scheduler/SqlQueryScheduler.java"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e99a0fc5f85cf605bf505e045ce585f13d4d109cedde4bad7e0bf13520eb05d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MemoryMetadata: 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":"presto-memory/src/main/java/com/facebook/presto/plugin/memory/MemoryMetadata.java"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbae95d3406635d3db33b2bb25d9a6ea16282eb84381aaa6dd2cfe5ca5425f2d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ChunkedSliceOutput: 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":"presto-rcfile/src/main/java/com/facebook/presto/rcfile/ChunkedSliceOutput.java"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"2979c3ddccc78cefaff7e2b4bdab04ad33a25b8b3248f1b5a12200a105d37d7a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cost/FilterStatsCalculator.java: FileTooLong \u2014 576 significant lines (blank, comment-only and punctuation-only lines excluded), about 86% of them inside a single declaration: FilterStatsCalculator (100-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":"presto-main-base/src/main/java/com/facebook/presto/cost/FilterStatsCalculator.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3476768153fa6d14134b314d549290cf355bce23309b3166a8ba3565ec24bca5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: jdbc/PrestoConnection.java: FileTooLong \u2014 575 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: PrestoConnection (70-924). 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":"presto-jdbc/src/main/java/com/facebook/presto/jdbc/PrestoConnection.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c52173195088365c65398fadfebfa042932c1a252a5d482fe4f71b8d8398e20"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: http/PrestoSparkHttpTaskClient.java: FileTooLong \u2014 570 significant lines (blank, comment-only and punctuation-only lines excluded), about 87% of them inside a single declaration: PrestoSparkHttpTaskClient (95-856). 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":"presto-spark-base/src/main/java/com/facebook/presto/spark/execution/http/PrestoSparkHttpTaskClient.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e52ffe107202bd4811dc13aeec33c476132a6c6f48198fd1b4c9042dfbb09c19"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: optimizations/StreamPropertyDerivations.java: FileTooLong \u2014 569 significant lines (blank, comment-only and punctuation-only lines excluded), about 85% of them inside a single declaration: StreamPropertyDerivations (106-999). 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/StreamPropertyDerivations.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bb3162335404fb85d5bca31a2ecfaca5484f9d860b1ef489080ca0a1c1f33d2"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BytecodeExpression: 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":"presto-bytecode/src/main/java/com/facebook/presto/bytecode/expression/BytecodeExpression.java"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"83e87f66a70b711f102d533cce07fab4370074acb479f2d40206d391f35abbb1"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ArrowBlockBuilder: 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":"presto-common-arrow/src/main/java/com/facebook/plugin/arrow/ArrowBlockBuilder.java"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"f852fc4ba0466a82e3d7f5039cd2ad9be9856ce75649aee9112275dda9a3768b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: FunctionType: 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":"presto-common/src/main/java/com/facebook/presto/common/type/FunctionType.java"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"e76fd9272e70b69a9225998afd8711f407c5c0a35f8e7f3c74bc31020fcbac04"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PipelineContext: 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":"presto-main-base/src/main/java/com/facebook/presto/operator/PipelineContext.java"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b6a50b8a949aa48d2be9fb35f1feb2e01174ff61677e69044e03a6c927d77ed"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: QuerySpecificationRewriter: 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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/MaterializedViewQueryOptimizer.java"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"c649cbe49a1482ad4e0608a7fae2b4aa7a2fb9cb7f6927d302e20b8f5f5650c5"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PlanFragment: 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/PlanFragment.java"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"51a8e0b348f30c8228b1c2e4eed96ec80a005daa17a38cd8bce80d19f87d04fa"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: InMemoryTransactionManager: 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":"presto-main-base/src/main/java/com/facebook/presto/transaction/InMemoryTransactionManager.java"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8977f9272c0aea62f1ca1b8292c1395558a4b78474899b0666df7c9d00404ef"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MongoSession: 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":"presto-mongodb/src/main/java/com/facebook/presto/mongodb/MongoSession.java"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"741f97014cf94c5ee415b7f13b6137a75ef072ff6f63ee17038591a58314c29e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: metadata/SignatureBinder.java: FileTooLong \u2014 561 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: SignatureBinder (73-919). 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":"presto-main-base/src/main/java/com/facebook/presto/metadata/SignatureBinder.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a8a054c793ae3f0186cdae15345d3b06f4779a8f8b3f47bb985a56b1a025e3b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: rewrite/QueryRewriter.java: FileTooLong \u2014 561 significant lines (blank, comment-only and punctuation-only lines excluded), about 82% of them inside a single declaration: QueryRewriter (117-770). 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":"presto-verifier/src/main/java/com/facebook/presto/verifier/rewrite/QueryRewriter.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d84ca83855017a3112af999b0d525cefacaee60f07daa446ae60a70284d6a977"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: tree/ExpressionTreeRewriter.java: FileTooLong \u2014 551 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: ExpressionTreeRewriter (27-1011). 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":"presto-parser/src/main/java/com/facebook/presto/sql/tree/ExpressionTreeRewriter.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ea9f48276f165b6d96976ab5a4a5cabc2a79a5e751118692d37b99e195eb15b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AbstractMapBlock: 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":"presto-common/src/main/java/com/facebook/presto/common/block/AbstractMapBlock.java"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"55c271c4767091f5f134741f9222fd26e207e49fa308a9222eef7f912fa346bc"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ByteArrayBlockBuilder: 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":"presto-common/src/main/java/com/facebook/presto/common/block/ByteArrayBlockBuilder.java"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d14189741b685c82294a952fe415a0a62ae11933cc674070fdbf98e237087d7"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Int128ArrayBlock: 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":"presto-common/src/main/java/com/facebook/presto/common/block/Int128ArrayBlock.java"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"b40c069a038b3f54d411010ef2693ff33923911044fc1f6b338e3e7ba1e1e8c1"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: IntArrayBlockBuilder: 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":"presto-common/src/main/java/com/facebook/presto/common/block/IntArrayBlockBuilder.java"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac75db08df40e1d51ad55d168ae0b25d48dcb9e1ea2cc5bb355e5a4e9847eee6"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ShortArrayBlockBuilder: 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":"presto-common/src/main/java/com/facebook/presto/common/block/ShortArrayBlockBuilder.java"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"22983a67c79328be756e7766d1b34646a4b8bec46b612c9df994cf9800f1f77e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ZipFileEntry: 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":"presto-druid/src/main/java/com/facebook/presto/druid/zip/ZipFileEntry.java"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce8f7b59eb44c8ec421faff0d0a03c59ee4f0a893aab0750013b92a504f90d14"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RangerBasedAccessControl: 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":"presto-hive/src/main/java/com/facebook/presto/hive/security/ranger/RangerBasedAccessControl.java"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3fff1030936b4a699a5b382b7969d97e894b60b3c37c976062d94ad8fb02bee"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: KuduClientSession: 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":"presto-kudu/src/main/java/com/facebook/presto/kudu/KuduClientSession.java"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7f56d564c5ba8d97996cd514e5af44839fef855c24ac2cbe5c22b9afc8df17e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CostEstimator: 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":"presto-main-base/src/main/java/com/facebook/presto/cost/CostCalculatorUsingExchanges.java"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"d398c7864426c16e7421e217599c4a4f7fc3d9a1b1cefc52bf189d8199f5528c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: StageExecutionStateMachine: 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":"presto-main-base/src/main/java/com/facebook/presto/execution/StageExecutionStateMachine.java"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"5087ac597f87578b547dfc52d92b77fbfa76e9a876cb772e95470d4a232cd334"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TestingMetadata: TooManyMethods \u2014 33 methods. Most of these members implement connector.ConnectorMetadata (30 of 33 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":"presto-main-base/src/main/java/com/facebook/presto/testing/TestingMetadata.java"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"509b0ecb80d7b5197a23e9c5aeab98fdf8952344a51d09852668a45d0427a322"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DateTimeOperators: 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":"presto-main-base/src/main/java/com/facebook/presto/type/DateTimeOperators.java"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"e78ca008bf176b7227512d7db1f4cf94061e6de657b7d2544c72056312d8fd52"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SqlQueryManager: 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":"presto-main/src/main/java/com/facebook/presto/execution/SqlQueryManager.java"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f7f1fc297966f14df7767a88eee1f435a095894a4e6e130c165b9528d381818"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Query: 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":"presto-main/src/main/java/com/facebook/presto/server/protocol/Query.java"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a474ccfb0d5afbe8958f3d844fb7b8764105fba7bfe4ba5f7a6b441d7713f6a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SerializationUtils: 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":"presto-orc/src/main/java/com/facebook/presto/orc/stream/LongOutputStreamV2.java"},"region":{"startLine":786}}}],"partialFingerprints":{"codehealthFindingId/v1":"debf9503ea84fdf817d1e69e10146a9ba473276b578b90dbf5efaa7c87811dda"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: QueryUtil: 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":"presto-parser/src/main/java/com/facebook/presto/sql/QueryUtil.java"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6f19848318015d4c176304da6e04a81466ba19a7dcd72ec2d237c60ce71ccf1"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RedisConnectorConfig: 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":"presto-redis/src/main/java/com/facebook/presto/redis/RedisConnectorConfig.java"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c73e7e1c4d73f0b46fc2adb75875821faefb06d1e058d27395fa7feccd572d3"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AbstractPrestoSparkQueryExecution: 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":"presto-spark-base/src/main/java/com/facebook/presto/spark/execution/AbstractPrestoSparkQueryExecution.java"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"57cffa7f7bef5d9324b8290a9e0a42d6142ce370e1bb325cad5c0e3c1e26f364"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AggregationNode: 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":"presto-spi/src/main/java/com/facebook/presto/spi/plan/AggregationNode.java"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc1440aa876d702dcbdc943185867465fab68b1f7b89c68c8aeb5b56dc7f9311"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TpchMetadata: 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":"presto-tpch/src/main/java/com/facebook/presto/tpch/TpchMetadata.java"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"35d10c48a2177ab4bc5a23f05f723bc17d15436b2fd32f5295e5b157a51309a5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: optimizations/PayloadJoinOptimizer.java: FileTooLong \u2014 549 significant lines (blank, comment-only and punctuation-only lines excluded), about 88% of them inside a single declaration: PayloadJoinOptimizer (128-927). 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PayloadJoinOptimizer.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e335de8b9398b6e47fd6c6b01eafb76679e9768ce495e7cf38a8d75ae1d0715"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: hive/HiveWriterFactory.java: FileTooLong \u2014 547 significant lines (blank, comment-only and punctuation-only lines excluded), about 84% of them inside a single declaration: HiveWriterFactory (103-797). 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":"presto-hive/src/main/java/com/facebook/presto/hive/HiveWriterFactory.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e64bdc3187f4d65377c10c8c80fb689f6dfbb0a26825a027423c186fb0aa55a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: arrow/BlockArrowWriter.java: FileTooLong \u2014 544 significant lines (blank, comment-only and punctuation-only lines excluded), about 87% of them inside a single declaration: BlockArrowWriter (87-937). 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":"presto-common-arrow/src/main/java/com/facebook/plugin/arrow/BlockArrowWriter.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e06543840ce58f3d804d1126a32fc2eb2b657f03db6151494d3824e5c2e78d3a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: reader/MapFlatSelectiveStreamReader.java: FileTooLong \u2014 544 significant lines (blank, comment-only and punctuation-only lines excluded), about 89% of them inside a single declaration: MapFlatSelectiveStreamReader (79-809). 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":"presto-orc/src/main/java/com/facebook/presto/orc/reader/MapFlatSelectiveStreamReader.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d4ee3e309ba7493be9cf09ad6401ac104c423b94f18d983602ee1f3d029c7f1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: relational/RowExpressionDomainTranslator.java: FileTooLong \u2014 541 significant lines (blank, comment-only and punctuation-only lines excluded), about 86% of them inside a single declaration: RowExpressionDomainTranslator (93-889). 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":"presto-main-base/src/main/java/com/facebook/presto/sql/relational/RowExpressionDomainTranslator.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"04fbac9af0b144df8b37f6ccdecbae99196eb70537ddc85396a77f6ba17cb9b1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: protocol/Query.java: FileTooLong \u2014 539 significant lines (blank, comment-only and punctuation-only lines excluded), about 84% of them inside a single declaration: Query (103-863). 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":"presto-main/src/main/java/com/facebook/presto/server/protocol/Query.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"77cfb6519518491f0cb431097c660fd9a52e074decdd141c9d1b3134bf7665f7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: classloader/ClassLoaderSafeConnectorMetadata.java: FileTooLong \u2014 537 significant lines (blank, comment-only and punctuation-only lines excluded), about 90% of them inside a single declaration: ClassLoaderSafeConnectorMetadata (74-1012). 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":"presto-spi/src/main/java/com/facebook/presto/spi/connector/classloader/ClassLoaderSafeConnectorMetadata.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"28fcb7dd871e2a51604c009f3eff631a1d5185dbfee15471c295bfbf943defb9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: state/StateCompiler.java: FileTooLong \u2014 534 significant lines (blank, comment-only and punctuation-only lines excluded), about 85% of them inside a single declaration: StateCompiler (98-828). 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":"presto-main-base/src/main/java/com/facebook/presto/operator/aggregation/state/StateCompiler.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae3e5910b6928db69cdffa430363a9f8920139345e6a5719fbf1993fd1d515b0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: repartition/OptimizedPartitionedOutputOperator.java: FileTooLong \u2014 534 significant lines (blank, comment-only and punctuation-only lines excluded), about 87% of them inside a single declaration: OptimizedPartitionedOutputOperator (86-824). 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":"presto-main-base/src/main/java/com/facebook/presto/operator/repartition/OptimizedPartitionedOutputOperator.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"07ae0a62b9949f9f098454deb5d8d5c35ccae4042b45622c69adac7eb8ae5e91"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MethodDefinition: 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":"presto-bytecode/src/main/java/com/facebook/presto/bytecode/MethodDefinition.java"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a8254ef66632e6367fbd6b29c7b3810decd2b3eec690c2d51d8751739fc521b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Page: 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":"presto-common/src/main/java/com/facebook/presto/common/Page.java"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d219f3d25b37d5818817b72325be9f25a64712ec86b32c6b5888d32e519b7f8"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LongArrayBlock: 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":"presto-common/src/main/java/com/facebook/presto/common/block/LongArrayBlock.java"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f8ef2518e7a336e54eab4f0565dde58e9c74d6154fbd9bd059be49cef89a4af"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Domain: 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":"presto-common/src/main/java/com/facebook/presto/common/predicate/Domain.java"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdf933c424cb6ee51f3798bd3e73b4c4d3bc29ced7e95a6e46f8596f0d1c9daf"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: IcebergColumnHandle: 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":"presto-iceberg/src/main/java/com/facebook/presto/iceberg/IcebergColumnHandle.java"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"967fc0683753ba3b958831aba7fd657c77596fdbaeffd32453376c4a19d20ac6"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: IcebergSessionProperties: 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":"presto-iceberg/src/main/java/com/facebook/presto/iceberg/IcebergSessionProperties.java"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"88bd898f4860a72e4772c0e90448f47d92573aa5b2dc68c823e1e243c63bdff1"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SpoolingOutputBuffer: 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":"presto-main-base/src/main/java/com/facebook/presto/execution/buffer/SpoolingOutputBuffer.java"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"020cdc472ffa3ccb3cae5def17b56788473b03d7ddcb9d50913cab0fc4a39185"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LocalDispatchQuery: 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":"presto-main/src/main/java/com/facebook/presto/dispatcher/LocalDispatchQuery.java"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"26be8b56a118ad5231876d110a9a2ef4b0a0871d97f0f3c7a3a4bbea208a4910"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: reader/StructSelectiveStreamReader.java: FileTooLong \u2014 528 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: StructSelectiveStreamReader (68-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":"presto-orc/src/main/java/com/facebook/presto/orc/reader/StructSelectiveStreamReader.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8d6a95333d0029c83b772de9c4566ce2adc80b7596b0dc7a9e707d2b2d48719"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: client/ElasticsearchClient.java: FileTooLong \u2014 526 significant lines (blank, comment-only and punctuation-only lines excluded), about 78% of them inside a single declaration: ElasticsearchClient (137-813). 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":"presto-elasticsearch/src/main/java/com/facebook/presto/elasticsearch/client/ElasticsearchClient.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"31cf4a1203b6ac0ab551c69b4fe7114ef41b1e17c680c1480f6f4e22632ca2f4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: sessionpropertyproviders/NativeWorkerSessionPropertyProvider.java: FileTooLong \u2014 525 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: NativeWorkerSessionPropertyProvider (31-552). 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":"presto-main-base/src/main/java/com/facebook/presto/sessionpropertyproviders/NativeWorkerSessionPropertyProvider.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7d07a38cfc56c756f6c95bb9975f8e5f0b62791384c2fe183a8ee5d80e2349a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: protocol/QueuedStatementResource.java: FileTooLong \u2014 522 significant lines (blank, comment-only and punctuation-only lines excluded), about 81% of them inside a single declaration: QueuedStatementResource (118-829). 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":"presto-main/src/main/java/com/facebook/presto/server/protocol/QueuedStatementResource.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4748291acdea38cba75bd87f0310af2174c15afbba9660bcc9cf16b9974aa8f2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: sql/ExpressionFormatter.java: FileTooLong \u2014 520 significant lines (blank, comment-only and punctuation-only lines excluded), about 83% of them inside a single declaration: ExpressionFormatter (106-858). 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":"presto-parser/src/main/java/com/facebook/presto/sql/ExpressionFormatter.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7038541cd7e30b7faa3084b13eecfc5cde3ca78bc71a17fce6838f27de78fe2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: operator/HashAggregationOperator.java: FileTooLong \u2014 519 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: HashAggregationOperator (56-725). 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":"presto-main-base/src/main/java/com/facebook/presto/operator/HashAggregationOperator.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"97306828745edf9ac87ee2743d4f73fb49ebe647604c4bd84e9c4620aca93043"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AccumuloClient: 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":"presto-accumulo/src/main/java/com/facebook/presto/accumulo/AccumuloClient.java"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"f60696f2e58155217e6763cad09d8bb0ee3c3282a14b1ac8a5d9c367f0ad5f64"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AccumuloMetadata: 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":"presto-accumulo/src/main/java/com/facebook/presto/accumulo/AccumuloMetadata.java"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee49580aa0352bc5e9fb22c778dd57b09eb140d00b9be5324f87b1511766745a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ClassDefinition: 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":"presto-bytecode/src/main/java/com/facebook/presto/bytecode/ClassDefinition.java"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"288b15c1b7c727e04f0e40e0d8f1c0dcb96f422c9721b2e7df43f5da0b9bb971"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SortedRangeSet: 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":"presto-common/src/main/java/com/facebook/presto/common/predicate/SortedRangeSet.java"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"06d3d53a1a0f597d560bf3a1b3de79da82561f3855b75932d80a2a7e943b43bf"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TypeSignatureParameter: 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":"presto-common/src/main/java/com/facebook/presto/common/type/TypeSignatureParameter.java"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ecfec405b5ea5528fb051fc66846a39e950c692c7ab1a5367dfd6167e5352ef"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PlanNodeStatsEstimate: 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":"presto-main-base/src/main/java/com/facebook/presto/cost/PlanNodeStatsEstimate.java"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"f90c3eb9eba58d0f9b5ec076cc65b1868d7589c9b04bdaefa201a1cd68c2d887"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SqlTask: 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":"presto-main-base/src/main/java/com/facebook/presto/execution/SqlTask.java"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd4af68dd14cdb9dcd99d72f8f7163cfb2f8afde32d2add06826d5fe52ef215b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AggregationUtils: 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":"presto-main-base/src/main/java/com/facebook/presto/operator/aggregation/AggregationUtils.java"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7ca45a5bf5d15b2173a4457fc8216e6069ea5119c0438d786443356f7917268"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SubqueryPlanner: 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/SubqueryPlanner.java"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"791f7860316c9fb6eee2485ff7e7a10804eada9c6c4076cfe99132abe631cbac"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Rewriter: 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/HashGenerationOptimizer.java"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd9eb2945ef5e8c28ba70cd618f1823c30456263e097d37760e363967ee62d50"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: QueryCompletedEvent: 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":"presto-spi/src/main/java/com/facebook/presto/spi/eventlistener/QueryCompletedEvent.java"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c6fca63f7b90c70cfea87beeef43150d3725f7c06db50fff72cce070fccea07"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: optimizations/SymbolMapper.java: FileTooLong \u2014 512 significant lines (blank, comment-only and punctuation-only lines excluded), about 87% of them inside a single declaration: SymbolMapper (86-763). 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/SymbolMapper.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9294a803a23f0ce2b02dd7a39c077b607a3c7b83dd5616c1164bf32941cf4282"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: operator/TaskContext.java: FileTooLong \u2014 511 significant lines (blank, comment-only and punctuation-only lines excluded), about 89% of them inside a single declaration: TaskContext (76-777). 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":"presto-main-base/src/main/java/com/facebook/presto/operator/TaskContext.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fe3a61f4802ffb13a299705b31aabeb18aa5cb327b341aa42c46b173e9509ff"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: iceberg/TableStatisticsMaker.java: FileTooLong \u2014 509 significant lines (blank, comment-only and punctuation-only lines excluded), about 79% of them inside a single declaration: TableStatisticsMaker (127-706). 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":"presto-iceberg/src/main/java/com/facebook/presto/iceberg/TableStatisticsMaker.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbb591741e4d676531d5325de8a72cebb16d2ae4a4267bf324f5b71fbdb0ef45"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: execution/SqlStageExecution.java: FileTooLong \u2014 509 significant lines (blank, comment-only and punctuation-only lines excluded), about 86% of them inside a single declaration: SqlStageExecution (89-847). 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":"presto-main-base/src/main/java/com/facebook/presto/execution/SqlStageExecution.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f69ec9df6cdae6017b6f96f6577a18255146e6934a3134f37a7fe55f9a71190"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: rule/ReorderJoins.java: FileTooLong \u2014 509 significant lines (blank, comment-only and punctuation-only lines excluded), about 83% of them inside a single declaration: ReorderJoins (104-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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/ReorderJoins.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cab859e73680ac692bff284c39538b0dcdc7762cbf3c0b96968136da8ac453ae"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: properties/KuduTableProperties.java: FileTooLong \u2014 508 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: KuduTableProperties (66-700). 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":"presto-kudu/src/main/java/com/facebook/presto/kudu/properties/KuduTableProperties.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0ac8c6a0b550c1c548d66d1ed570bfd06a85339658db9a34fc7ba78cbc9a22a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: orc/AbstractOrcRecordReader.java: FileTooLong \u2014 505 significant lines (blank, comment-only and punctuation-only lines excluded), about 89% of them inside a single declaration: AbstractOrcRecordReader (73-845). 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":"presto-orc/src/main/java/com/facebook/presto/orc/AbstractOrcRecordReader.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8ed7ea1168798be9704b1f614b6f7776aa165b1997720d31810be78b4c366b9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: metadata/DwrfMetadataReader.java: FileTooLong \u2014 505 significant lines (blank, comment-only and punctuation-only lines excluded), about 86% of them inside a single declaration: DwrfMetadataReader (88-729). 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":"presto-orc/src/main/java/com/facebook/presto/orc/metadata/DwrfMetadataReader.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a260a189f9f0b6aea3b8b3809264bea1422f25c929c05dc2a82bedf3d69b47e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: bytecode/BytecodeBlock.java: FileTooLong \u2014 501 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: BytecodeBlock (54-956). 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":"presto-bytecode/src/main/java/com/facebook/presto/bytecode/BytecodeBlock.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b850b7e2cc0114b7069b8fd84346fbf8b9f2fbf68d32c56bc03e07b0f8570ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): presto-bytecode/src/main/java/com/facebook/presto/bytecode/expression/ArithmeticBytecodeExpression.java:49-69 | presto-bytecode/src/main/java/com/facebook/presto/bytecode/expression/ArithmeticBytecodeExpression.java:79-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. 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":"presto-bytecode/src/main/java/com/facebook/presto/bytecode/expression/ArithmeticBytecodeExpression.java"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"e62c7e07043e66b82f98e96e566ecd26d4badcac01bbf9b3a872052176169f90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/CoalesceCascadingProjections.java:119-137 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/InlineProjections.java:95-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/CoalesceCascadingProjections.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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/CoalesceCascadingProjections.java"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d01ea936eab0ce573efa7c90176079599db6eb68ba562015a42dcd6832acc7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/IndexJoinOptimizer.java:287-303 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/IndexJoinOptimizer.java:484-500 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/IndexJoinOptimizer.java:287\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/IndexJoinOptimizer.java"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"319c5305699d70225846c2536459ad32ed5c702584a392dfd84ca8a42c607900"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/gen/JoinCompiler.java:581-596 | presto-main-base/src/main/java/com/facebook/presto/sql/gen/JoinCompiler.java:746-761 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/gen/JoinCompiler.java:581\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":"presto-main-base/src/main/java/com/facebook/presto/sql/gen/JoinCompiler.java"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a18c5e82c3158ee9527a2fdd228f78f6c776f46124ecf45b6d84077ec04d131"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/gen/OrderingCompiler.java:215-230 | presto-main-base/src/main/java/com/facebook/presto/sql/gen/OrderingCompiler.java:305-320 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/gen/OrderingCompiler.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-main-base/src/main/java/com/facebook/presto/sql/gen/OrderingCompiler.java"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d93ba9c8f62c3a10b6bfebac9f9c15ded418e60f75a1a3e90dd5ffe62547561"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/TransformTableFunctionToTableFunctionProcessor.java:512-527 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/TransformTableFunctionToTableFunctionProcessor.java:695-710 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/TransformTableFunctionToTableFunctionProcessor.java:512\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/TransformTableFunctionToTableFunctionProcessor.java"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fbb9ce75a20a0872033d63040a24670e846369ac1787071a01726589ebc2f8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/OptimizeTopNUsingRowId.java:157-172 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/OptimizeTopNUsingRowId.java:315-330 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/OptimizeTopNUsingRowId.java:157\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/OptimizeTopNUsingRowId.java"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad00d5bee1069f04cbac2b9620083f16f7388ad7e9822087f411d0a5c5c3c2a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/OptimizeTopNUsingRowId.java:260-275 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/OptimizeTopNUsingRowId.java:429-444 \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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/OptimizeTopNUsingRowId.java"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"b53203d9483616ade3cd0dcc7d330084952b33ec8c950f2f769c789c20dc174c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/LocalExecutionPlanner.java:2878-2898 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/LocalExecutionPlanner.java:3019-3034 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/LocalExecutionPlanner.java:2878\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/LocalExecutionPlanner.java"},"region":{"startLine":2878}}}],"partialFingerprints":{"codehealthFindingId/v1":"80e2918efede8a5b90df87ad765150ae0b8d9640bb8f58b68a39d02dad1ea552"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 5): presto-common/src/main/java/com/facebook/presto/common/block/SingleMapBlock.java:223-237 | presto-common/src/main/java/com/facebook/presto/common/block/SingleMapBlock.java:267-281 | presto-common/src/main/java/com/facebook/presto/common/block/SingleMapBlock.java:311-325 | presto-common/src/main/java/com/facebook/presto/common/block/SingleMapBlock.java:355-369 | presto-common/src/main/java/com/facebook/presto/common/block/SingleMapBlock.java:406-420 \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 \u0060presto-common/src/main/java/com/facebook/presto/common/block/SingleMapBlock.java:223\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":"presto-common/src/main/java/com/facebook/presto/common/block/SingleMapBlock.java"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d11f12dc77d3791ac6f0664e1238ebd1970475e134c172691fbfc8a43b41e7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/TransformTableFunctionToTableFunctionProcessor.java:561-575 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/TransformTableFunctionToTableFunctionProcessor.java:587-601 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/TransformTableFunctionToTableFunctionProcessor.java:739-753 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/TransformTableFunctionToTableFunctionProcessor.java:765-779 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/TransformTableFunctionToTableFunctionProcessor.java:561\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/TransformTableFunctionToTableFunctionProcessor.java"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fac25095f8daa2ae4b00b00682a6a0a3f2269c2305be2f800ab31e9939ede1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java:5033-5047 | presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java:5090-5104 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java:5033\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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java"},"region":{"startLine":5033}}}],"partialFingerprints":{"codehealthFindingId/v1":"352acbe0cc90c0d7d0a7395b71bab42f3986dd4f88c2455b09189e2f545144e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/IndexJoinOptimizer.java:386-400 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/IndexJoinOptimizer.java:405-419 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/IndexJoinOptimizer.java:386\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/IndexJoinOptimizer.java"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfccce92ab17b353635718720d73fa4b2e3f47041282485c5d8dd9573cba9385"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/QueryPlanner.java:666-680 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/QueryPlanner.java:973-987 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/QueryPlanner.java:666\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/QueryPlanner.java"},"region":{"startLine":666}}}],"partialFingerprints":{"codehealthFindingId/v1":"e01fcc8517853ac7114fc15443ff5d84c18fd6f3d98740d79279c6f30a7cc453"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/gen/JoinCompiler.java:446-459 | presto-main-base/src/main/java/com/facebook/presto/sql/gen/JoinCompiler.java:476-489 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/gen/JoinCompiler.java:446\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":"presto-main-base/src/main/java/com/facebook/presto/sql/gen/JoinCompiler.java"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"c80f71b5b19de332ddf01fa004aeadafc7ce205a7b632f59b8d52f9fe96cb9b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/gen/JoinCompiler.java:610-623 | presto-main-base/src/main/java/com/facebook/presto/sql/gen/JoinCompiler.java:649-662 \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":"presto-main-base/src/main/java/com/facebook/presto/sql/gen/JoinCompiler.java"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d3f1713ff64d163f886d666cadcb612e2264d8fbb096911816557856ffaf780"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/gen/JoinCompiler.java:783-796 | presto-main-base/src/main/java/com/facebook/presto/sql/gen/JoinCompiler.java:826-840 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/gen/JoinCompiler.java:783\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":"presto-main-base/src/main/java/com/facebook/presto/sql/gen/JoinCompiler.java"},"region":{"startLine":783}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b3688ae3737ccf3e05d2708931f00ad179af4b54edbeb771f93879d7400d3c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PredicatePushDown.java:469-482 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PredicatePushDown.java:936-950 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PredicatePushDown.java:469\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PredicatePushDown.java"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca135fb98d69f2cace28aca818c072a147dbc28db8b5de2e2d7b85e095592a8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): presto-common/src/main/java/com/facebook/presto/common/block/ColumnarMap.java:101-114 | presto-common/src/main/java/com/facebook/presto/common/block/ColumnarMap.java:142-155 \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 \u0060presto-common/src/main/java/com/facebook/presto/common/block/ColumnarMap.java:101\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":"presto-common/src/main/java/com/facebook/presto/common/block/ColumnarMap.java"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"38b29dbe82527c02791f4b1dee57b3757e6a975a64c52e0bf7481bf5e966dbbf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 5): presto-common/src/main/java/com/facebook/presto/common/block/SingleMapBlock.java:203-215 | presto-common/src/main/java/com/facebook/presto/common/block/SingleMapBlock.java:250-262 | presto-common/src/main/java/com/facebook/presto/common/block/SingleMapBlock.java:294-306 | presto-common/src/main/java/com/facebook/presto/common/block/SingleMapBlock.java:338-350 | presto-common/src/main/java/com/facebook/presto/common/block/SingleMapBlock.java:433-445 \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 \u0060presto-common/src/main/java/com/facebook/presto/common/block/SingleMapBlock.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-common/src/main/java/com/facebook/presto/common/block/SingleMapBlock.java"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c43a4dd6e622e81864c77bc46e75c34851a7cd3b6c885a6f7634814c73e7c9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java:4979-4991 | presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java:5039-5051 | presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java:5096-5108 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java:4979\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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java"},"region":{"startLine":4979}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3e3eb54d73bdc2787c837c13540cdf754c8078a4eebd0ef8e78fa1e8d7c028a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): presto-common/src/main/java/com/facebook/presto/common/block/ArrayBlock.java:77-89 | presto-common/src/main/java/com/facebook/presto/common/block/MapBlock.java:106-118 | presto-common/src/main/java/com/facebook/presto/common/block/RowBlock.java:92-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-common/src/main/java/com/facebook/presto/common/block/ArrayBlock.java"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"3165d56139176851d819deefb82ea5eebb2e387312ff05a44642ff3bd3d47489"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PushPartialAggregationThroughExchange.java:274-286 | presto-main-base/src/main/java/com/facebook/presto/sql/TemporaryTableUtil.java:415-427 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PushPartialAggregationThroughExchange.java:274\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PushPartialAggregationThroughExchange.java"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dea9c33b0c5885595c5ba3da55568d2cca8d771da47bc4eae91414b43b0a6f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/ReorderJoins.java:324-336 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/ReorderJoins.java:345-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/ReorderJoins.java"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"f59d503bcf6e3ddf9374b73ab0a63a4aa6e159c349580ef1678c9bea9f466120"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/IndexJoinOptimizer.java:222-234 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/IndexJoinOptimizer.java:425-437 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/IndexJoinOptimizer.java:222\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/IndexJoinOptimizer.java"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"16b80c4371af43ff2414775f64a1b7f39e0cd4f2a02436668c64ffdae7fd2764"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/IndexJoinOptimizer.java:272-284 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/IndexJoinOptimizer.java:287-299 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/IndexJoinOptimizer.java:272\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/IndexJoinOptimizer.java"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cb9dc67911ad533e8e0b6b44ca8362b3ba773d8f868b5d8ad248c791c44b487"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/IndexJoinOptimizer.java:312-324 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/IndexJoinOptimizer.java:508-520 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/IndexJoinOptimizer.java:312\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/IndexJoinOptimizer.java"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"aea56fd9a00724d2a6660fa492e97d79a77d9737d705aaec3d5c67cb5086fd53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/JoinPrefilter.java:398-410 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/JoinPrefilter.java:457-469 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/JoinPrefilter.java:398\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/JoinPrefilter.java"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"113ac30078457b683b49a656bf4b4f77fb8f861236f96aa599de7ce53f9be490"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PayloadJoinOptimizer.java:800-812 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PayloadJoinOptimizer.java:820-832 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PayloadJoinOptimizer.java:800\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PayloadJoinOptimizer.java"},"region":{"startLine":800}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2be6b87ad537094aaf7a5283233279f8fd40340de9d8dc530d9445da47dc48d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PredicatePushDown.java:1079-1091 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PredicatePushDown.java:1270-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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PredicatePushDown.java:1079\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PredicatePushDown.java"},"region":{"startLine":1079}}}],"partialFingerprints":{"codehealthFindingId/v1":"a639c5c921d89c0db1e1d54b45c0567d4aab7178e19b5024a2a2ac0dbe4dc5a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/LocalExecutionPlanner.java:3292-3304 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/LocalExecutionPlanner.java:3383-3395 \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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/LocalExecutionPlanner.java"},"region":{"startLine":3292}}}],"partialFingerprints":{"codehealthFindingId/v1":"557f35c1c6b2edfad261358d3a003707fe457ce3f7fe9fe082f603b70c8cc4f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/BaseJdbcClient.java:672-684 | presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/ClickHouseClient.java:892-904 \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 \u0060presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/BaseJdbcClient.java:672\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":"presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/BaseJdbcClient.java"},"region":{"startLine":672}}}],"partialFingerprints":{"codehealthFindingId/v1":"338c5632a489bc93b2f24b383275edf9a807f4698bb1a9346f4ceee6fc8320c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/optimization/ClickHouseQueryGeneratorContext.java:284-296 | presto-druid/src/main/java/com/facebook/presto/druid/DruidQueryGeneratorContext.java:290-302 \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 \u0060presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/optimization/ClickHouseQueryGeneratorContext.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. 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":"presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/optimization/ClickHouseQueryGeneratorContext.java"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b1bdcabd79f7684504cb23d8e2afbdb404f2af9ff0e22abdff178bc52fe3ade"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): presto-mysql/src/main/java/com/facebook/presto/plugin/mysql/MySqlClient.java:219-231 | presto-postgresql/src/main/java/com/facebook/presto/plugin/postgresql/PostgreSqlClient.java:136-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 \u0060presto-mysql/src/main/java/com/facebook/presto/plugin/mysql/MySqlClient.java:219\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":"presto-mysql/src/main/java/com/facebook/presto/plugin/mysql/MySqlClient.java"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3da254eef1973dfb21122ece207d98673cc4ba90b786567b010a8902e429e4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): presto-bytecode/src/main/java/com/facebook/presto/bytecode/ParameterizedType.java:252-264 | presto-bytecode/src/main/java/com/facebook/presto/bytecode/ParameterizedType.java:286-298 \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 \u0060presto-bytecode/src/main/java/com/facebook/presto/bytecode/ParameterizedType.java:252\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":"presto-bytecode/src/main/java/com/facebook/presto/bytecode/ParameterizedType.java"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"c724235c6b9106a2818ad421a0261122aa34f31ba1253319a9845f5d5742222e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): presto-client/src/main/java/com/facebook/presto/client/OkHttpUtil.java:258-271 | presto-elasticsearch/src/main/java/com/facebook/presto/elasticsearch/client/ElasticsearchClient.java:384-396 \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 \u0060presto-client/src/main/java/com/facebook/presto/client/OkHttpUtil.java:258\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":"presto-client/src/main/java/com/facebook/presto/client/OkHttpUtil.java"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"8987fa7b8d692afd77f0ede7f2f90dc65b4865385ea0e77516fa4cb0d076a6b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): presto-common/src/main/java/com/facebook/presto/common/block/ByteArrayBlock.java:66-77 | presto-common/src/main/java/com/facebook/presto/common/block/IntArrayBlock.java:59-70 | presto-common/src/main/java/com/facebook/presto/common/block/LongArrayBlock.java:60-71 | presto-common/src/main/java/com/facebook/presto/common/block/ShortArrayBlock.java:57-68 \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 \u0060presto-common/src/main/java/com/facebook/presto/common/block/ByteArrayBlock.java:66\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":"presto-common/src/main/java/com/facebook/presto/common/block/ByteArrayBlock.java"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"110aff163c47eda0abbb46ab2fb5e464748252da415f79ddc06e4a0392467a93"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): presto-accumulo/src/main/java/com/facebook/presto/accumulo/metadata/ZooKeeperMetadataManager.java:107-118 | presto-accumulo/src/main/java/com/facebook/presto/accumulo/metadata/ZooKeeperMetadataManager.java:148-159 \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 \u0060presto-accumulo/src/main/java/com/facebook/presto/accumulo/metadata/ZooKeeperMetadataManager.java:107\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":"presto-accumulo/src/main/java/com/facebook/presto/accumulo/metadata/ZooKeeperMetadataManager.java"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c2e38593b9f3a5437bdfd5265cdc7b32445761edda9b5029643a1c6dab5fb5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): presto-accumulo/src/main/java/com/facebook/presto/accumulo/serializers/LexicoderRowSerializer.java:134-145 | presto-accumulo/src/main/java/com/facebook/presto/accumulo/serializers/StringRowSerializer.java:106-117 \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":"presto-accumulo/src/main/java/com/facebook/presto/accumulo/serializers/LexicoderRowSerializer.java"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec67c6f5f78263ee0c6aad647ef6b37198725c59d5df3f286198d0040ee03705"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java:4895-4906 | presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java:4911-4922 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java:4895\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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java"},"region":{"startLine":4895}}}],"partialFingerprints":{"codehealthFindingId/v1":"de819a1873087f2e1ace09cc548fadd2bcddf56025c6ae3ce36ab18221c14ab5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/gen/AndCodeGenerator.java:55-66 | presto-main-base/src/main/java/com/facebook/presto/sql/gen/OrCodeGenerator.java:55-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060presto-main-base/src/main/java/com/facebook/presto/sql/gen/AndCodeGenerator.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":"presto-main-base/src/main/java/com/facebook/presto/sql/gen/AndCodeGenerator.java"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fd2c258109bfd0cabfb964a8901940e70781c0472d5c82824462f2bf6dc1dff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/gen/CursorProcessorCompiler.java:429-440 | presto-main-base/src/main/java/com/facebook/presto/sql/gen/PageFunctionCompiler.java:581-592 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/gen/CursorProcessorCompiler.java:429\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":"presto-main-base/src/main/java/com/facebook/presto/sql/gen/CursorProcessorCompiler.java"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"44135d39c058514526dac4d86e406f220544a7466c1a4635379f19bec57e4921"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/gen/PageFunctionCompiler.java:695-706 | presto-main-base/src/main/java/com/facebook/presto/sql/gen/RowExpressionPredicateCompiler.java:123-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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/gen/PageFunctionCompiler.java:695\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":"presto-main-base/src/main/java/com/facebook/presto/sql/gen/PageFunctionCompiler.java"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"841b759a5b77a3b0f035d596508a5d859c8fef43b9656ff257fe653ed65708b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/gen/PageFunctionCompiler.java:872-883 | presto-main-base/src/main/java/com/facebook/presto/sql/gen/RowExpressionPredicateCompiler.java:189-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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/gen/PageFunctionCompiler.java:872\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":"presto-main-base/src/main/java/com/facebook/presto/sql/gen/PageFunctionCompiler.java"},"region":{"startLine":872}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f932d420391802ffba5fbf2d29a177c574eab69ebc5b88b46a6da382db7aba5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/gen/RowExpressionCompiler.java:268-279 | presto-main-base/src/main/java/com/facebook/presto/sql/gen/RowExpressionCompiler.java:310-321 \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":"presto-main-base/src/main/java/com/facebook/presto/sql/gen/RowExpressionCompiler.java"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e3168329126272fd370091fc32f209fe9ade7e41b69628de6f9b38db26cbce3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/ExtractSystemTableFilterRuleSet.java:143-154 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/ExtractSystemTableFilterRuleSet.java:280-291 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/ExtractSystemTableFilterRuleSet.java:143\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/ExtractSystemTableFilterRuleSet.java"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"07114d10df2c8b3ac3bf502274b6c2bb8fc58d1cdd482361869d7b8c2573d6d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PreAggregateBeforeGroupId.java:249-260 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PreAggregateBeforeGroupId.java:304-315 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PreAggregateBeforeGroupId.java:249\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PreAggregateBeforeGroupId.java"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e1bcd009ad6fb68dea9c4f936040f763890aa9a8052727519a61af4a6acc3db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PayloadJoinOptimizer.java:636-647 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PayloadJoinOptimizer.java:679-690 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PayloadJoinOptimizer.java:636\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PayloadJoinOptimizer.java"},"region":{"startLine":636}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8a52d50c7641ee889fe1bd8285c7bb05701bca3722a3c4aa36d9675202a5c82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PropertyDerivations.java:344-355 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/StreamPropertyDerivations.java:438-449 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PropertyDerivations.java:344\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PropertyDerivations.java"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"62118ddf198b984fdb261d117ed61ffcae8f2e34917f66668f473a3f5ede4edc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): presto-parser/src/main/java/com/facebook/presto/sql/SqlFormatter.java:1796-1807 | presto-parser/src/main/java/com/facebook/presto/sql/SqlFormatter.java:1827-1838 \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 \u0060presto-parser/src/main/java/com/facebook/presto/sql/SqlFormatter.java:1796\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":"presto-parser/src/main/java/com/facebook/presto/sql/SqlFormatter.java"},"region":{"startLine":1796}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e6df24c29ede6228fc4611b02fb938841b661aaca24f6ed680cb309156a46d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/mapping/StandardColumnMappings.java:317-328 | presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/StandardReadMappings.java:174-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/mapping/StandardColumnMappings.java:317\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":"presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/mapping/StandardColumnMappings.java"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"88e4e8b5fb1245aea32140c936cb88ee710e6fb4039cb89eaa5c4b32eb6b70f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/optimization/JdbcComputePushdown.java:128-139 | presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/optimization/ClickHouseComputePushdown.java:279-290 \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 \u0060presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/optimization/JdbcComputePushdown.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":"presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/optimization/JdbcComputePushdown.java"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"83a86914e86ecb63d1ff7b4936859600cebd37880548a86178978a6ca05ad156"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/optimization/JdbcFilterToSqlTranslator.java:96-107 | presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/optimization/ClickHouseFilterToSqlTranslator.java:96-107 \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 \u0060presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/optimization/JdbcFilterToSqlTranslator.java:96\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":"presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/optimization/JdbcFilterToSqlTranslator.java"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e7de94281bdbdc18e4cdc8c9e9d56bb0d341fb7c8419deca2283c023d2ed1e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/BaseJdbcClient.java:223-234 | presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/ClickHouseClient.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 \u0060presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/BaseJdbcClient.java:223\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":"presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/BaseJdbcClient.java"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"4801b7e4bc2e256c1a81a987abc59e0380ddb351d96d10fba5bf283bcb48b0cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/BaseJdbcClient.java:720-731 | presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/ClickHouseClient.java:628-639 \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 \u0060presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/BaseJdbcClient.java:720\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":"presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/BaseJdbcClient.java"},"region":{"startLine":720}}}],"partialFingerprints":{"codehealthFindingId/v1":"404bc66209825ef9caa5ca810e89fb1e795d858a1b6397d58e57e75aa61659bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): presto-mysql/src/main/java/com/facebook/presto/plugin/mysql/MySqlClient.java:120-131 | presto-singlestore/src/main/java/com/facebook/presto/plugin/singlestore/SingleStoreClient.java:89-100 \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 \u0060presto-mysql/src/main/java/com/facebook/presto/plugin/mysql/MySqlClient.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":"presto-mysql/src/main/java/com/facebook/presto/plugin/mysql/MySqlClient.java"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"447a29ad44bf0c8e4cc01cca2ce5eeafaea1ab2144cf2f4551f2a772b638228a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): presto-mysql/src/main/java/com/facebook/presto/plugin/mysql/MySqlClient.java:186-197 | presto-singlestore/src/main/java/com/facebook/presto/plugin/singlestore/SingleStoreClient.java:143-154 \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 \u0060presto-mysql/src/main/java/com/facebook/presto/plugin/mysql/MySqlClient.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. 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":"presto-mysql/src/main/java/com/facebook/presto/plugin/mysql/MySqlClient.java"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"f096cbec123d7ff7b7475eac59371e39c985ab9194a9745dc38aac5075fcf3ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): presto-bytecode/src/main/java/com/facebook/presto/bytecode/expression/CastBytecodeExpression.java:117-128 | presto-bytecode/src/main/java/com/facebook/presto/bytecode/expression/CastBytecodeExpression.java:140-151 \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 \u0060presto-bytecode/src/main/java/com/facebook/presto/bytecode/expression/CastBytecodeExpression.java:117\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":"presto-bytecode/src/main/java/com/facebook/presto/bytecode/expression/CastBytecodeExpression.java"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c4aee4c0280f2696330a89beeeea1bef7001196f97cf0028ece2dba3d45a606"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): presto-client/src/main/java/com/facebook/presto/client/OkHttpUtil.java:210-221 | presto-elasticsearch/src/main/java/com/facebook/presto/elasticsearch/client/ElasticsearchClient.java:313-325 \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 \u0060presto-client/src/main/java/com/facebook/presto/client/OkHttpUtil.java:210\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":"presto-client/src/main/java/com/facebook/presto/client/OkHttpUtil.java"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a87688c26d1075a78014eb8ea8aaf121f6714c696f129f7f911fc9c2873e42b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): presto-client/src/main/java/com/facebook/presto/client/OkHttpUtil.java:281-292 | presto-elasticsearch/src/main/java/com/facebook/presto/elasticsearch/client/ElasticsearchClient.java:358-369 \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 \u0060presto-client/src/main/java/com/facebook/presto/client/OkHttpUtil.java:281\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":"presto-client/src/main/java/com/facebook/presto/client/OkHttpUtil.java"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2b63b8c727d0f76cdf6697982bca3e25a18483f34e0964a13176905e25af118"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): presto-common/src/main/java/com/facebook/presto/common/type/UnscaledDecimal128Arithmetic.java:500-511 | presto-common/src/main/java/com/facebook/presto/common/type/UnscaledDecimal128Arithmetic.java:512-523 \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 \u0060presto-common/src/main/java/com/facebook/presto/common/type/UnscaledDecimal128Arithmetic.java:500\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":"presto-common/src/main/java/com/facebook/presto/common/type/UnscaledDecimal128Arithmetic.java"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"180b451e491fab9989367afb57e38aff7bbcfeaa86a4fbabfa778b28d67383ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 9): presto-analyzer/src/main/java/com/facebook/presto/sql/analyzer/Field.java:74-84 | presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/AggregationAnalyzer.java:169-179 | presto-main-base/src/main/java/com/facebook/presto/sql/gen/BytecodeGeneratorContext.java:49-59 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/QueryPlanner.java:209-219 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/SubqueryPlanner.java:109-119 | presto-parser/src/main/java/com/facebook/presto/sql/tree/FunctionCall.java:83-93 | presto-parser/src/main/java/com/facebook/presto/sql/tree/Query.java:64-74 | presto-parser/src/main/java/com/facebook/presto/sql/tree/QuerySpecification.java:79-89 | presto-cassandra/src/main/java/com/facebook/presto/cassandra/CassandraSplit.java:50-60 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 9 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 9 times. 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":"presto-analyzer/src/main/java/com/facebook/presto/sql/analyzer/Field.java"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b701b5e4ddc3907d571b0a082e0695d3b273d520e69c922d6bcf76539eaa3b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 5): presto-common/src/main/java/com/facebook/presto/common/block/SingleMapBlock.java:191-201 | presto-common/src/main/java/com/facebook/presto/common/block/SingleMapBlock.java:238-248 | presto-common/src/main/java/com/facebook/presto/common/block/SingleMapBlock.java:282-292 | presto-common/src/main/java/com/facebook/presto/common/block/SingleMapBlock.java:326-336 | presto-common/src/main/java/com/facebook/presto/common/block/SingleMapBlock.java:421-431 \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 \u0060presto-common/src/main/java/com/facebook/presto/common/block/SingleMapBlock.java:191\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":"presto-common/src/main/java/com/facebook/presto/common/block/SingleMapBlock.java"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d7dee4db4b0830966d207c3f6fd1e80dd35a166487b7abd6d5124d6092c9314"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): presto-common/src/main/java/com/facebook/presto/common/block/Int128ArrayBlock.java:74-84 | presto-common/src/main/java/com/facebook/presto/common/block/IntArrayBlock.java:68-78 | presto-common/src/main/java/com/facebook/presto/common/block/LongArrayBlock.java:69-79 | presto-common/src/main/java/com/facebook/presto/common/block/ShortArrayBlock.java:66-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 \u0060presto-common/src/main/java/com/facebook/presto/common/block/Int128ArrayBlock.java:74\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":"presto-common/src/main/java/com/facebook/presto/common/block/Int128ArrayBlock.java"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eaa8fa24b7b7881311618d7222a80a2c049b7e37ba630e64beea9d7f283742a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/BaseJdbcClient.java:173-183 | presto-mysql/src/main/java/com/facebook/presto/plugin/mysql/MySqlClient.java:119-129 | presto-singlestore/src/main/java/com/facebook/presto/plugin/singlestore/SingleStoreClient.java:88-98 \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 \u0060presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/BaseJdbcClient.java:173\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":"presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/BaseJdbcClient.java"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"c324cd5bb06e7ca3b44847ccbf669bd6787e59c86c3613fda13f6bbde903dd61"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): presto-accumulo/src/main/java/com/facebook/presto/accumulo/metadata/ZooKeeperMetadataManager.java:191-201 | presto-accumulo/src/main/java/com/facebook/presto/accumulo/metadata/ZooKeeperMetadataManager.java:222-232 \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 \u0060presto-accumulo/src/main/java/com/facebook/presto/accumulo/metadata/ZooKeeperMetadataManager.java:191\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":"presto-accumulo/src/main/java/com/facebook/presto/accumulo/metadata/ZooKeeperMetadataManager.java"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e690fa7725f16484638c6ae062dbc4b2aa69d7ed01728a4c26549c7ba249d8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/ExpressionAnalyzer.java:2024-2034 | presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/ExpressionAnalyzer.java:2127-2137 \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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/ExpressionAnalyzer.java"},"region":{"startLine":2024}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c149c140c39c9a1e5d837eec12d7ebf8f053953a23d84c95dfdc72e4c5e3e3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/gen/AndCodeGenerator.java:84-94 | presto-main-base/src/main/java/com/facebook/presto/sql/gen/OrCodeGenerator.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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/gen/AndCodeGenerator.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":"presto-main-base/src/main/java/com/facebook/presto/sql/gen/AndCodeGenerator.java"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"560e5cc7fb8d8aa3a19176dfd58349c44c1900b899afd519c88855fad1442453"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/gen/JoinCompiler.java:557-568 | presto-main-base/src/main/java/com/facebook/presto/sql/gen/JoinCompiler.java:719-729 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/gen/JoinCompiler.java:557\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":"presto-main-base/src/main/java/com/facebook/presto/sql/gen/JoinCompiler.java"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc7a722d812ca428183ce6231b02f9ab294b989084ddb5b59e6801b53341f1df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/gen/PageFunctionCompiler.java:410-420 | presto-main-base/src/main/java/com/facebook/presto/sql/gen/PageFunctionCompiler.java:742-752 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/gen/PageFunctionCompiler.java:410\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":"presto-main-base/src/main/java/com/facebook/presto/sql/gen/PageFunctionCompiler.java"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d2214692666f4a28c944970aa866a6f794cb633acb997b2a6f1ca08f8301307"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/EliminateCrossJoins.java:183-193 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/RelationPlanner.java:902-912 \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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/EliminateCrossJoins.java"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dd16e96e76145ee8333b5aa0307d06eff45fc1f70b9160ec20721f952d72ac1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/MultipleDistinctAggregationToMarkDistinct.java:161-172 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/SimplifyCountOverConstant.java:99-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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/MultipleDistinctAggregationToMarkDistinct.java"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"c36aaab95a98f81a10b1b2319f15687cc43886d34925e5c0dd46bba274987a04"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PlanRemoteProjections.java:402-413 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/RpcFunctionOptimizer.java:335-345 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PlanRemoteProjections.java:402\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PlanRemoteProjections.java"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3707a656eff193e0acf2f4abf48ebf75f7745ec75fea7a25b008a3ea78a31a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PushAggregationThroughOuterJoin.java:288-298 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/GroupInnerJoinsByConnectorRuleSet.java:394-404 \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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PushAggregationThroughOuterJoin.java"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"b30bc68c0284735a169806fdbec7d11b3da81ef960dcd35e8573981d9ae323bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PushDownFilterExpressionEvaluationThroughCrossJoin.java:157-167 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PushPartialAggregationThroughJoin.java:190-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PushDownFilterExpressionEvaluationThroughCrossJoin.java"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"21ad27aedac8676aa2a74f9aebc1355992ff8a432280389c60f2c20973da026f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/TransformDistinctInnerJoinToLeftEarlyOutJoin.java:148-158 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/TransformDistinctInnerJoinToRightEarlyOutJoin.java:133-143 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/TransformDistinctInnerJoinToLeftEarlyOutJoin.java:148\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/TransformDistinctInnerJoinToLeftEarlyOutJoin.java"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce8ce64758840689ecc5521703e0537606bf7cc2d87d99e9e481e9448139bd53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/AddExchanges.java:526-536 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/AddExchanges.java:555-565 \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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/AddExchanges.java"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"38b961c29ccc7fc2221d4dc610a6dec132fe69d07109178ffdfb8346741a7c37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/AddExchanges.java:681-691 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/AddExchanges.java:720-730 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/AddExchanges.java:681\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/AddExchanges.java"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"4809ec82ba8289ff271da9ccdb54c4e6f9fee1e282c78e147c1de204329811bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/AddExchanges.java:1041-1051 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/AddExchangesForSingleNodeExecution.java:151-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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/AddExchanges.java:1041\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/AddExchanges.java"},"region":{"startLine":1041}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e530e621f4bbff1b23fddd309050c14aa282675a010467123d48b12b634902a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/AddExchanges.java:1295-1305 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/AddExchanges.java:1338-1348 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/AddExchanges.java:1295\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/AddExchanges.java"},"region":{"startLine":1295}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6061cffe6dc1adec41083c4233514f6908b61bfc895e328e4bb33f9659443f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/ImplementIntersectAndExceptAsUnion.java:152-162 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/ImplementIntersectAndExceptAsUnion.java:178-188 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/ImplementIntersectAndExceptAsUnion.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/ImplementIntersectAndExceptAsUnion.java"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"d711094be7d24b06ff36e5e6e0335c771260dcad1c215172ba5943cc6c4a87e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/MergeJoinForSortedInputOptimizer.java:137-147 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/SortMergeJoinOptimizer.java:145-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/MergeJoinForSortedInputOptimizer.java:137\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/MergeJoinForSortedInputOptimizer.java"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"d70302751e58c63d68c7a07abef86e851908dfff70378427ec209d288c7474bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/OptimizeMixedDistinctAggregations.java:376-386 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/OptimizeMixedDistinctAggregations.java:394-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/OptimizeMixedDistinctAggregations.java"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"a72ca2e6e9090073a02eace35cd1c7dd781ae0d764fcac80bdf0502e8ffd6d50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/OptimizeTopNUsingRowId.java:187-197 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/OptimizeTopNUsingRowId.java:349-359 \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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/OptimizeTopNUsingRowId.java"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffb3ad007ca5474710d39fcf24b6d3a9214dae117ae142b46773a5643bcf3b3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PlanNodeDecorrelator.java:247-257 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PlanNodeDecorrelator.java:330-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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PlanNodeDecorrelator.java:247\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PlanNodeDecorrelator.java"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a8aec9f99ceb6476ac78653a63800a8575b1344dfd4da4961663c22e8889b0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PredicatePushDown.java:255-265 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PredicatePushDown.java:421-431 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PredicatePushDown.java:255\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PredicatePushDown.java"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"58f5fc93b896d5da1b97e58bcaed1517a5e287b2c7fbd18b9891a9e91e7cff82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PredicatePushDown.java:1738-1748 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/SetFlatteningOptimizer.java:149-159 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PredicatePushDown.java:1738\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PredicatePushDown.java"},"region":{"startLine":1738}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7f984968f0391b33519a800ffb4ef1ca29b8cfcb74b3fed10062bbf4a942661"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PropertyDerivations.java:547-557 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PropertyDerivations.java:673-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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PropertyDerivations.java:547\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PropertyDerivations.java"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef3e3641314f9844e9fda1357713f1c20825b1ae3a4cca6eac6159ef9d95c4be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PruneUnreferencedOutputs.java:856-866 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PruneUnreferencedOutputs.java:893-903 \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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PruneUnreferencedOutputs.java"},"region":{"startLine":856}}}],"partialFingerprints":{"codehealthFindingId/v1":"a30438cd94a49e250d5c5fb0762411172bcca8e0a7bb1faba941f150ec33322b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PushdownSubfields.java:382-392 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PushdownSubfields.java:438-448 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PushdownSubfields.java:382\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PushdownSubfields.java"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"00e5f6bf0cb801818ed26708b029e5bff75d738852a41c727ca0d52f2ed4d50a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PushdownSubfields.java:1128-1138 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PushdownSubfields.java:1146-1156 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PushdownSubfields.java:1128\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PushdownSubfields.java"},"region":{"startLine":1128}}}],"partialFingerprints":{"codehealthFindingId/v1":"b22dfe9be584844b56175fe759e6008b50a675ccc317111ad0c40055ac6a6de3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/planPrinter/HashCollisionPlanNodeStats.java:111-121 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/planPrinter/WindowPlanNodeStats.java:76-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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/planPrinter/HashCollisionPlanNodeStats.java"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"be0e9117a5548fbe882e9bc0d1d55d362c59c0633eee4cfe29da28b2cb150ec8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/ExpressionDomainTranslator.java:200-210 | presto-main-base/src/main/java/com/facebook/presto/sql/relational/RowExpressionDomainTranslator.java:239-249 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/ExpressionDomainTranslator.java:200\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/ExpressionDomainTranslator.java"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cb1605db4de98d2387a4574f82a03d5f76aba9fe2339345508f9d12ed1a94f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/ExpressionDomainTranslator.java:492-502 | presto-main-base/src/main/java/com/facebook/presto/sql/relational/RowExpressionDomainTranslator.java:686-696 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/ExpressionDomainTranslator.java:492\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/ExpressionDomainTranslator.java"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"d63f5d0959f3604580763ea5b9a2ba751ea1f9dc2f684110b452ed1d75db69e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/LogicalPlanner.java:913-923 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/LogicalPlanner.java:944-954 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/LogicalPlanner.java:913\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/LogicalPlanner.java"},"region":{"startLine":913}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b49db563fc8d76b633c2554a7a910f64579097241544b6ebb2037628d057f16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/LogicalPlanner.java:975-985 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/LogicalPlanner.java:1045-1055 \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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/LogicalPlanner.java"},"region":{"startLine":975}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe42299edcf1b3b6ffa87cdb336d97045baa90f44e9e4fedcb4571de180b01b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/optimization/ClickHouseFilterExpressionConverter.java:125-135 | presto-druid/src/main/java/com/facebook/presto/druid/DruidFilterExpressionConverter.java:125-135 \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 \u0060presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/optimization/ClickHouseFilterExpressionConverter.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/optimization/ClickHouseFilterExpressionConverter.java"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"d85caaeccb7a60eed073bece2def533d24a1348a40d352a22a4fb8c0620a8b3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/optimization/ClickHouseQueryGenerator.java:267-277 | presto-druid/src/main/java/com/facebook/presto/druid/DruidQueryGenerator.java:273-283 \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 \u0060presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/optimization/ClickHouseQueryGenerator.java:267\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":"presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/optimization/ClickHouseQueryGenerator.java"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bdfc80f1a85f36d4d102b489ac60ec90b91dd091abdf3ed03eb09ae91ce2435"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): presto-common/src/main/java/com/facebook/presto/common/block/AbstractArrayBlock.java:232-242 | presto-common/src/main/java/com/facebook/presto/common/block/AbstractMapBlock.java:334-344 \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 \u0060presto-common/src/main/java/com/facebook/presto/common/block/AbstractArrayBlock.java:232\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":"presto-common/src/main/java/com/facebook/presto/common/block/AbstractArrayBlock.java"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e3c4885105074449c8cb8350b817f4d715cabe2cff0caf3f75a2167bbca2896"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 5): presto-main-base/src/main/java/com/facebook/presto/sql/planner/CanonicalPlanGenerator.java:205-214 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/CanonicalPlanGenerator.java:578-587 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/CanonicalPlanGenerator.java:650-659 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/CanonicalPlanGenerator.java:681-690 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/CanonicalPlanGenerator.java:715-724 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/CanonicalPlanGenerator.java"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"31240a00d7981ff8a7549f91db44129fe319f058f2e01b084091e5023d5e6737"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/CoalesceCascadingProjections.java:235-244 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/InlineProjections.java:191-200 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/MergeFilterAndProjection.java:183-192 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/CoalesceCascadingProjections.java:235\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/CoalesceCascadingProjections.java"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"330e77e4cdc2e790b4a462113adc774f54e408fc27466e06ef5fe42834b0b676"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PushDownDereferences.java:217-226 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PushDownDereferences.java:380-389 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PushDownFilterExpressionEvaluationThroughCrossJoin.java:155-164 \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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PushDownDereferences.java"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"944f74163324c419d45ee45e7e2ff4d713596d32e06c931a5036f7456269c45c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/IterativeOptimizer.java:426-435 | presto-client/src/main/java/com/facebook/presto/client/StageStats.java:61-70 | presto-client/src/main/java/com/facebook/presto/client/StatementStats.java:80-89 \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. 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/IterativeOptimizer.java"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a842f039ec01146e40794f6737b120dbbd3a09760226f1dab36e21afd9d16fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): presto-plugin-toolkit/src/main/java/com/facebook/presto/plugin/base/security/SslContextProvider.java:266-277 | presto-client/src/main/java/com/facebook/presto/client/OkHttpUtil.java:252-262 | presto-elasticsearch/src/main/java/com/facebook/presto/elasticsearch/client/ElasticsearchClient.java:378-387 \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 \u0060presto-plugin-toolkit/src/main/java/com/facebook/presto/plugin/base/security/SslContextProvider.java:266\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":"presto-plugin-toolkit/src/main/java/com/facebook/presto/plugin/base/security/SslContextProvider.java"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aba33e81c45d7ff2bb98d904a6ccc03318ba2bf4a38e87f624993ff8aa46519"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): presto-common/src/main/java/com/facebook/presto/common/type/UnscaledDecimal128Arithmetic.java:568-577 | presto-common/src/main/java/com/facebook/presto/common/type/UnscaledDecimal128Arithmetic.java:583-592 | presto-common/src/main/java/com/facebook/presto/common/type/UnscaledDecimal128Arithmetic.java:598-607 \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 \u0060presto-common/src/main/java/com/facebook/presto/common/type/UnscaledDecimal128Arithmetic.java:568\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":"presto-common/src/main/java/com/facebook/presto/common/type/UnscaledDecimal128Arithmetic.java"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb68cd53523588d89cb37c7991db9e8bea78797430d7a843f80b23718b35f3af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/ExpressionAnalyzer.java:677-686 | presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/ExpressionAnalyzer.java:697-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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/ExpressionAnalyzer.java:677\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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/ExpressionAnalyzer.java"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"90e14f8acebd65cf22a82ece7461cba27583cf0d7777d3f1afd4f3c91bbfc26d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/gen/OrderingCompiler.java:154-163 | presto-main-base/src/main/java/com/facebook/presto/sql/gen/OrderingCompiler.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-main-base/src/main/java/com/facebook/presto/sql/gen/OrderingCompiler.java"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9c018142603f5ac8b9f7ad3921ff80cb0f038dcadfa6d5e67dc54ad0e79e12d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/gen/OrderingCompiler.java:190-199 | presto-main-base/src/main/java/com/facebook/presto/sql/gen/OrderingCompiler.java:284-293 \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":"presto-main-base/src/main/java/com/facebook/presto/sql/gen/OrderingCompiler.java"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e854b2f712b2d00dcc255fe77c2a8c3a2ec7c6a9db5066dbd269d7c1b929505"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/CombineApproxDistinctFunctions.java:278-287 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/CombineApproxPercentileFunctions.java:288-299 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/CombineApproxDistinctFunctions.java:278\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/CombineApproxDistinctFunctions.java"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b8ef9005fc332ae89e71034154ce42342702cfa58c8bde81e946693659d54c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/ImplementFilteredAggregations.java:137-146 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/RewriteAggregationIfToFilter.java:217-226 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/ImplementFilteredAggregations.java:137\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/ImplementFilteredAggregations.java"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bed5fc8dab4c506e8e8c0a1ae26a9582303951ab6bc0e2750318aa54f8fddd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PruneOrderByInAggregation.java:82-91 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/RowExpressionRewriteRuleSet.java:488-497 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PruneOrderByInAggregation.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. 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PruneOrderByInAggregation.java"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cb7ba38de4c8175f6b44d2354327109a8ffb7ff863b740d98cb39106c772e9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PushProjectionThroughCrossJoin.java:227-236 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PushProjectionThroughCrossJoin.java:248-257 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PushProjectionThroughCrossJoin.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PushProjectionThroughCrossJoin.java"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"938a0ffc67fde8ee36b79530b7ff06c31eb88760879abf5541b1ff844516a8c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PushSemiJoinThroughUnion.java:149-159 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PushSemiJoinThroughUnion.java:178-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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PushSemiJoinThroughUnion.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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PushSemiJoinThroughUnion.java"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf59bfd24a263cd48b353af1f80e20b122f1f19af7aef428c8414546262f6b92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/RemoveRedundantAggregateDistinct.java:79-88 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/SimplifyAggregationsOverConstant.java:155-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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/RemoveRedundantAggregateDistinct.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. 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/RemoveRedundantAggregateDistinct.java"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd3ad6fb3b66f710689120fb7673db3d87139d156c25684313032583654d2e84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/RemoveRedundantSortColumns.java:44-53 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/RemoveRedundantTopNColumns.java:44-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. 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/RemoveRedundantSortColumns.java"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"186b6f8707d695638898ea5d88ea49fdd64359c3a54360e396b803dd7008c9a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/RowExpressionRewriteRuleSet.java:589-598 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/ScaledWriterRule.java:68-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/RowExpressionRewriteRuleSet.java:589\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/RowExpressionRewriteRuleSet.java"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"39e6050208a1a9a306cbc440f6d255373794c8606b5baf01f6fe4b5961356df2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/TransformTableFunctionToTableFunctionProcessor.java:345-354 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/TransformTableFunctionToTableFunctionProcessor.java:355-364 \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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/TransformTableFunctionToTableFunctionProcessor.java"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ecdb24aeb9f8fa5467370bbc87fd2f92a53d2f2d2832cdb70b0b82fffc821be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/TransformTableFunctionToTableFunctionProcessor.java:438-447 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/TransformTableFunctionToTableFunctionProcessor.java:662-671 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/TransformTableFunctionToTableFunctionProcessor.java:438\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/TransformTableFunctionToTableFunctionProcessor.java"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"09221ce61c4aa5bb8466980b362dc345b59b040fb64f11c63a4fd43bc914c446"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/AddExchanges.java:1240-1249 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/AddExchanges.java:1360-1369 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/AddExchanges.java:1240\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/AddExchanges.java"},"region":{"startLine":1240}}}],"partialFingerprints":{"codehealthFindingId/v1":"50545e4645382a9c225cc85f6728e64c9ce815d4689710bac3b187f7464aec44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/HashGenerationOptimizer.java:243-252 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/HashGenerationOptimizer.java:267-276 \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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/HashGenerationOptimizer.java"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"906cbaecc12dcf01ed2e332796dbfd3a9b776d62a2c8363e3c24360b65372919"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/HashGenerationOptimizer.java:287-296 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/HashGenerationOptimizer.java:315-324 \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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/HashGenerationOptimizer.java"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6a67b0af03c7fb32f50b1ea7bba71934cfa2522e20d6c30911dca90e093acc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/IndexJoinOptimizer.java:195-204 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/IndexJoinOptimizer.java:208-217 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/IndexJoinOptimizer.java:195\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/IndexJoinOptimizer.java"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"a21af98417332a0b2a03c6a04f504390d59dd9c029a0028e2289d1620d324e39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/OptimizeRowInPredicate.java:284-293 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/OptimizeRowInPredicate.java:329-338 \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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/OptimizeRowInPredicate.java"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"07dfb91ee7a5eb197bdd1387dc359b6c12ce34a2968aa64a61ae3656454ee08b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/OptimizeTopNUsingRowId.java:225-234 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/OptimizeTopNUsingRowId.java:385-394 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/OptimizeTopNUsingRowId.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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/OptimizeTopNUsingRowId.java"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4db11fabd9454ccbcea8907ee006f7f76118b0968b67ab6735f02e1e301571c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PlanNodeDecorrelator.java:206-215 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/RelationPlanner.java:1395-1404 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PlanNodeDecorrelator.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PlanNodeDecorrelator.java"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"a214739a4d72b6d6d9a1ceca655d5371a9fdc0c60dda7871426b05b632acdd73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PredicatePushDown.java:1226-1236 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PredicatePushDown.java:1260-1269 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PredicatePushDown.java:1226\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PredicatePushDown.java"},"region":{"startLine":1226}}}],"partialFingerprints":{"codehealthFindingId/v1":"51145f3ed5bb28c2117eb1f3de8d03d51a49071fef2f7685a5205b2b84439fd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PropertyDerivations.java:1047-1056 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/StreamPropertyDerivations.java:339-349 \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. 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PropertyDerivations.java"},"region":{"startLine":1047}}}],"partialFingerprints":{"codehealthFindingId/v1":"cae8ddb1daf350758110dafa230ba9e59278f383bfd8b368141c988bd1623e4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PushdownSubfields.java:910-919 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PushdownSubfields.java:1070-1079 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PushdownSubfields.java:910\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PushdownSubfields.java"},"region":{"startLine":910}}}],"partialFingerprints":{"codehealthFindingId/v1":"c532a58ec949f87b3d743bfcc028e5ac2b1ac18f014759f83d80a395e0e85cd0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/planPrinter/WindowOperatorStats.java:139-148 | presto-client/src/main/java/com/facebook/presto/client/StatementStats.java:92-101 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/planPrinter/WindowOperatorStats.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/planPrinter/WindowOperatorStats.java"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b65ce25cc3bb8426d0f85292b59bd19d3933431f54cfd08b8e55f0414b159a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/LocalExecutionPlanner.java:2804-2813 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/LocalExecutionPlanner.java:2844-2854 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/LocalExecutionPlanner.java:2804\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/LocalExecutionPlanner.java"},"region":{"startLine":2804}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a4c7784befeebeb7f381564d9059b9ac39ae5fad511adb2d2eeda19d666a97d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/LocalExecutionPlanner.java:2822-2831 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/LocalExecutionPlanner.java:2906-2915 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/LocalExecutionPlanner.java:2822\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/LocalExecutionPlanner.java"},"region":{"startLine":2822}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f799e9597924c64aae2bac5a518bd1348470ec499f5089e3fecad9c4051bbd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/LogicalPlanner.java:636-645 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/LogicalPlanner.java:910-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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/LogicalPlanner.java:636\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/LogicalPlanner.java"},"region":{"startLine":636}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0e1cac0228c658e4b7a6b03903ebb859c06fa96ee1ce68de015d06ce1b89d3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/LogicalPlanner.java:1008-1017 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/LogicalPlanner.java:1073-1083 \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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/LogicalPlanner.java"},"region":{"startLine":1008}}}],"partialFingerprints":{"codehealthFindingId/v1":"c31293a967cad3cb949ca83795f2e8cdd8f74af29eb3a06bd5e7d1694f3cfa75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): presto-parser/src/main/java/com/facebook/presto/sql/tree/ExpressionTreeRewriter.java:1001-1010 | presto-expressions/src/main/java/com/facebook/presto/expressions/CanonicalRowExpressionRewriter.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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060presto-parser/src/main/java/com/facebook/presto/sql/tree/ExpressionTreeRewriter.java:1001\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":"presto-parser/src/main/java/com/facebook/presto/sql/tree/ExpressionTreeRewriter.java"},"region":{"startLine":1001}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff9661347978b807c51c468920b2c599d28bb8b183b239e682bfe81d5c5572bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): presto-parser/src/main/java/com/facebook/presto/sql/SqlFormatter.java:1035-1044 | presto-parser/src/main/java/com/facebook/presto/sql/SqlFormatter.java:1132-1141 \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 \u0060presto-parser/src/main/java/com/facebook/presto/sql/SqlFormatter.java:1035\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":"presto-parser/src/main/java/com/facebook/presto/sql/SqlFormatter.java"},"region":{"startLine":1035}}}],"partialFingerprints":{"codehealthFindingId/v1":"e216ade067d43bc4c65548a4d325c58eadfce4ed9c1cbc1f4518ca60ef6e68cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): presto-parser/src/main/java/com/facebook/presto/sql/TreePrinter.java:92-101 | presto-parser/src/main/java/com/facebook/presto/sql/TreePrinter.java:166-175 \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 \u0060presto-parser/src/main/java/com/facebook/presto/sql/TreePrinter.java:92\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":"presto-parser/src/main/java/com/facebook/presto/sql/TreePrinter.java"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"d12fb040d53a317a0f670c707b6550ca19a3259c95be95d855445fd16158584f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/optimization/JdbcFilterToSqlTranslator.java:118-127 | presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/optimization/ClickHouseFilterToSqlTranslator.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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/optimization/JdbcFilterToSqlTranslator.java:118\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":"presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/optimization/JdbcFilterToSqlTranslator.java"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca9d9bbcdd4207011ffca8e4467349ddab52be42a9210010340ed976264407b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/BaseJdbcClient.java:752-761 | presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/ClickHouseClient.java:670-679 \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 \u0060presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/BaseJdbcClient.java:752\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":"presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/BaseJdbcClient.java"},"region":{"startLine":752}}}],"partialFingerprints":{"codehealthFindingId/v1":"11f5c92dcffceed35ce64935ffe26a7b36a2cf9833d67b391100d70b24fcc163"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/QueryBuilder.java:292-301 | presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/QueryBuilder.java:306-315 \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 \u0060presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/QueryBuilder.java:292\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":"presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/QueryBuilder.java"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"97ec7f96c706c7bc2fe2d97e10f0206539f3f4972eed88f56dae291d4abef6b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/optimization/ClickHouseFilterExpressionConverter.java:156-165 | presto-druid/src/main/java/com/facebook/presto/druid/DruidFilterExpressionConverter.java:156-165 \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":"presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/optimization/ClickHouseFilterExpressionConverter.java"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a007310a83016895da9684ffd4407c07342eb20388799d42d8a962d3da1e5cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): presto-postgresql/src/main/java/com/facebook/presto/plugin/postgresql/PostgreSqlClient.java:189-198 | presto-redshift/src/main/java/com/facebook/presto/plugin/redshift/RedshiftClient.java:63-72 \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 \u0060presto-postgresql/src/main/java/com/facebook/presto/plugin/postgresql/PostgreSqlClient.java:189\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":"presto-postgresql/src/main/java/com/facebook/presto/plugin/postgresql/PostgreSqlClient.java"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac0889ee09900ef3ace9c6bd09e5872b52dcf7b7d61ff5e2fc1dbe3fd940a74e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): presto-cassandra/src/main/java/com/facebook/presto/cassandra/NativeCassandraSession.java:694-704 | presto-cassandra/src/main/java/com/facebook/presto/cassandra/NativeCassandraSession.java:706-715 \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 \u0060presto-cassandra/src/main/java/com/facebook/presto/cassandra/NativeCassandraSession.java:694\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":"presto-cassandra/src/main/java/com/facebook/presto/cassandra/NativeCassandraSession.java"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e119bf1c3546ec2a5a95aed1d4f7ca1169b32c2f5ee6d94bd9926365835cf3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): presto-common/src/main/java/com/facebook/presto/common/block/DictionaryBlock.java:284-294 | presto-common/src/main/java/com/facebook/presto/common/block/DictionaryBlock.java:353-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 \u0060presto-common/src/main/java/com/facebook/presto/common/block/DictionaryBlock.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. 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":"presto-common/src/main/java/com/facebook/presto/common/block/DictionaryBlock.java"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdb378f83ed02533d6fddf2e53dc87dec899e46ce6325c991466290ecee5b8be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): presto-common/src/main/java/com/facebook/presto/common/block/Int128ArrayBlock.java:218-227 | presto-common/src/main/java/com/facebook/presto/common/block/Int128ArrayBlockBuilder.java:298-307 \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 \u0060presto-common/src/main/java/com/facebook/presto/common/block/Int128ArrayBlock.java:218\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":"presto-common/src/main/java/com/facebook/presto/common/block/Int128ArrayBlock.java"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"388c7ae11620e837c99714fc6a3c9bbf60fa4b346becf7741f6b672799c34796"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): presto-common/src/main/java/com/facebook/presto/common/block/MapBlockEncoding.java:77-86 | presto-common/src/main/java/com/facebook/presto/common/block/SingleMapBlockEncoding.java:64-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 \u0060presto-common/src/main/java/com/facebook/presto/common/block/MapBlockEncoding.java:77\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":"presto-common/src/main/java/com/facebook/presto/common/block/MapBlockEncoding.java"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0b948c15b031610098a45314c0b4946ae85c095edbdf8044f6fc03d6887df2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): presto-druid/src/main/java/com/facebook/presto/druid/segment/ZipIndexFileSource.java:201-210 | presto-druid/src/main/java/com/facebook/presto/druid/zip/ZipFileData.java:270-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-druid/src/main/java/com/facebook/presto/druid/segment/ZipIndexFileSource.java"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"077a04ee8e410c09d589b755fa213db1725ccc131f21f2391884c4035fdf0040"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): presto-druid/src/main/java/com/facebook/presto/druid/segment/ZipIndexFileSource.java:263-272 | presto-druid/src/main/java/com/facebook/presto/druid/zip/ZipFileData.java:333-342 \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 \u0060presto-druid/src/main/java/com/facebook/presto/druid/segment/ZipIndexFileSource.java:263\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":"presto-druid/src/main/java/com/facebook/presto/druid/segment/ZipIndexFileSource.java"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ae7a90c6772a869837c6e9d75480d12d665678df656f2ac3d6367ecb134bf36"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/MetadataExtractor.java:212-221 | presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/MetadataExtractor.java:229-237 | presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/MetadataExtractor.java:244-252 | presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/MetadataExtractor.java:259-267 \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. 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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/MetadataExtractor.java"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"d989177830614fcb2d2a85e760832de43c0c29cee37d7aa93e562ac674bb7e01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): presto-common/src/main/java/com/facebook/presto/common/block/ByteArrayBlockBuilder.java:275-283 | presto-common/src/main/java/com/facebook/presto/common/block/IntArrayBlockBuilder.java:275-283 | presto-common/src/main/java/com/facebook/presto/common/block/LongArrayBlockBuilder.java:312-320 | presto-common/src/main/java/com/facebook/presto/common/block/ShortArrayBlockBuilder.java:275-283 \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":"presto-common/src/main/java/com/facebook/presto/common/block/ByteArrayBlockBuilder.java"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"a59fceac57a98ba041bf86693eca3635595845b9319b30ef72dfd7944ae8a230"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): presto-accumulo/src/main/java/com/facebook/presto/accumulo/AccumuloMetadata.java:355-363 | presto-delta/src/main/java/com/facebook/presto/delta/DeltaMetadata.java:335-343 | presto-example-http/src/main/java/com/facebook/presto/example/ExampleMetadata.java:161-169 \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 \u0060presto-accumulo/src/main/java/com/facebook/presto/accumulo/AccumuloMetadata.java:355\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":"presto-accumulo/src/main/java/com/facebook/presto/accumulo/AccumuloMetadata.java"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"59ccc559019949e6dd3d83596bb8f3d1bcbadbaedeca280c6eeb562f64913812"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): presto-analyzer/src/main/java/com/facebook/presto/sql/analyzer/MetadataHandle.java:73-81 | presto-analyzer/src/main/java/com/facebook/presto/sql/analyzer/MetadataHandle.java:89-97 | presto-analyzer/src/main/java/com/facebook/presto/sql/analyzer/MetadataHandle.java:105-113 \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 \u0060presto-analyzer/src/main/java/com/facebook/presto/sql/analyzer/MetadataHandle.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":"presto-analyzer/src/main/java/com/facebook/presto/sql/analyzer/MetadataHandle.java"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4d67ba65195fda0854226b6ccabbcd5308ca859e40c8d2cb3b691feab181cd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/AddExchanges.java:1195-1203 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/AddExchanges.java:1239-1247 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/AddExchanges.java:1359-1367 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/AddExchanges.java:1195\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/AddExchanges.java"},"region":{"startLine":1195}}}],"partialFingerprints":{"codehealthFindingId/v1":"f312a90f8b9fcede878c2547b8a9fab22379102c10bab0e83a83fde235a23259"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): presto-main-base/src/main/java/com/facebook/presto/sql/planner/planPrinter/PlanNodeStats.java:95-104 | presto-main-base/src/main/java/com/facebook/presto/sql/rewrite/DescribeInputRewrite.java:105-113 | presto-main-base/src/main/java/com/facebook/presto/sql/rewrite/DescribeOutputRewrite.java:103-111 \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. 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/planPrinter/PlanNodeStats.java"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ad49f26c21c23f4faf9d206b403160fef52f8e5e9c686741eaddb4b2640bbc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): presto-accumulo/src/main/java/com/facebook/presto/accumulo/AccumuloMetadata.java:398-407 | presto-example-http/src/main/java/com/facebook/presto/example/ExampleMetadata.java:179-187 \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 \u0060presto-accumulo/src/main/java/com/facebook/presto/accumulo/AccumuloMetadata.java:398\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":"presto-accumulo/src/main/java/com/facebook/presto/accumulo/AccumuloMetadata.java"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b20720825383c9e526df20d2d2108eb161fc033f03a4b59fc160df99b17310d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/AggregationAnalyzer.java:374-382 | presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/AggregationAnalyzer.java:388-396 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/AggregationAnalyzer.java:374\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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/AggregationAnalyzer.java"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"a573c05cfacfb18d81ae3bbffe56a455b856ee6e312d65c6b2cff7dbab1faef1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/MaterializedViewPlanValidator.java:92-100 | presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/MaterializedViewPlanValidator.java:123-131 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/MaterializedViewPlanValidator.java:92\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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/MaterializedViewPlanValidator.java"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"50dba96d9ebc0c81b71bbe940c6c316a43bac79538d846fa7ede022e6a912a77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java:2479-2487 | presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java:2619-2627 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java:2479\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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java"},"region":{"startLine":2479}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cd92266236137083c59534554995e3db73dafe8fba1577958b8fbc60e93e995"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java:2739-2747 | presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java:2845-2853 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java:2739\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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java"},"region":{"startLine":2739}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fe31c202d3ac9db203c3cbab6f78f68b1950195fde45e69a381e6b73d20bfdb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java:3727-3735 | presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java:4674-4683 \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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java"},"region":{"startLine":3727}}}],"partialFingerprints":{"codehealthFindingId/v1":"34c8d68de26f7789c2ba06396adbc6d5ccb0bfb46bb2f7f7767b99a63bc5df51"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java:4750-4758 | presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java:4762-4770 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java:4750\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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java"},"region":{"startLine":4750}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5f5ebf3bb32274dd56d0f3dfcf7218c4e668aaae459c15d2a0fef796750f275"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/gen/JoinCompiler.java:730-738 | presto-main-base/src/main/java/com/facebook/presto/sql/gen/JoinCompiler.java:796-804 \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":"presto-main-base/src/main/java/com/facebook/presto/sql/gen/JoinCompiler.java"},"region":{"startLine":730}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9d42625c0b482c027429bb8a62fbeb77a39d5cc99cf84f8bd133fe5f43adbdf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/gen/JoinFilterFunctionCompiler.java:188-196 | presto-main-base/src/main/java/com/facebook/presto/sql/gen/LambdaBytecodeGenerator.java:404-412 \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":"presto-main-base/src/main/java/com/facebook/presto/sql/gen/JoinFilterFunctionCompiler.java"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cee03036149d51c01376e88a79be0468c789da043efa4d46e943123749dc0d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/CombineApproxDistinctFunctions.java:215-223 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/CombineApproxPercentileFunctions.java:256-265 \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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/CombineApproxDistinctFunctions.java"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"f88271e01ddd2d965d6f55b02b75a30e9b7066b2c7cda0711fe7734922b04309"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/RowExpressionRewriteRuleSet.java:522-530 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/RowExpressionRewriteRuleSet.java:580-588 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/RowExpressionRewriteRuleSet.java:522\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/RowExpressionRewriteRuleSet.java"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b5b7ca240718b7610eee9f3708fd2e552c53bff79e39f60c411a6fa5cb0f512"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/MergeJoinForSortedInputOptimizer.java:124-132 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/SortMergeJoinOptimizer.java:128-136 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/MergeJoinForSortedInputOptimizer.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/MergeJoinForSortedInputOptimizer.java"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"461ce244e8ca2f64af97169fbd0d9650de65bbaa06a1075cf0c0968f0cf1e606"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PlanNodeSearcher.java:160-168 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PlanNodeSearcher.java:184-192 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PlanNodeSearcher.java:160\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PlanNodeSearcher.java"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ae4112ff9284edb3764d7bdd68dd2a8c6796ddc830019ca11cd2b04a7682726"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PropertyDerivations.java:874-882 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PropertyDerivations.java:889-897 \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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PropertyDerivations.java"},"region":{"startLine":874}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbd9a87fae64dac0a88fc420490032772b391fa07b174fc3c12180658b5e7c53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PushdownSubfields.java:407-415 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PushdownSubfields.java:463-471 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PushdownSubfields.java:407\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PushdownSubfields.java"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f2c870b52a38a35f036ff1e89476ba576b7337715bae03b86a2402e623446c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/sanity/ValidateDependenciesChecker.java:981-989 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/sanity/ValidateDependenciesChecker.java:1008-1016 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/sanity/ValidateDependenciesChecker.java:1008\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/sanity/ValidateDependenciesChecker.java"},"region":{"startLine":981}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9ec7f77e8de18dd25fd3a52cfc34c819e1660792b9aefa9bc0c4ceb4df60aca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/CanonicalPlanGenerator.java:784-792 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/CanonicalPlanGenerator.java:1016-1024 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/CanonicalPlanGenerator.java:784\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/CanonicalPlanGenerator.java"},"region":{"startLine":784}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6c3d5925e7af7f5ca31c33eab5f8d4c621f2be707389e3c2c847447bd4a0bf5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/ExpressionDomainTranslator.java:124-132 | presto-main-base/src/main/java/com/facebook/presto/sql/relational/RowExpressionDomainTranslator.java:147-155 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/ExpressionDomainTranslator.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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/ExpressionDomainTranslator.java"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"c039f19c47b62af3ef79ee558f704d747b1e773a9f1e7236b6f4fc7785b7dc9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/LocalExecutionPlanner.java:1050-1058 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/LocalExecutionPlanner.java:1094-1102 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/LocalExecutionPlanner.java:1050\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/LocalExecutionPlanner.java"},"region":{"startLine":1050}}}],"partialFingerprints":{"codehealthFindingId/v1":"281719d991023174e4c0ad062741bd0a74e46420863c20070a245fc752ead6da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/RelationPlanner.java:718-726 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/RelationPlanner.java:784-792 \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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/RelationPlanner.java"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8a0b60a65a99a355fc1dddc21f6ed0f68e2b1dd1c69d89ecc4057f9a2a8f59b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/relational/SqlToRowExpressionTranslator.java:549-558 | presto-main-base/src/main/java/com/facebook/presto/sql/relational/SqlToRowExpressionTranslator.java:589-597 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/relational/SqlToRowExpressionTranslator.java:549\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":"presto-main-base/src/main/java/com/facebook/presto/sql/relational/SqlToRowExpressionTranslator.java"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ed3c1120c1d9e34cdf7773203b44ed21a24eabc3fd8bd440893c34587e55799"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): presto-parser/src/main/java/com/facebook/presto/sql/parser/AstBuilder.java:1499-1507 | presto-parser/src/main/java/com/facebook/presto/sql/parser/AstBuilder.java:1520-1528 \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 \u0060presto-parser/src/main/java/com/facebook/presto/sql/parser/AstBuilder.java:1499\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":"presto-parser/src/main/java/com/facebook/presto/sql/parser/AstBuilder.java"},"region":{"startLine":1499}}}],"partialFingerprints":{"codehealthFindingId/v1":"e423bdc5e0a6199448d532732e24783ff41b1a2bcef168f3b4dd425dc3bdcc90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): presto-parser/src/main/java/com/facebook/presto/sql/tree/ExpressionTreeRewriter.java:130-138 | presto-parser/src/main/java/com/facebook/presto/sql/tree/ExpressionTreeRewriter.java:209-217 \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 \u0060presto-parser/src/main/java/com/facebook/presto/sql/tree/ExpressionTreeRewriter.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":"presto-parser/src/main/java/com/facebook/presto/sql/tree/ExpressionTreeRewriter.java"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"50ac7768b61650a50922b79780b3169fa9cfaaed5333cfd6282c30a9a78b12eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): presto-parser/src/main/java/com/facebook/presto/sql/tree/ExpressionTreeRewriter.java:150-158 | presto-parser/src/main/java/com/facebook/presto/sql/tree/ExpressionTreeRewriter.java:709-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 \u0060presto-parser/src/main/java/com/facebook/presto/sql/tree/ExpressionTreeRewriter.java:150\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":"presto-parser/src/main/java/com/facebook/presto/sql/tree/ExpressionTreeRewriter.java"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"4996cbb2a65b5c0cc29f2767677c6a7e146ac0eca046bd5a288fe23cb316cf88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): presto-parser/src/main/java/com/facebook/presto/sql/ExpressionFormatter.java:563-571 | presto-parser/src/main/java/com/facebook/presto/sql/ExpressionFormatter.java:583-591 \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 \u0060presto-parser/src/main/java/com/facebook/presto/sql/ExpressionFormatter.java:563\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":"presto-parser/src/main/java/com/facebook/presto/sql/ExpressionFormatter.java"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"2829e293e5971d8469b821941289bec4a6d6f0936700fe60d135e80a6dd4b221"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): presto-parser/src/main/java/com/facebook/presto/sql/SqlFormatter.java:409-417 | presto-parser/src/main/java/com/facebook/presto/sql/SqlFormatter.java:453-461 \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 \u0060presto-parser/src/main/java/com/facebook/presto/sql/SqlFormatter.java:409\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":"presto-parser/src/main/java/com/facebook/presto/sql/SqlFormatter.java"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fb45a863f73cd671a40b3beecaace5d9efa5181eba02ae8057486a034db315f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): presto-parser/src/main/java/com/facebook/presto/sql/SqlFormatter.java:657-665 | presto-parser/src/main/java/com/facebook/presto/sql/SqlFormatter.java:687-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 \u0060presto-parser/src/main/java/com/facebook/presto/sql/SqlFormatter.java:657\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":"presto-parser/src/main/java/com/facebook/presto/sql/SqlFormatter.java"},"region":{"startLine":657}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9187494782bf4e9b8c48d181579d8a950e2e9300c5d49b362db4fd46b876593"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): presto-parser/src/main/java/com/facebook/presto/sql/SqlFormatter.java:992-1000 | presto-parser/src/main/java/com/facebook/presto/sql/SqlFormatter.java:1159-1167 \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":"presto-parser/src/main/java/com/facebook/presto/sql/SqlFormatter.java"},"region":{"startLine":992}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ee2551ef80874b6414ab11282095f6fc89eff7b4c20eabe89ee9e56409674ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): presto-parser/src/main/java/com/facebook/presto/sql/SqlFormatter.java:1894-1902 | presto-parser/src/main/java/com/facebook/presto/sql/SqlFormatter.java:1942-1950 \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":"presto-parser/src/main/java/com/facebook/presto/sql/SqlFormatter.java"},"region":{"startLine":1894}}}],"partialFingerprints":{"codehealthFindingId/v1":"f555b9f5daaec8bf620a57673c935c55e07e75aa210e7fbc00392dc75c9748b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/mapping/StandardColumnMappings.java:383-391 | presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/mapping/StandardColumnMappings.java:437-445 \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 \u0060presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/mapping/StandardColumnMappings.java:383\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":"presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/mapping/StandardColumnMappings.java"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f5d2989a350b8f83d1eb385a8cc3cb7f00939c14e43c24261ee6c6d73f5b770"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/JdbcOutputTableHandle.java:52-60 | presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/ClickHouseOutputTableHandle.java:52-60 \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":"presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/JdbcOutputTableHandle.java"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"c628b4d3f22fe97c7301bb26e8abc8533aa9e573d3078741f233d208ccd83217"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/JdbcRecordCursor.java:77-85 | presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/ClickHouseRecordCursor.java:69-77 \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 \u0060presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/JdbcRecordCursor.java:77\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":"presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/JdbcRecordCursor.java"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"9caa01676805840b8125d412d7d21507da94ad67f529ab0ce5d7abe49f8639e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/RemoteTableNameCacheKey.java:45-53 | presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/RemoteTableNameCacheKey.java:45-53 \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":"presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/RemoteTableNameCacheKey.java"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d2f181b5c44b4849883c613cd2d6246ad8c6ed000048c8c4616f7744086d369"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/optimization/ClickHouseFilterExpressionConverter.java:219-227 | presto-druid/src/main/java/com/facebook/presto/druid/DruidFilterExpressionConverter.java:219-227 \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 \u0060presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/optimization/ClickHouseFilterExpressionConverter.java:219\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":"presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/optimization/ClickHouseFilterExpressionConverter.java"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"12184fa6dacafa82bd512cc8090a474429ac2e7c6c0fa5fb9c655dd6d797418c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/optimization/ClickHousePushdownUtils.java:72-80 | presto-druid/src/main/java/com/facebook/presto/druid/DruidPushdownUtils.java:92-101 \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 \u0060presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/optimization/ClickHousePushdownUtils.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":"presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/optimization/ClickHousePushdownUtils.java"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"15241328a81de52ad9ac3e8e35c17faadf8d28c2c8d9fcfb9155e401c82dd724"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/ClickHouseClient.java:392-400 | presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/ClickHouseClient.java:863-871 \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 \u0060presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/ClickHouseClient.java:392\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":"presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/ClickHouseClient.java"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"414883618b7bc4632299ef29f446593b13de29e2101c3c7223cd8b95a4f3b190"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/ClickHouseClient.java:737-745 | presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/ClickHouseClient.java:857-866 \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 \u0060presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/ClickHouseClient.java:737\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":"presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/ClickHouseClient.java"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e93c55f51ae0f3ff07ae0ccaaea797deda233d6d88f4f6db57253c056fa9ed7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): presto-mysql/src/main/java/com/facebook/presto/plugin/mysql/MySqlClient.java:250-258 | presto-singlestore/src/main/java/com/facebook/presto/plugin/singlestore/SingleStoreClient.java:180-188 \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":"presto-mysql/src/main/java/com/facebook/presto/plugin/mysql/MySqlClient.java"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0afbe4c674b91444968984ce8e82a3a15a07fc060ccff2c42fc679641a5ee54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): presto-bytecode/src/main/java/com/facebook/presto/bytecode/expression/ComparisonBytecodeExpression.java:175-183 | presto-bytecode/src/main/java/com/facebook/presto/bytecode/expression/ComparisonBytecodeExpression.java:211-219 \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 \u0060presto-bytecode/src/main/java/com/facebook/presto/bytecode/expression/ComparisonBytecodeExpression.java:175\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":"presto-bytecode/src/main/java/com/facebook/presto/bytecode/expression/ComparisonBytecodeExpression.java"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"449295f143d783e600bc52bf3575a977323993230cd60fd8c1dd5713e0cedf6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): presto-common/src/main/java/com/facebook/presto/common/block/AbstractRowBlock.java:161-169 | presto-common/src/main/java/com/facebook/presto/common/block/AbstractRowBlock.java:178-186 \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 \u0060presto-common/src/main/java/com/facebook/presto/common/block/AbstractRowBlock.java:161\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":"presto-common/src/main/java/com/facebook/presto/common/block/AbstractRowBlock.java"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"628768f55c09eba667babf707141fad78eec07cb8cf12223b089a58f6a7e7e2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): presto-common/src/main/java/com/facebook/presto/common/block/ColumnarArray.java:123-131 | presto-common/src/main/java/com/facebook/presto/common/block/ColumnarMap.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-common/src/main/java/com/facebook/presto/common/block/ColumnarArray.java"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c94e60dfc90aebaa43dcbadf66d5c446a7af392be38b969e8ccca0ca18c691b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): presto-common/src/main/java/com/facebook/presto/common/type/UnscaledDecimal128Arithmetic.java:377-385 | presto-common/src/main/java/com/facebook/presto/common/type/UnscaledDecimal128Arithmetic.java:415-423 \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":"presto-common/src/main/java/com/facebook/presto/common/type/UnscaledDecimal128Arithmetic.java"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"671f5e474104d4922ca7cbd3a37d93cebb4511c41b9767463a6a679254484a9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): presto-common/src/main/java/com/facebook/presto/common/type/UnscaledDecimal128Arithmetic.java:1235-1243 | presto-common/src/main/java/com/facebook/presto/common/type/UnscaledDecimal128Arithmetic.java:1247-1255 \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":"presto-common/src/main/java/com/facebook/presto/common/type/UnscaledDecimal128Arithmetic.java"},"region":{"startLine":1235}}}],"partialFingerprints":{"codehealthFindingId/v1":"69d1693b89bb04323d50eec25eb44bfa0c75fbfa1fb7dd320435a6955c4d204c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5): presto-common/src/main/java/com/facebook/presto/common/block/ByteArrayBlockEncoding.java:36-43 | presto-common/src/main/java/com/facebook/presto/common/block/Int128ArrayBlockEncoding.java:37-44 | presto-common/src/main/java/com/facebook/presto/common/block/IntArrayBlockEncoding.java:37-44 | presto-common/src/main/java/com/facebook/presto/common/block/LongArrayBlockEncoding.java:37-44 | presto-common/src/main/java/com/facebook/presto/common/block/ShortArrayBlockEncoding.java:37-44 \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 \u0060presto-common/src/main/java/com/facebook/presto/common/block/ByteArrayBlockEncoding.java:36\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":"presto-common/src/main/java/com/facebook/presto/common/block/ByteArrayBlockEncoding.java"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"d13a128cf5e989fee219936259f3661a60f2bdd507a95fdb1765c86438c42628"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): presto-common/src/main/java/com/facebook/presto/common/block/ByteArrayBlock.java:201-208 | presto-common/src/main/java/com/facebook/presto/common/block/IntArrayBlock.java:194-201 | presto-common/src/main/java/com/facebook/presto/common/block/LongArrayBlock.java:232-239 | presto-common/src/main/java/com/facebook/presto/common/block/ShortArrayBlock.java:192-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060presto-common/src/main/java/com/facebook/presto/common/block/ByteArrayBlock.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":"presto-common/src/main/java/com/facebook/presto/common/block/ByteArrayBlock.java"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"db0764cc9402ea61c6499ab0e0986c029eae1f8c13c15b540a595ce0e6c78618"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PredicatePushDown.java:1540-1547 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PredicatePushDown.java:1728-1735 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PredicatePushDown.java:1783-1790 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PredicatePushDown.java:1540\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PredicatePushDown.java"},"region":{"startLine":1540}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2cf6405df6280156e900d332c1bdf7cc9027c95204853e2a4d2d5a2e093d05c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/optimization/JdbcFilterToSqlTranslator.java:166-173 | presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/QueryBuilder.java:226-233 | presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/optimization/ClickHouseFilterToSqlTranslator.java:166-173 \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 \u0060presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/optimization/JdbcFilterToSqlTranslator.java:166\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":"presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/optimization/JdbcFilterToSqlTranslator.java"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"e80fd7c101aea8bb993e6bb4143a8123a58858e34e69e26e1714ae1d058d2755"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/BaseJdbcClient.java:504-511 | presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/BaseJdbcClient.java:554-561 | presto-oracle/src/main/java/com/facebook/presto/plugin/oracle/OracleClient.java:156-164 \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 \u0060presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/BaseJdbcClient.java:504\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":"presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/BaseJdbcClient.java"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb3a1a23dba22ac010bc705eb64e59f1f015697c8cedd661ea39a5152229402f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): presto-accumulo/src/main/java/com/facebook/presto/accumulo/serializers/LexicoderRowSerializer.java:110-117 | presto-accumulo/src/main/java/com/facebook/presto/accumulo/serializers/StringRowSerializer.java:82-89 \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":"presto-accumulo/src/main/java/com/facebook/presto/accumulo/serializers/LexicoderRowSerializer.java"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4562ed6019aa7cf6a3dc89db8e22b34d2a4cd313df71afd088b6e9bb3c44350"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/ExpressionAnalyzer.java:2149-2156 | presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/ExpressionAnalyzer.java:2172-2179 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/ExpressionAnalyzer.java:2149\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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/ExpressionAnalyzer.java"},"region":{"startLine":2149}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d7c4ff09aa75d37da86fa746425fe87d04e5887ab8a7bc9472f4da0477b880c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/QueryExplainer.java:137-144 | presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/QueryExplainer.java:162-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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/QueryExplainer.java:137\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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/QueryExplainer.java"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"30b81323666105966401dae9da0999344ba9198acdb6f360d347650eb2104424"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java:719-726 | presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java:3681-3688 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java:719\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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java"},"region":{"startLine":719}}}],"partialFingerprints":{"codehealthFindingId/v1":"f07580e93599d1ea6abbbd2abb5ae3ce87eb2726c5c9fecbd3edb28574ba5002"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java:3603-3610 | presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java:3685-3692 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java:3603\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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java"},"region":{"startLine":3603}}}],"partialFingerprints":{"codehealthFindingId/v1":"255cad0401f4e48d482842c1cd10824ef87b47c7ba4e68065a83849f00a487d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java:4799-4806 | presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java:4952-4959 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java:4799\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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java"},"region":{"startLine":4799}}}],"partialFingerprints":{"codehealthFindingId/v1":"178f70f8e7f09f4cfea0276dc299c7b962de21e65a03a03aad3b00fc41586b4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/gen/AndCodeGenerator.java:40-47 | presto-main-base/src/main/java/com/facebook/presto/sql/gen/OrCodeGenerator.java:40-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-main-base/src/main/java/com/facebook/presto/sql/gen/AndCodeGenerator.java"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e619d90128126d0561841e5c9dc0cdfc195848d53765f506b02b7c852844fa0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/CombineApproxDistinctFunctions.java:140-147 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/CombineApproxPercentileFunctions.java:174-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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/CombineApproxDistinctFunctions.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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/CombineApproxDistinctFunctions.java"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"178f9f3994934f2dbbee1ba04aacae9330dea7e494b6b86688625c96f85115ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/CombineApproxDistinctFunctions.java:299-306 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/MergeSumsToVectorSum.java:229-238 \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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/CombineApproxDistinctFunctions.java"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"aed39505df4fb4efebb64d2d54a0397ef5193953498503081f7d62c5ad442f8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/CrossJoinWithArrayContainsToInnerJoin.java:146-153 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/LeftJoinWithArrayContainsToEquiJoinCondition.java:134-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. 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/CrossJoinWithArrayContainsToInnerJoin.java"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb3987a82e20e532c523bf84aad77a2350e46f25b34468dbfe1572b03e9ed217"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/ExtractSpatialJoins.java:265-272 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/ExtractSpatialJoins.java:321-328 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/ExtractSpatialJoins.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/ExtractSpatialJoins.java"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"91273322176a5aacd604468faf66a00e5d3ec49f5516f91121c2afbff8918e2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/GatherAndMergeWindows.java:273-280 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/GatherAndMergeWindows.java:309-316 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/GatherAndMergeWindows.java:273\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/GatherAndMergeWindows.java"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"48d1b9a12ebdc385a732edf98443b41f9d0a5b3196dfd40bdc229b4f32743142"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PlanRemoteProjections.java:295-302 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PlanRemoteProjections.java:364-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PlanRemoteProjections.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PlanRemoteProjections.java"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b98ad4690cdc627c603cae9298b49df6e399172db3eea69f9a920a27cd9cd1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PushDownDereferences.java:206-213 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PushDownDereferences.java:369-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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PushDownDereferences.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PushDownDereferences.java"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"f402dda155a3285b665004c72ebcc886de6f802e01974d502b2f8514a86505ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PushPartialAggregationThroughExchange.java:236-243 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PruneUnreferencedOutputs.java:172-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PushPartialAggregationThroughExchange.java"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3187912d5258fce99ebdc65a2030886516ff2af331790f9debc444ac9a45d49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/TransformCorrelatedInPredicateToJoin.java:120-127 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/TransformUncorrelatedInPredicateSubqueryToDistinctInnerJoin.java:101-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/TransformCorrelatedInPredicateToJoin.java"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"d769fbe344c1c0e5e95a80a32a212ec11b572822e98cf338adf7719c70e297f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/TransformTableFunctionToTableFunctionProcessor.java:628-635 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/TransformTableFunctionToTableFunctionProcessor.java:791-798 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/TransformTableFunctionToTableFunctionProcessor.java:791\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/TransformTableFunctionToTableFunctionProcessor.java"},"region":{"startLine":628}}}],"partialFingerprints":{"codehealthFindingId/v1":"b48ed818cc17aa4bbd5f282ac0ff733087276fc7a95b6d1997cb9ac414bd202b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/TransformTableFunctionToTableFunctionProcessor.java:637-644 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/TransformTableFunctionToTableFunctionProcessor.java:805-812 \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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/TransformTableFunctionToTableFunctionProcessor.java"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cb53c68f2d248a239b362a544cae273a01de80bab6386d6267a64c393d7f530"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/AddExchanges.java:427-434 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/AddExchanges.java:668-675 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/AddExchanges.java:427\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/AddExchanges.java"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"674db5d5b929bb87da481336d1c4a32236d4688f295750eea1c9fbe706e0badf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/AddExchanges.java:1140-1147 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/AddExchanges.java:1175-1182 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/AddExchanges.java:1140\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/AddExchanges.java"},"region":{"startLine":1140}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dc07392ebb8a4335d10a853e9a5b936828fdf9c231d26cbc58ed963d97eb146"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/GroupInnerJoinsByConnectorRuleSet.java:300-307 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/EqualityInference.java:478-485 \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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/GroupInnerJoinsByConnectorRuleSet.java"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"c018baabf1f330c5ca405dbdcaadde11afe03b9728aee27ada3dceb9caec1d12"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PredicatePushDown.java:770-777 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PredicatePushDown.java:782-789 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PredicatePushDown.java:770\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PredicatePushDown.java"},"region":{"startLine":770}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1658063979713a2280f21a0ac336267f96e20cbf301c4b31a622814dfc17c67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/RpcFunctionOptimizer.java:531-538 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/RpcFunctionOptimizer.java:586-593 \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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/RpcFunctionOptimizer.java"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"68cf101aafb564d19e16526ce6a2baa1b3f417da3e7fc7efec465367d1ae05f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/sanity/ValidateDependenciesChecker.java:424-432 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/sanity/ValidateDependenciesChecker.java:442-449 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/sanity/ValidateDependenciesChecker.java:424\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/sanity/ValidateDependenciesChecker.java"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bc6b01c2c8f676cff6b6ab9a5ed75c5a3d8f726b416f4886dcc8e7ca34d3081"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/sanity/ValidateDependenciesChecker.java:569-576 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/sanity/ValidateDependenciesChecker.java:647-654 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/sanity/ValidateDependenciesChecker.java:569\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/sanity/ValidateDependenciesChecker.java"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e59e4f06e9b88d1e389b9565d00f49eaa027cbe456f30327064bba9f83bc6c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/ExpressionDomainTranslator.java:346-353 | presto-main-base/src/main/java/com/facebook/presto/sql/relational/RowExpressionDomainTranslator.java:796-803 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/ExpressionDomainTranslator.java:346\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/ExpressionDomainTranslator.java"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"3de83a2cfd1f9ab1e6d1097f57accc8e6af5b1beb24fe8d01b18ef34be685810"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/ExpressionDomainTranslator.java:559-566 | presto-main-base/src/main/java/com/facebook/presto/sql/relational/RowExpressionDomainTranslator.java:474-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. 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/ExpressionDomainTranslator.java"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"e52e95685ed42d81783d41751c710f9b7acfbfccf2eb2b604c5cc0b9b60f2716"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/InputExtractor.java:116-123 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/InputExtractor.java:140-147 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/InputExtractor.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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/InputExtractor.java"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f79fda8d4523a11be4cf6a9d28a0c79515e42bd45d85d4918cdf83604a9b586"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/LocalExecutionPlanner.java:2856-2863 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/LocalExecutionPlanner.java:2997-3004 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/LocalExecutionPlanner.java:2856\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/LocalExecutionPlanner.java"},"region":{"startLine":2856}}}],"partialFingerprints":{"codehealthFindingId/v1":"531be2da666809511a585e3fc59b1f561c282d147282d3571e039c245d065dc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/QueryPlanner.java:314-321 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/QueryPlanner.java:467-474 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/QueryPlanner.java:314\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/QueryPlanner.java"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"e581d110173728de6f8be802465af6e5c74d943fc045f9ec7d675f9c55c6a6aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/rewrite/ShowQueriesRewrite.java:506-513 | presto-main-base/src/main/java/com/facebook/presto/sql/rewrite/ShowQueriesRewrite.java:528-535 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/rewrite/ShowQueriesRewrite.java:506\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":"presto-main-base/src/main/java/com/facebook/presto/sql/rewrite/ShowQueriesRewrite.java"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"f26821ebcf73e22190c1a107947013df9d9ce99d4b22521df550b648f38ec089"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/rewrite/ShowQueriesRewrite.java:693-700 | presto-main-base/src/main/java/com/facebook/presto/sql/rewrite/ShowQueriesRewrite.java:794-801 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/rewrite/ShowQueriesRewrite.java:693\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":"presto-main-base/src/main/java/com/facebook/presto/sql/rewrite/ShowQueriesRewrite.java"},"region":{"startLine":693}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f42843477ece8481867136ce20db772ff761c9e5a9030e26a6f770a2c1bd8d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): presto-parser/src/main/java/com/facebook/presto/sql/parser/AstBuilder.java:1799-1806 | presto-parser/src/main/java/com/facebook/presto/sql/parser/AstBuilder.java:1819-1826 \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 \u0060presto-parser/src/main/java/com/facebook/presto/sql/parser/AstBuilder.java:1799\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":"presto-parser/src/main/java/com/facebook/presto/sql/parser/AstBuilder.java"},"region":{"startLine":1799}}}],"partialFingerprints":{"codehealthFindingId/v1":"4700d62f7968da03ed3eda11e4f3d9fb73e9619c46d71c6019b8f70c62dbe719"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): presto-parser/src/main/java/com/facebook/presto/sql/tree/CreateBranch.java:79-86 | presto-parser/src/main/java/com/facebook/presto/sql/tree/CreateTag.java:71-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":"presto-parser/src/main/java/com/facebook/presto/sql/tree/CreateBranch.java"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"1383869b5764908e91362fe7ac076fca58e2aa51a22d98c53b5e84209ad5de62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): presto-parser/src/main/java/com/facebook/presto/sql/tree/ExpressionTreeRewriter.java:273-280 | presto-parser/src/main/java/com/facebook/presto/sql/tree/ExpressionTreeRewriter.java:295-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 \u0060presto-parser/src/main/java/com/facebook/presto/sql/tree/ExpressionTreeRewriter.java:273\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":"presto-parser/src/main/java/com/facebook/presto/sql/tree/ExpressionTreeRewriter.java"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"542f86c60a13aaf632704db9d8e9f5ee0105702e7a7557c96a963b455efa9933"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): presto-parser/src/main/java/com/facebook/presto/sql/tree/ExpressionTreeRewriter.java:423-430 | presto-parser/src/main/java/com/facebook/presto/sql/tree/ExpressionTreeRewriter.java:450-457 \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 \u0060presto-parser/src/main/java/com/facebook/presto/sql/tree/ExpressionTreeRewriter.java:423\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":"presto-parser/src/main/java/com/facebook/presto/sql/tree/ExpressionTreeRewriter.java"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d3c82de92cde7b009f1c59c8e2f9383f4c952038349c8e2a22f86c24593be97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): presto-parser/src/main/java/com/facebook/presto/sql/SqlFormatter.java:814-821 | presto-parser/src/main/java/com/facebook/presto/sql/SqlFormatter.java:1247-1254 \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":"presto-parser/src/main/java/com/facebook/presto/sql/SqlFormatter.java"},"region":{"startLine":814}}}],"partialFingerprints":{"codehealthFindingId/v1":"b46fec2977fddecc0b5bfd1bc8b6809a8567967f50c6b4fcc42c3742a204670a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): presto-parser/src/main/java/com/facebook/presto/sql/SqlFormatter.java:1913-1920 | presto-parser/src/main/java/com/facebook/presto/sql/SqlFormatter.java:1961-1968 \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 \u0060presto-parser/src/main/java/com/facebook/presto/sql/SqlFormatter.java:1913\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":"presto-parser/src/main/java/com/facebook/presto/sql/SqlFormatter.java"},"region":{"startLine":1913}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ea5ebf41426ad8d249a4ce83517f306027e6f002961475a0958f89bece689a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/BaseJdbcClient.java:379-386 | presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/ClickHouseClient.java:581-588 \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":"presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/BaseJdbcClient.java"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f8d8eb8a2d2c84083b08fcdd685b5593c751c54a1dece9ea59e1186aa20a1f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/JdbcPageSink.java:90-97 | presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/ClickHousePageSink.java:101-108 \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 \u0060presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/JdbcPageSink.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":"presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/JdbcPageSink.java"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"af20d6c90a765fcf1949f925505cf2b8c36fdadd5475081987289abd50154a41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/JdbcRecordCursor.java:103-110 | presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/ClickHouseRecordCursor.java:90-97 \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 \u0060presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/JdbcRecordCursor.java:103\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":"presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/JdbcRecordCursor.java"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"77f639f21d7abe02f2eb61eb83577a31c76529656b45edf71925fc81f69b0d6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/QueryBuilder.java:121-128 | presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/QueryBuilder.java:143-150 \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":"presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/QueryBuilder.java"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4598e4ecd3e4f9f7af8ac30ce2df187357085689d3bb7410cfd972fe053dd82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/QueryBuilder.java:240-247 | presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/QueryBuilder.java:254-261 \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 \u0060presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/QueryBuilder.java:240\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":"presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/QueryBuilder.java"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"b71a45e04d6a5279807606ac0547bf0265757d30430d536a928af2a05d4dcb52"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/optimization/ClickHouseFilterExpressionConverter.java:112-119 | presto-druid/src/main/java/com/facebook/presto/druid/DruidFilterExpressionConverter.java:112-119 \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 \u0060presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/optimization/ClickHouseFilterExpressionConverter.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/optimization/ClickHouseFilterExpressionConverter.java"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"df360c719e1e35ce3990905a255301f89d37039f8ecb951ffb7f831a9e90f161"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/optimization/ClickHousePushdownUtils.java:106-114 | presto-druid/src/main/java/com/facebook/presto/druid/DruidPushdownUtils.java:171-178 \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 \u0060presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/optimization/ClickHousePushdownUtils.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":"presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/optimization/ClickHousePushdownUtils.java"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"36d76045992859530d63cc634a895e4c1abae240c5cb3d32d21f8581ca347bbe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/optimization/ClickHouseQueryGenerator.java:309-317 | presto-druid/src/main/java/com/facebook/presto/druid/DruidQueryGenerator.java:316-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 \u0060presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/optimization/ClickHouseQueryGenerator.java:309\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":"presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/optimization/ClickHouseQueryGenerator.java"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcb94bba2437c721cbeb1d14d8eeb8e70904c7921d7cffd01ff4a5654d7f2495"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/QueryBuilder.java:117-124 | presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/QueryBuilder.java:152-159 \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 \u0060presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/QueryBuilder.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":"presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/QueryBuilder.java"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d5d74d352173e02ab0b0e3991b735fcee785fe9cff7e5f4a38476c383503e9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): presto-mysql/src/main/java/com/facebook/presto/plugin/mysql/MySqlClient.java:264-271 | presto-singlestore/src/main/java/com/facebook/presto/plugin/singlestore/SingleStoreClient.java:195-202 \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 \u0060presto-mysql/src/main/java/com/facebook/presto/plugin/mysql/MySqlClient.java:264\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":"presto-mysql/src/main/java/com/facebook/presto/plugin/mysql/MySqlClient.java"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"b286cbc0b46f78dd68ad3b4db82b96963f9a6a1c8e34d7299e60b0214fb07770"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): presto-cli/src/main/java/com/facebook/presto/cli/StatusPrinter.java:229-236 | presto-cli/src/main/java/com/facebook/presto/cli/StatusPrinter.java:342-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060presto-cli/src/main/java/com/facebook/presto/cli/StatusPrinter.java:229\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":"presto-cli/src/main/java/com/facebook/presto/cli/StatusPrinter.java"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"109bd9f022b88114afc9c85bc0bf7d99899a3a437170b9303f3c506b6e2fb67a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): presto-client/src/main/java/com/facebook/presto/client/OkHttpUtil.java:228-235 | presto-elasticsearch/src/main/java/com/facebook/presto/elasticsearch/client/ElasticsearchClient.java:331-338 \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":"presto-client/src/main/java/com/facebook/presto/client/OkHttpUtil.java"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b7bc62bd041e4df46f8bd03a4f6f64d420ac957b4b8146902e88facfe177e31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): presto-common/src/main/java/com/facebook/presto/common/block/VariableWidthBlock.java:195-202 | presto-common/src/main/java/com/facebook/presto/common/block/VariableWidthBlockBuilder.java:174-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-common/src/main/java/com/facebook/presto/common/block/VariableWidthBlock.java"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"78c4502060ed31e8b5e99ac94c3b96fcb6ca49c7f2f17ca542508178d3c517c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java:515-521 | presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java:720-727 | presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java:3682-3689 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java:515\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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"e82b83412642b1f0a5498c2a09e2142a6d9daf8a17fcf945f8d53c5e52acab04"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java:2692-2698 | presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java:2736-2742 | presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java:2842-2848 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java:2692\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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java"},"region":{"startLine":2692}}}],"partialFingerprints":{"codehealthFindingId/v1":"b30294bcd15bd777c8738cb568aa1dfb2a9f9436de167b112b33ec138be70721"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java:3525-3532 | presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java:3726-3733 | presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java:3744-3750 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java:3525\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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java"},"region":{"startLine":3525}}}],"partialFingerprints":{"codehealthFindingId/v1":"b88707f8954bfdba39fdd6180d2d45482efbd94bccabc42c74318117824134a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): presto-main-base/src/main/java/com/facebook/presto/sql/planner/plan/ChildReplacer.java:31-37 | presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/optimization/ClickHouseComputePushdown.java:138-144 | presto-druid/src/main/java/com/facebook/presto/druid/DruidPlanOptimizer.java:101-107 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/plan/ChildReplacer.java:31\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/plan/ChildReplacer.java"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"dacc3506a64e014640e1a3bfb90e21714f97914b5cf1f19d357c9038603262ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/QueryBuilder.java:133-139 | presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/QueryBuilder.java:120-126 | presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/QueryBuilder.java:155-161 \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 \u0060presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/QueryBuilder.java:133\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":"presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/QueryBuilder.java"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"18054020d78d6ce6497ec18177592b3a34cca3e7c1c4eb2d8ebb5bc545b478c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): presto-accumulo/src/main/java/com/facebook/presto/accumulo/iterators/MaxByteArrayCombiner.java:35-41 | presto-accumulo/src/main/java/com/facebook/presto/accumulo/iterators/MinByteArrayCombiner.java:35-41 \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 \u0060presto-accumulo/src/main/java/com/facebook/presto/accumulo/iterators/MaxByteArrayCombiner.java:35\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":"presto-accumulo/src/main/java/com/facebook/presto/accumulo/iterators/MaxByteArrayCombiner.java"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fcf8faa41c0540fa7bbb1ad0b4538845b1e6d758fc9bb2684df104f8f5f7547"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): presto-accumulo/src/main/java/com/facebook/presto/accumulo/serializers/AccumuloRowSerializer.java:558-564 | presto-prometheus/src/main/java/com/facebook/presto/plugin/prometheus/PrometheusRecordCursor.java:101-107 \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 \u0060presto-accumulo/src/main/java/com/facebook/presto/accumulo/serializers/AccumuloRowSerializer.java:558\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":"presto-accumulo/src/main/java/com/facebook/presto/accumulo/serializers/AccumuloRowSerializer.java"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eab62238056101fec4b043235a8b9f0bd0a9d3c3e2351cc0eb0d09033db316b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/ExpressionAnalyzer.java:1007-1013 | presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/ExpressionAnalyzer.java:1039-1045 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/ExpressionAnalyzer.java:1007\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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/ExpressionAnalyzer.java"},"region":{"startLine":1007}}}],"partialFingerprints":{"codehealthFindingId/v1":"531b8ae1437a2081e115edb578e844d09f9d1b466a8d4838ecb8cc568d00357d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/gen/CursorProcessorCompiler.java:138-144 | presto-main-base/src/main/java/com/facebook/presto/sql/gen/PageFunctionCompiler.java:756-762 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/gen/CursorProcessorCompiler.java:138\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":"presto-main-base/src/main/java/com/facebook/presto/sql/gen/CursorProcessorCompiler.java"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4313152a02c445395114051b780e9a9bd644207a26cf7213e4138d37e08e6b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/gen/PageFunctionCompiler.java:891-897 | presto-main-base/src/main/java/com/facebook/presto/sql/gen/RowExpressionPredicateCompiler.java:217-223 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/gen/PageFunctionCompiler.java:891\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":"presto-main-base/src/main/java/com/facebook/presto/sql/gen/PageFunctionCompiler.java"},"region":{"startLine":891}}}],"partialFingerprints":{"codehealthFindingId/v1":"31b86367a63cf5dd8f96896a7120cb1de8dfa1b09488e7def7384cd7600c9394"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/AddDistinctForSemiJoinBuild.java:106-112 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/RewriteBucketedSemiJoinToJoin.java:256-265 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/AddDistinctForSemiJoinBuild.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. 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/AddDistinctForSemiJoinBuild.java"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef4f7693d05de0369a29672cd89b0c68bb0d18877202a512d90c490daf1592eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/CoalesceCascadingProjections.java:203-209 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/InlineProjections.java:162-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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/CoalesceCascadingProjections.java:203\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/CoalesceCascadingProjections.java"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"34e6e201ccdeb49c0b9ef98acf203267f06a515c664967726e5f514fc7ab8fdc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/CombineApproxPercentileFunctions.java:307-313 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/MergeSumsToVectorSum.java:223-232 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/CombineApproxPercentileFunctions.java:307\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/CombineApproxPercentileFunctions.java"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"11e9189a6649fecbcaaedec9330708a3266fd4c7ab4443a4149155ed1348d1b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PlanRemoteProjections.java:389-395 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/RpcFunctionOptimizer.java:320-326 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PlanRemoteProjections.java:389\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PlanRemoteProjections.java"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"58827e5c0d044f2d6d2f0cbddabf4e151fdcd46fe341d8324e5fc892dfa58a4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PullConstantProjectionAboveExchange.java:197-203 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PushProjectionThroughExchange.java:159-165 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PullConstantProjectionAboveExchange.java:197\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PullConstantProjectionAboveExchange.java"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fe3ba6f5057559bb189a009b9db98be7d71b5dcbd7d5e7492dd2f0d23f00cad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/RowExpressionRewriteRuleSet.java:479-486 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/RowExpressionRewriteRuleSet.java:550-556 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/RowExpressionRewriteRuleSet.java:479\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/RowExpressionRewriteRuleSet.java"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"5704ec55ab24f28b52a40845d4ace19cef5bfffd9bf97bdf830a6c7b8876355f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/MergeJoinForSortedInputOptimizer.java:162-168 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/SortMergeJoinOptimizer.java:171-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. 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/MergeJoinForSortedInputOptimizer.java"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"1df7dca4389ee5a1f518a7a705fc05ae1f46cb514c775e13e65b6ece6e6ccc22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PredicatePushDown.java:1039-1045 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PredicatePushDown.java:1192-1198 \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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PredicatePushDown.java"},"region":{"startLine":1039}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9cbd3a15fedef8838f4f71c816ac830673010a3851df660513ad4bba9620e24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PropertyDerivations.java:411-417 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PropertyDerivations.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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PropertyDerivations.java:411\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PropertyDerivations.java"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"05f227523278870fd9b5ae49debdb4af17a76cdc010896e646d2eae8358a4512"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PropertyDerivations.java:539-545 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PropertyDerivations.java:664-670 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PropertyDerivations.java:539\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PropertyDerivations.java"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b6af167c7fcf30c5ea470bbfb4ed907e5d22f069f2c40f811634989a89a3008"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PropertyDerivations.java:1122-1128 | presto-common/src/main/java/com/facebook/presto/common/predicate/TupleDomain.java:98-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PropertyDerivations.java:1122\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PropertyDerivations.java"},"region":{"startLine":1122}}}],"partialFingerprints":{"codehealthFindingId/v1":"960dc6ad8af9fbfd2ac92c8730dc52471729a46f82638e5701c4e6151d927b0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PruneUnreferencedOutputs.java:1064-1070 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PruneUnreferencedOutputs.java:1103-1109 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PruneUnreferencedOutputs.java:1064\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PruneUnreferencedOutputs.java"},"region":{"startLine":1064}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dae53893af75c754c3b845c913d2a81dcafaef35c305ac5fdf27a0cf13f879e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PushdownSubfields.java:583-589 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PushdownSubfields.java:605-612 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PushdownSubfields.java:583\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PushdownSubfields.java"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"08229d2e3f27afc31a90a707c0ead5dcec100c1a68c0c12b966661a105f3bf1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/SymbolMapper.java:297-303 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/SymbolMapper.java:324-330 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/SymbolMapper.java:297\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/SymbolMapper.java"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"e121b2ad60d10a91cbbdb7bf4a287e36663bea53181bc46a3f950f574305ec6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/ExpressionDomainTranslator.java:529-535 | presto-main-base/src/main/java/com/facebook/presto/sql/relational/RowExpressionDomainTranslator.java:604-610 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/ExpressionDomainTranslator.java:529\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/ExpressionDomainTranslator.java"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"f920052af79f8863c5931c002912fc8121e52cdfda8227b7492fde18a32b7825"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/ExpressionDomainTranslator.java:541-547 | presto-main-base/src/main/java/com/facebook/presto/sql/relational/RowExpressionDomainTranslator.java:616-622 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/ExpressionDomainTranslator.java:541\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/ExpressionDomainTranslator.java"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f3574eadba9695d9520cf65ade0cf22945777f4ed8b7b167cb35a391ac8afd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/ExpressionInterpreter.java:334-340 | presto-main-base/src/main/java/com/facebook/presto/sql/relational/SqlToRowExpressionTranslator.java:782-788 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/ExpressionInterpreter.java:334\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/ExpressionInterpreter.java"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5e9c1e6377bc6792d46f0805ea01cf6286fb07c45a46e9d1ef2db06b879e5a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/ExpressionInterpreter.java:998-1004 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/RowExpressionInterpreter.java:324-330 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/ExpressionInterpreter.java:998\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/ExpressionInterpreter.java"},"region":{"startLine":998}}}],"partialFingerprints":{"codehealthFindingId/v1":"154d2642f0a15c2e46418d76ff46d1b1a1b9985914f173b5dc4f23ae27013f97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/ExpressionInterpreter.java:1220-1226 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/RowExpressionInterpreter.java:489-495 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/ExpressionInterpreter.java:1220\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/ExpressionInterpreter.java"},"region":{"startLine":1220}}}],"partialFingerprints":{"codehealthFindingId/v1":"f38f66c31a416d5c434133eafe65598b025b9df26e8f35abc24ec96826ec103f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/LocalExecutionPlanner.java:2008-2014 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/LocalExecutionPlanner.java:2297-2303 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/LocalExecutionPlanner.java:2008\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/LocalExecutionPlanner.java"},"region":{"startLine":2008}}}],"partialFingerprints":{"codehealthFindingId/v1":"d058b532aa77b60778b0ce4fa7301780d16b2a4060675b23f4038311bd552154"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/QueryPlanner.java:323-330 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/QueryPlanner.java:476-482 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/QueryPlanner.java:323\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/QueryPlanner.java"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"b53300000c112c24dc2d000a950d7f4c4259739d4e10c4eac74455869be3d38d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/RelationPlanner.java:869-875 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/RelationPlanner.java:882-888 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/RelationPlanner.java:869\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/RelationPlanner.java"},"region":{"startLine":869}}}],"partialFingerprints":{"codehealthFindingId/v1":"20f6a48a6becfccfe3b21db47655bb26d26f8d5a04bf500de4d9afc73e49066c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/SubqueryPlanner.java:361-367 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/SubqueryPlanner.java:374-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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/SubqueryPlanner.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. 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/SubqueryPlanner.java"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc9e2ee5370b759a0f523b1a21260b48bac832d1164cd8acf4fd204abe6548c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/relational/SqlFunctionUtils.java:132-138 | presto-main-base/src/main/java/com/facebook/presto/sql/relational/SqlFunctionUtils.java:188-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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/relational/SqlFunctionUtils.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. 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":"presto-main-base/src/main/java/com/facebook/presto/sql/relational/SqlFunctionUtils.java"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"75bfe3ab7d23fb8e915c88ab89abb3a682fb7f4e373ec20fd40947166b57a24e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): presto-parser/src/main/java/com/facebook/presto/sql/SqlFormatter.java:1734-1740 | presto-parser/src/main/java/com/facebook/presto/sql/SqlFormatter.java:1757-1763 \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":"presto-parser/src/main/java/com/facebook/presto/sql/SqlFormatter.java"},"region":{"startLine":1734}}}],"partialFingerprints":{"codehealthFindingId/v1":"609e80b3f9c61cbc990bdc98044de22efd8a33ed45914e9a0736276674eda1b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/BaseJdbcClient.java:574-580 | presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/BaseJdbcClient.java:589-595 \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 \u0060presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/BaseJdbcClient.java:574\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":"presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/BaseJdbcClient.java"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc10437e937c176fc414ef2ae8cf43176fbb2228c166f8d220ba5df226169b88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/DriverConnectionFactory.java:47-53 | presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/DriverConnectionFactory.java:48-54 \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":"presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/DriverConnectionFactory.java"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec38b9a120b2e6acc9a626fa85f1f52b57376915b8a6854a7dae6a1bf5136f28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/JdbcConnectorFactory.java:66-72 | presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/ClickHouseConnectorFactory.java:63-69 \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 \u0060presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/JdbcConnectorFactory.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":"presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/JdbcConnectorFactory.java"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"122fc0af52d136bcf53945e49c12d039790463567ba0313d01bb090e00c7efbe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/optimization/ClickHouseComputePushdown.java:195-201 | presto-druid/src/main/java/com/facebook/presto/druid/DruidPlanOptimizer.java:166-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 \u0060presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/optimization/ClickHouseComputePushdown.java:195\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":"presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/optimization/ClickHouseComputePushdown.java"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ea1dc296140bfc68258dbf35a4699363212c4ed4e9b56708530569f58b8abb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/optimization/ClickHouseFilterExpressionConverter.java:92-98 | presto-druid/src/main/java/com/facebook/presto/druid/DruidFilterExpressionConverter.java:92-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 \u0060presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/optimization/ClickHouseFilterExpressionConverter.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. 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":"presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/optimization/ClickHouseFilterExpressionConverter.java"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"eecd6093c7b16f6029675f684d87c885ec278999889a545691282770dda80804"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/optimization/ClickHousePushdownUtils.java:63-69 | presto-druid/src/main/java/com/facebook/presto/druid/DruidPushdownUtils.java:70-76 \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 \u0060presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/optimization/ClickHousePushdownUtils.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":"presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/optimization/ClickHousePushdownUtils.java"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a2f66c3119aed48ba48aeebef4670b9688334826c888ea52fc26ef07c3bdb6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/optimization/ClickHouseQueryGenerator.java:293-299 | presto-druid/src/main/java/com/facebook/presto/druid/DruidQueryGenerator.java:300-306 \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 \u0060presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/optimization/ClickHouseQueryGenerator.java:293\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":"presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/optimization/ClickHouseQueryGenerator.java"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aeeab50ad0213d3b37b7f0a08d4f530a388ec0d393e9818fc16cbfdcef876a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/ClickHouseClient.java:526-532 | presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/ClickHouseClient.java:571-577 \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 \u0060presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/ClickHouseClient.java:526\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":"presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/ClickHouseClient.java"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"90210d8a1eca913729664f32b0497798ed6a7dcbee5ed2d0f685a908c8183791"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): presto-mysql/src/main/java/com/facebook/presto/plugin/mysql/MySqlClient.java:158-164 | presto-singlestore/src/main/java/com/facebook/presto/plugin/singlestore/SingleStoreClient.java:116-122 \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":"presto-mysql/src/main/java/com/facebook/presto/plugin/mysql/MySqlClient.java"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0cd0b0223342615481069c5f2a16a7930ecbc9965e8d877ae9e1dae2240a9f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): presto-cassandra/src/main/java/com/facebook/presto/cassandra/CassandraInsertTableHandle.java:44-50 | presto-cassandra/src/main/java/com/facebook/presto/cassandra/CassandraOutputTableHandle.java:44-50 \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":"presto-cassandra/src/main/java/com/facebook/presto/cassandra/CassandraInsertTableHandle.java"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7222256e2a880610898ee5e0c6bf14a9fc1728e485967f429409dd61e432e77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): presto-cassandra/src/main/java/com/facebook/presto/cassandra/NativeCassandraSession.java:210-216 | presto-cassandra/src/main/java/com/facebook/presto/cassandra/NativeCassandraSession.java:222-228 \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 \u0060presto-cassandra/src/main/java/com/facebook/presto/cassandra/NativeCassandraSession.java:210\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":"presto-cassandra/src/main/java/com/facebook/presto/cassandra/NativeCassandraSession.java"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"c831f3e427ee41864410edc3697dea78aac9d15c6d04a7c3fc6c88f550a47d93"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): presto-cli/src/main/java/com/facebook/presto/cli/StatusPrinter.java:216-222 | presto-cli/src/main/java/com/facebook/presto/cli/StatusPrinter.java:329-335 \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":"presto-cli/src/main/java/com/facebook/presto/cli/StatusPrinter.java"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"a097e77eb2144ba3ff2f3f9c12b95cfdc8a2add19db6368108a150994a5d4185"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): presto-client/src/main/java/com/facebook/presto/client/ClientSession.java:133-139 | presto-client/src/main/java/com/facebook/presto/client/ClientSession.java:141-147 \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 \u0060presto-client/src/main/java/com/facebook/presto/client/ClientSession.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-client/src/main/java/com/facebook/presto/client/ClientSession.java"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"033664426c359f253fc3a533ad2733399113c03ae047c8c05416b92fb214de4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): presto-client/src/main/java/com/facebook/presto/client/FixJsonDataUtils.java:114-121 | presto-client/src/main/java/com/facebook/presto/client/FixJsonDataUtils.java:155-161 \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 \u0060presto-client/src/main/java/com/facebook/presto/client/FixJsonDataUtils.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-client/src/main/java/com/facebook/presto/client/FixJsonDataUtils.java"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d299e2cbcf3171bc45f27cc021fc176183081ef483160b6638f79d8b26dd779"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): presto-common/src/main/java/com/facebook/presto/common/block/ColumnarArray.java:71-77 | presto-common/src/main/java/com/facebook/presto/common/block/ColumnarMap.java:76-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 \u0060presto-common/src/main/java/com/facebook/presto/common/block/ColumnarArray.java:71\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":"presto-common/src/main/java/com/facebook/presto/common/block/ColumnarArray.java"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"328d06f9161bc8cae6c512370e7565cf7392735469e4759123c1cd1219800d80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): presto-common/src/main/java/com/facebook/presto/common/block/RowBlock.java:210-216 | presto-common/src/main/java/com/facebook/presto/common/block/RowBlock.java:223-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 \u0060presto-common/src/main/java/com/facebook/presto/common/block/RowBlock.java:210\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":"presto-common/src/main/java/com/facebook/presto/common/block/RowBlock.java"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2d19953f9d26a7ac4b45ce0a9571601260d413fc5b7c08d05ba4d7b4a643127"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): presto-common/src/main/java/com/facebook/presto/common/predicate/TupleDomainFilter.java:831-837 | presto-common/src/main/java/com/facebook/presto/common/predicate/TupleDomainFilter.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. 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":"presto-common/src/main/java/com/facebook/presto/common/predicate/TupleDomainFilter.java"},"region":{"startLine":831}}}],"partialFingerprints":{"codehealthFindingId/v1":"db40742d68893915628bd71ab64ff57e0c6e02fc9e62c3626596b374226bea29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): presto-common/src/main/java/com/facebook/presto/common/type/encoding/Base32.java:451-457 | presto-common/src/main/java/com/facebook/presto/common/type/encoding/Base32.java:461-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. 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":"presto-common/src/main/java/com/facebook/presto/common/type/encoding/Base32.java"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"2505f4eaf0ca1496bbf1d6c9c0f7d1618a08606940c435415ec788b8326f9df7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 23): presto-accumulo/src/main/java/com/facebook/presto/accumulo/index/ColumnCardinalityCache.java:247-252 | presto-accumulo/src/main/java/com/facebook/presto/accumulo/model/AccumuloSplit.java:63-68 | presto-accumulo/src/main/java/com/facebook/presto/accumulo/AccumuloConnector.java:71-76 | presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/Analyzer.java:97-102 | presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/QueryExplainer.java:114-119 | presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java:445-450 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/materializedview/IncrementalRefreshRule.java:362-367 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PayloadJoinOptimizer.java:185-190 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/planPrinter/PlanNodeStats.java:88-94 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/planPrinter/PlanRepresentation.java:52-57 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/BasePlanFragmenter.java:129-134 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/LocalExecutionPlanner.java:442-447 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/RelationPlanner.java:173-178 | presto-main-base/src/main/java/com/facebook/presto/sql/rewrite/ShowQueriesRewrite.java:210-215 | presto-main-base/src/main/java/com/facebook/presto/sql/rewrite/ShowStatsRewrite.java:141-146 | presto-main-base/src/main/java/com/facebook/presto/sql/Optimizer.java:91-96 | presto-atop/src/main/java/com/facebook/presto/atop/AtopPageSource.java:52-57 | presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/JdbcConnector.java:89-94 | presto-bigquery/src/main/java/com/facebook/presto/plugin/bigquery/BigQueryTableHandle.java:53-58 | presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/ClickHouseConnector.java:91-96 | presto-cassandra/src/main/java/com/facebook/presto/cassandra/CassandraConnector.java:70-75 | presto-delta/src/main/java/com/facebook/presto/delta/DeltaConnector.java:64-69 | presto-druid/src/main/java/com/facebook/presto/druid/metadata/DruidSegmentInfo.java:84-89 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 23 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 23 times. 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":"presto-accumulo/src/main/java/com/facebook/presto/accumulo/index/ColumnCardinalityCache.java"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"49a59060bec107b468aa18b9c99b34f07af92e4840756556a340fd7ed9be8caf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 21): presto-accumulo/src/main/java/com/facebook/presto/accumulo/AccumuloConnector.java:72-77 | presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/Analyzer.java:98-103 | presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/ExpressionAnalyzer.java:272-277 | presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/QueryExplainer.java:115-120 | presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java:446-451 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/materializedview/IncrementalRefreshRule.java:363-368 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/planPrinter/JsonRenderer.java:115-120 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/planPrinter/NodeRepresentation.java:64-69 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/planPrinter/PlanNodeStats.java:90-95 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/planPrinter/PlanRepresentation.java:53-58 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/BasePlanFragmenter.java:130-135 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/LocalExecutionPlanner.java:443-448 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/RelationPlanner.java:174-179 | presto-main-base/src/main/java/com/facebook/presto/sql/rewrite/ShowQueriesRewrite.java:211-216 | presto-main-base/src/main/java/com/facebook/presto/sql/rewrite/ShowStatsRewrite.java:142-147 | presto-main-base/src/main/java/com/facebook/presto/sql/Optimizer.java:92-97 | presto-atop/src/main/java/com/facebook/presto/atop/AtopPageSource.java:53-58 | presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/JdbcConnector.java:90-95 | presto-bigquery/src/main/java/com/facebook/presto/plugin/bigquery/BigQueryTableHandle.java:54-59 | presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/ClickHouseConnector.java:92-97 | presto-delta/src/main/java/com/facebook/presto/delta/DeltaConnector.java:65-70 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 21 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 21 times. 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":"presto-accumulo/src/main/java/com/facebook/presto/accumulo/AccumuloConnector.java"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"396df587713db0e96acfa2caccd6942025e0ec15aface56f9bfd101aa8cd3601"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): presto-accumulo/src/main/java/com/facebook/presto/accumulo/model/AccumuloSplit.java:63-68 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/plan/MergeProcessorNode.java:72-77 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/planPrinter/NodeRepresentation.java:68-73 | presto-atop/src/main/java/com/facebook/presto/atop/AtopPageSource.java:53-58 \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":"presto-accumulo/src/main/java/com/facebook/presto/accumulo/model/AccumuloSplit.java"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fe05b30e0d6be63359a64d8eaf4d84d02431adb15e0a093211f45fe7506513f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PredicatePushDown.java:209-214 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/RpcFunctionOptimizer.java:143-148 | presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/JdbcColumnHandle.java:48-53 \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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PredicatePushDown.java"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"e506d058ddabc253904fc4e10fbc444a104aff3d64b0f7f1a6a29dcd81f49d32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PredicatePushDown.java:296-302 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PredicatePushDown.java:384-390 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PredicatePushDown.java:401-406 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PredicatePushDown.java:296\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PredicatePushDown.java"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a849e7acba3c9368c2424332fecd205eb8cf5d5bf58470d7a704eecf352effd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): presto-main-base/src/main/java/com/facebook/presto/sql/planner/planPrinter/JsonRenderer.java:113-118 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/planPrinter/NodeRepresentation.java:62-67 | presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/ClickHouseTypeHandle.java:44-49 \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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/planPrinter/JsonRenderer.java"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"3be6b01892c6470535a0d06402c4d7b34f05bb088d65165044e9c1d7878d073c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): presto-main-base/src/main/java/com/facebook/presto/sql/planner/GroupedExecutionTagger.java:289-294 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/GroupedExecutionTagger.java:300-305 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/GroupedExecutionTagger.java:311-316 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/GroupedExecutionTagger.java:289\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/GroupedExecutionTagger.java"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"893c3b8dbc1009df697ab57dcfdc77749c55035f437372cbdcb55adb83a2cd24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): presto-main-base/src/main/java/com/facebook/presto/sql/planner/SplitSourceFactory.java:184-189 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/SplitSourceFactory.java:195-200 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/SplitSourceFactory.java:217-222 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/SplitSourceFactory.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. 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/SplitSourceFactory.java"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"42433a546381b5fee3a45f5923ec5a877e80c780e3d42bf499998bc9ce6cda38"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/BaseJdbcClient.java:645-650 | presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/ClickHouseClient.java:331-336 | presto-postgresql/src/main/java/com/facebook/presto/plugin/postgresql/PostgreSqlClient.java:110-115 \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 \u0060presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/BaseJdbcClient.java:645\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":"presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/BaseJdbcClient.java"},"region":{"startLine":645}}}],"partialFingerprints":{"codehealthFindingId/v1":"400959e36e1812f77afb898e446032b132d4632d8bacd2d2a1042cfbb5ec3c0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): presto-common/src/main/java/com/facebook/presto/common/block/ByteArrayBlock.java:300-305 | presto-common/src/main/java/com/facebook/presto/common/block/LongArrayBlock.java:331-336 | presto-common/src/main/java/com/facebook/presto/common/block/ShortArrayBlock.java:290-295 \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 \u0060presto-common/src/main/java/com/facebook/presto/common/block/ByteArrayBlock.java:300\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":"presto-common/src/main/java/com/facebook/presto/common/block/ByteArrayBlock.java"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec9d06b9017f6d8fcc30eeede9b2bd66c2dcb02daa346b2547f76422aeb506b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/ExpressionAnalyzer.java:271-276 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/plan/MergeProcessorNode.java:72-77 \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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/ExpressionAnalyzer.java"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"f657d24a4264f4aaf4cd99558af5cabbe1104a0b6d1155422280c5704899698e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/ExpressionAnalyzer.java:1000-1005 | presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/ExpressionAnalyzer.java:1029-1034 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/ExpressionAnalyzer.java:1000\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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/ExpressionAnalyzer.java"},"region":{"startLine":1000}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cc3cd6cedee35d9aa1dbd3a0e47c41df309f06afb488c40c6241887b2073b8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/MaterializedViewQueryOptimizer.java:151-156 | presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java:446-451 \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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/MaterializedViewQueryOptimizer.java"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"00f4c10dd2c601ab09dfa273f6f60a86c0fab1ee1ab81a263e2e9df20cac3e7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/MetadataExtractor.java:193-198 | presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/MetadataExtractor.java:228-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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/MetadataExtractor.java:193\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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/MetadataExtractor.java"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b71985c88d42f85a9edf4a1a33ae4019b67e3dbf4d7635430f58a604f99fb5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java:4003-4008 | presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java:4011-4016 \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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java"},"region":{"startLine":4003}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6dc8bec628abe15025a564cf649993bee01dc8daa17d21d53066d9a14e64c03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/gen/CommonSubExpressionRewriter.java:286-291 | presto-main-base/src/main/java/com/facebook/presto/sql/gen/CommonSubExpressionRewriter.java:323-328 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/gen/CommonSubExpressionRewriter.java:286\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":"presto-main-base/src/main/java/com/facebook/presto/sql/gen/CommonSubExpressionRewriter.java"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"dab5315b08aa1f96b5a3eb2a23190a0e6902008e5e9b2573fe27366d5d3eeb45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/gen/CursorProcessorCompiler.java:403-408 | presto-main-base/src/main/java/com/facebook/presto/sql/gen/PageFunctionCompiler.java:551-556 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/gen/CursorProcessorCompiler.java:403\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":"presto-main-base/src/main/java/com/facebook/presto/sql/gen/CursorProcessorCompiler.java"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"113c1743dfab7f82c49f3eb4e18b39f4f947bff32dfba2276529699d97e8d12b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/gen/JoinCompiler.java:435-440 | presto-main-base/src/main/java/com/facebook/presto/sql/gen/JoinCompiler.java:469-474 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/gen/JoinCompiler.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. 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":"presto-main-base/src/main/java/com/facebook/presto/sql/gen/JoinCompiler.java"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"252848fc0331b3f4dcdad948f28486797a398d6205c9f51ce2b4230cf320fd7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/gen/JoinCompiler.java:505-510 | presto-main-base/src/main/java/com/facebook/presto/sql/gen/JoinFilterFunctionCompiler.java:216-222 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/gen/JoinCompiler.java:505\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":"presto-main-base/src/main/java/com/facebook/presto/sql/gen/JoinCompiler.java"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"931d911c34db450ad7e628add8259bf6e0a537c7d0fe95f8c61b8e8537494523"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/gen/JoinCompiler.java:715-720 | presto-main-base/src/main/java/com/facebook/presto/sql/gen/JoinCompiler.java:773-778 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/gen/JoinCompiler.java:715\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":"presto-main-base/src/main/java/com/facebook/presto/sql/gen/JoinCompiler.java"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1cde7652c2e23e69ef6c8c8def1a1c4d74eee1f697b056b83a21641b538837d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/properties/LogicalPropertiesProviderImpl.java:185-190 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/properties/LogicalPropertiesProviderImpl.java:314-319 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/properties/LogicalPropertiesProviderImpl.java:185\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/properties/LogicalPropertiesProviderImpl.java"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"fce1af1240e80603b54e8aad2907db1f21a38c0611a902251b92ff047a706c45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/properties/LogicalPropertiesProviderImpl.java:275-280 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/properties/LogicalPropertiesProviderImpl.java:292-297 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/properties/LogicalPropertiesProviderImpl.java:275\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/properties/LogicalPropertiesProviderImpl.java"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"feaaa98dc876c72fa6a5ea36171dc113277b691e0b68a5689790c21de5d1034b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/CollapseFanoutJoinWithArrayAggUnnest.java:408-413 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PushAggregationThroughDisjointUnion.java:115-120 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/CollapseFanoutJoinWithArrayAggUnnest.java:408\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/CollapseFanoutJoinWithArrayAggUnnest.java"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"16ff7926c14903b395dc3ce65a382a4ea6084cdde7c82f8138ca1af7333a52ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/CombineApproxDistinctFunctions.java:112-117 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/CombineApproxPercentileFunctions.java:124-130 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/CombineApproxDistinctFunctions.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/CombineApproxDistinctFunctions.java"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"17332d43709c6b26de7150b2cbc9744e3262705e3c412b8a2285c44a29380d89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/CombineApproxDistinctFunctions.java:247-252 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/CombineApproxPercentileFunctions.java:277-283 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/CombineApproxDistinctFunctions.java:247\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/CombineApproxDistinctFunctions.java"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"79570627a55908598a4d13a9860388137051907c6ef8d35b5b9a7edcfab6c03b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/CrossJoinWithArrayContainsToInnerJoin.java:118-123 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/CrossJoinWithArrayNotContainsToAntiJoin.java:134-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/CrossJoinWithArrayContainsToInnerJoin.java:118\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/CrossJoinWithArrayContainsToInnerJoin.java"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d9fc92ab118b87a3be6c72c3a51c67b66cdb68fa48f5f29240a8bff09e60605"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/DetermineJoinDistributionType.java:162-167 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/DetermineSemiJoinDistributionType.java:134-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/DetermineJoinDistributionType.java:162\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/DetermineJoinDistributionType.java"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"73b407654e8c987801275448dcc915f69c18f7d87cc88d77ed902a9dc7571af9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/ExtractSpatialJoins.java:360-365 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/ExtractSpatialJoins.java:379-384 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/ExtractSpatialJoins.java:360\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/ExtractSpatialJoins.java"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5a0669f2bab925a9f3d76fe8390073ca5118c42ec317348af7e34baca08699d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/MergeSumsToVectorSum.java:247-252 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/MergeSumsToVectorSum.java:258-263 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/MergeSumsToVectorSum.java:247\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/MergeSumsToVectorSum.java"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0d3fc8b0eafb95033d846012fff43f579c9a1b8a3c1147ca98b14d4c9fe39a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PlanRemoteProjections.java:281-286 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PlanRemoteProjections.java:352-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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PlanRemoteProjections.java:281\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PlanRemoteProjections.java"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"b98041b17dd8c61452cdf0a7cc996c7fd178f6d358c4a11310fe0fdf7cda56e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PushAggregationThroughDisjointUnion.java:139-144 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PushSemiJoinThroughUnion.java:115-120 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PushAggregationThroughDisjointUnion.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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PushAggregationThroughDisjointUnion.java"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb3bb23d106ca7fc45a8e8bedac0a5d8f9b3c80a26909126a07b7f76039d1e18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PushFilterThroughSelectingAggregation.java:133-138 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PushProjectionThroughCrossJoin.java:118-124 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PushFilterThroughSelectingAggregation.java:133\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PushFilterThroughSelectingAggregation.java"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea0d01149e2284a3584c8446e697c9e47fa8a86e7f14f255cfd5c020c4c7ea10"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/TransformTableFunctionToTableFunctionProcessor.java:209-214 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/TransformTableFunctionToTableFunctionProcessor.java:218-223 \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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/TransformTableFunctionToTableFunctionProcessor.java"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"31e5e9b298948637ad231a35867e39a25546a450ccc1ea898d8e8b9070ca9492"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/ActualProperties.java:260-265 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/StreamPropertyDerivations.java:424-429 \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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/ActualProperties.java"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"be7422208c351fe04a9d2aad4077ccb1e534630fe1a06aed26f01f76454758d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/IndexJoinOptimizer.java:537-542 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/WindowFilterPushDown.java:72-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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/IndexJoinOptimizer.java"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd7c37eceb55b692735aa1b902399d0c0e33bb84fb25b11bd895e2d6b699bf69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/JoinPrefilter.java:107-113 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/OptimizeTopNUsingRowId.java:116-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. 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/JoinPrefilter.java"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"51ea72b7b1054109119ea5baa0ba39a247892dbf9f6c623a28c7b38213697e63"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PropertyDerivations.java:142-147 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/StreamPropertyDerivations.java:150-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. 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PropertyDerivations.java"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"452094815cc5bd4856bd544df722a03cd64acd9ddf965900f0612907944e36b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PropertyDerivations.java:511-516 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PropertyDerivations.java:648-653 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PropertyDerivations.java:511\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PropertyDerivations.java"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1643684a7b9d3362339b06d742bcf041f02862a417e050f6a65a82b7d76d736"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PruneUnreferencedOutputs.java:458-463 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/sanity/ValidateDependenciesChecker.java:316-321 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PruneUnreferencedOutputs.java:458\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PruneUnreferencedOutputs.java"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0a5f0d0d182970043f3adb772cb0c5e078d7d6662eb71b52afc921c6432e692"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/plan/MergeProcessorNode.java:70-76 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/plan/TableWriterMergeNode.java:64-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/plan/MergeProcessorNode.java"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"671ae6df0159d2f213d9729a17df9c0b03e8861afcfb9ca658e35d5b49937691"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/ExpressionDomainTranslator.java:179-184 | presto-main-base/src/main/java/com/facebook/presto/sql/relational/RowExpressionDomainTranslator.java:218-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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/ExpressionDomainTranslator.java"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"d43f1e088bb7152e30bd0a5b3d002b65aab54171a8cba3da7214f326e47f53f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/ExpressionDomainTranslator.java:515-520 | presto-main-base/src/main/java/com/facebook/presto/sql/relational/RowExpressionDomainTranslator.java:590-595 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/ExpressionDomainTranslator.java:515\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/ExpressionDomainTranslator.java"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"58014437085272bf5ac39f92de7243c4a8d48fb72808315571b61f535bf6b000"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/LocalExecutionPlanner.java:2338-2343 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/LocalExecutionPlanner.java:2467-2472 \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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/LocalExecutionPlanner.java"},"region":{"startLine":2338}}}],"partialFingerprints":{"codehealthFindingId/v1":"884b22ab6618266d06a5b7bc738b4073c6b14bfc8b7441842e3deebbd982d957"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/QueryPlanner.java:360-365 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/QueryPlanner.java:511-516 \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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/QueryPlanner.java"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ea751aaf65b78f2f47c96f2f2c1baf839a9876021a8f5a9123a2465637d86c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/QueryPlanner.java:1838-1844 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/QueryPlanner.java:1885-1890 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/QueryPlanner.java:1838\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/QueryPlanner.java"},"region":{"startLine":1838}}}],"partialFingerprints":{"codehealthFindingId/v1":"92f9a617ff1548534848162787f8aaed44be184b332e56c03d43fa164443143a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/relational/SqlToRowExpressionTranslator.java:944-949 | presto-main-base/src/main/java/com/facebook/presto/sql/relational/SqlToRowExpressionTranslator.java:952-957 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/relational/SqlToRowExpressionTranslator.java:944\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":"presto-main-base/src/main/java/com/facebook/presto/sql/relational/SqlToRowExpressionTranslator.java"},"region":{"startLine":944}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e67bcb90b0cc5234bc5b4d58eb4b61f5e96a27f7f1d2037e552317889d333bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/rewrite/ShowQueriesRewrite.java:376-384 | presto-main-base/src/main/java/com/facebook/presto/sql/rewrite/ShowQueriesRewrite.java:399-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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/rewrite/ShowQueriesRewrite.java:376\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":"presto-main-base/src/main/java/com/facebook/presto/sql/rewrite/ShowQueriesRewrite.java"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"12a2ae0db4323eb1f9722db7699a1dc5799ed5806f3cb00e602efd74796ede05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): presto-parser/src/main/java/com/facebook/presto/sql/parser/AstBuilder.java:677-682 | presto-parser/src/main/java/com/facebook/presto/sql/parser/AstBuilder.java:716-721 \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":"presto-parser/src/main/java/com/facebook/presto/sql/parser/AstBuilder.java"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"733eb7d0e271bc4d2909a6120e075f187b04cd8959701d99abb51e852af85e73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): presto-parser/src/main/java/com/facebook/presto/sql/parser/AstBuilder.java:2279-2284 | presto-parser/src/main/java/com/facebook/presto/sql/parser/AstBuilder.java:2300-2305 \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 \u0060presto-parser/src/main/java/com/facebook/presto/sql/parser/AstBuilder.java:2279\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":"presto-parser/src/main/java/com/facebook/presto/sql/parser/AstBuilder.java"},"region":{"startLine":2279}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a042ff8abb5a38ca39e16ec240574c9186a4efee8b44ccf8e3baf7519833ab0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/TemporaryTableUtil.java:207-212 | presto-main-base/src/main/java/com/facebook/presto/sql/TemporaryTableUtil.java:295-300 \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":"presto-main-base/src/main/java/com/facebook/presto/sql/TemporaryTableUtil.java"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"d34acb153c743341da5a63e38e5db6317baaad47c900c56f30849a6c1b0f0c78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/BaseJdbcClient.java:523-528 | presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/BaseJdbcClient.java:549-554 \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 \u0060presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/BaseJdbcClient.java:523\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":"presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/BaseJdbcClient.java"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a4bfd6cee9348f1bb2c2f1160641158ce887b0387fd1d45c6a2489ff57242b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/BaseJdbcClient.java:844-849 | presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/ClickHouseClient.java:365-370 \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 \u0060presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/BaseJdbcClient.java:844\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":"presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/BaseJdbcClient.java"},"region":{"startLine":844}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca001c4697cfa4649a7381b419379a2e595a22ac833bd7bbad887fee05fba9c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/BaseJdbcClient.java:855-860 | presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/ClickHouseClient.java:344-349 \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 \u0060presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/BaseJdbcClient.java:855\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":"presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/BaseJdbcClient.java"},"region":{"startLine":855}}}],"partialFingerprints":{"codehealthFindingId/v1":"34e891c5849636cf5a37e9f8b304fe12a824633eabb8db7290617f29982f0f33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/DriverConnectionFactory.java:59-64 | presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/DriverConnectionFactory.java:65-70 \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":"presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/DriverConnectionFactory.java"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"051f01703090854a5ea30567abf1ea14260c05a7df292a45237a80d8926de0d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): presto-bigquery/src/main/java/com/facebook/presto/plugin/bigquery/BigQueryMetadata.java:215-220 | presto-cassandra/src/main/java/com/facebook/presto/cassandra/CassandraMetadata.java:177-182 \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 \u0060presto-bigquery/src/main/java/com/facebook/presto/plugin/bigquery/BigQueryMetadata.java:215\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":"presto-bigquery/src/main/java/com/facebook/presto/plugin/bigquery/BigQueryMetadata.java"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8e9fce0091ccef05105e6e56de4ad65d0bae4ba60e5e4d96f79cb8fac395632"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): presto-blackhole/src/main/java/com/facebook/presto/plugin/blackhole/BlackHoleMetadata.java:107-112 | presto-memory/src/main/java/com/facebook/presto/plugin/memory/MemoryMetadata.java:186-191 \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 \u0060presto-blackhole/src/main/java/com/facebook/presto/plugin/blackhole/BlackHoleMetadata.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. 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":"presto-blackhole/src/main/java/com/facebook/presto/plugin/blackhole/BlackHoleMetadata.java"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fc9666aa7230e3e143b26b22f1be2106cf1fe92aaf2079fd8d37bd4311a1f4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/optimization/ClickHouseFilterExpressionConverter.java:141-146 | presto-druid/src/main/java/com/facebook/presto/druid/DruidFilterExpressionConverter.java:141-146 \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":"presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/optimization/ClickHouseFilterExpressionConverter.java"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"241d54133eb55c207be879759bedef46056e779c7104670ca338aca426d8812e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/optimization/ClickHouseProjectExpressionConverter.java:91-96 | presto-druid/src/main/java/com/facebook/presto/druid/DruidProjectExpressionConverter.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/optimization/ClickHouseProjectExpressionConverter.java"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"9399dcb63baa06f109997dc11a10299126e13c6fa7e1e26e7188dce67d88b136"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/optimization/ClickHouseQueryGenerator.java:327-332 | presto-druid/src/main/java/com/facebook/presto/druid/DruidQueryGenerator.java:333-338 \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 \u0060presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/optimization/ClickHouseQueryGenerator.java:327\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":"presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/optimization/ClickHouseQueryGenerator.java"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc713107808f8372f54c9bf6eb89cf0e1a794c34c9d1647e1f42ebad2f45f1a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/optimization/ClickHouseQueryGenerator.java:339-344 | presto-druid/src/main/java/com/facebook/presto/druid/DruidQueryGenerator.java:345-350 \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 \u0060presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/optimization/ClickHouseQueryGenerator.java:339\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":"presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/optimization/ClickHouseQueryGenerator.java"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"49a6cde9494669afadd44a068583afb2dfe5001a5334566e69c49dd9e3d9bcdc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/optimization/ClickHouseQueryGeneratorContext.java:107-112 | presto-druid/src/main/java/com/facebook/presto/druid/DruidQueryGeneratorContext.java:102-107 \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":"presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/optimization/ClickHouseQueryGeneratorContext.java"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb9b67602b1b84f0c91b709ea821db98bd9c042e920913700e1fcc60ef1a9e4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/optimization/ClickHouseQueryGeneratorContext.java:178-183 | presto-druid/src/main/java/com/facebook/presto/druid/DruidQueryGeneratorContext.java:174-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 \u0060presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/optimization/ClickHouseQueryGeneratorContext.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":"presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/optimization/ClickHouseQueryGeneratorContext.java"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"9455409994b3648d3e73c639973656e03345cf2212a0939eeb55f6283a1ed873"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): presto-openlineage-event-listener/src/main/java/com/facebook/presto/plugin/openlineage/OpenLineageEventListener.java:217-222 | presto-openlineage-event-listener/src/main/java/com/facebook/presto/plugin/openlineage/OpenLineageEventListener.java:235-240 \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 \u0060presto-openlineage-event-listener/src/main/java/com/facebook/presto/plugin/openlineage/OpenLineageEventListener.java:217\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":"presto-openlineage-event-listener/src/main/java/com/facebook/presto/plugin/openlineage/OpenLineageEventListener.java"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bb422e802fa79bc79dbc301fe80931bdf849a8c8c70c10d51f580f122640392"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): presto-bytecode/src/main/java/com/facebook/presto/bytecode/ParameterizedType.java:116-121 | presto-bytecode/src/main/java/com/facebook/presto/bytecode/ParameterizedType.java:134-139 \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 \u0060presto-bytecode/src/main/java/com/facebook/presto/bytecode/ParameterizedType.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":"presto-bytecode/src/main/java/com/facebook/presto/bytecode/ParameterizedType.java"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"e961b2e58f1a257163b3173b49411739337004bc3dd7519ef351f4e6ca684dbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): presto-cli/src/main/java/com/facebook/presto/cli/StatusPrinter.java:208-213 | presto-cli/src/main/java/com/facebook/presto/cli/StatusPrinter.java:321-326 \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":"presto-cli/src/main/java/com/facebook/presto/cli/StatusPrinter.java"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a9d3ae884622464300b77f1001a9adffa3664b60138a94c1db31a52e49fea78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): presto-cli/src/main/java/com/facebook/presto/cli/StatusPrinter.java:243-248 | presto-cli/src/main/java/com/facebook/presto/cli/StatusPrinter.java:355-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 \u0060presto-cli/src/main/java/com/facebook/presto/cli/StatusPrinter.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":"presto-cli/src/main/java/com/facebook/presto/cli/StatusPrinter.java"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"46ed2267400eb051d50deda40164b295bedb4f8a224d523ca6aa3cad0e24a3ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): presto-cli/src/main/java/com/facebook/presto/cli/StatusPrinter.java:379-384 | presto-cli/src/main/java/com/facebook/presto/cli/StatusPrinter.java:394-399 \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 \u0060presto-cli/src/main/java/com/facebook/presto/cli/StatusPrinter.java:379\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":"presto-cli/src/main/java/com/facebook/presto/cli/StatusPrinter.java"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"3172e8627bc675dfb0b3a8a4190be9026350bf53d55e3eacf625b99317d40fa3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): presto-common/src/main/java/com/facebook/presto/common/block/AbstractMapBlock.java:482-487 | presto-common/src/main/java/com/facebook/presto/common/block/ArrayBlock.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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060presto-common/src/main/java/com/facebook/presto/common/block/AbstractMapBlock.java:482\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":"presto-common/src/main/java/com/facebook/presto/common/block/AbstractMapBlock.java"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"188efacd207539a9722480b4845e6b3360e61fe2227ea853f40ad36180e83a21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): presto-common/src/main/java/com/facebook/presto/common/block/Int128ArrayBlock.java:211-216 | presto-common/src/main/java/com/facebook/presto/common/block/Int128ArrayBlockBuilder.java:291-296 \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":"presto-common/src/main/java/com/facebook/presto/common/block/Int128ArrayBlock.java"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b3093eb5567c7078700e4a129399d46cc92cdcf775015ce1aa3dc53ad3eac98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): presto-common/src/main/java/com/facebook/presto/common/block/MapBlockBuilder.java:538-543 | presto-common/src/main/java/com/facebook/presto/common/block/MapBlockBuilder.java:567-572 \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 \u0060presto-common/src/main/java/com/facebook/presto/common/block/MapBlockBuilder.java:538\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":"presto-common/src/main/java/com/facebook/presto/common/block/MapBlockBuilder.java"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"53fb5203ef33d66d76142aff408246a933bb728059cd7d943e40daeb4f5930b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): presto-common/src/main/java/com/facebook/presto/common/type/RowType.java:293-298 | presto-common/src/main/java/com/facebook/presto/common/type/RowType.java:311-316 \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 \u0060presto-common/src/main/java/com/facebook/presto/common/type/RowType.java:293\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":"presto-common/src/main/java/com/facebook/presto/common/type/RowType.java"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e2762861a79c83fc3a9f1e6676eff885f53f86be44e6c5d8c68bc0e05e0130d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): presto-common/src/main/java/com/facebook/presto/common/type/TypeSignature.java:572-577 | presto-common/src/main/java/com/facebook/presto/common/type/TypeSignature.java:581-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-common/src/main/java/com/facebook/presto/common/type/TypeSignature.java"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f79c685174126fdbb7504f14ce101819fbc765bf18ae96563a4b894084dc042"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): presto-common/src/main/java/com/facebook/presto/common/type/TypeSignature.java:598-603 | presto-common/src/main/java/com/facebook/presto/common/type/TypeSignature.java:609-614 \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":"presto-common/src/main/java/com/facebook/presto/common/type/TypeSignature.java"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ce4194e59c778f0e93f018d2dff9fd6fa0bfa60d0918aaf11513db968c9e6e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): presto-common/src/main/java/com/facebook/presto/common/type/UnscaledDecimal128Arithmetic.java:457-462 | presto-common/src/main/java/com/facebook/presto/common/type/UnscaledDecimal128Arithmetic.java:538-543 \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":"presto-common/src/main/java/com/facebook/presto/common/type/UnscaledDecimal128Arithmetic.java"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f2a4054a3fa07da3c57593f412932a07ef6494e78dd41b69a6a2427148f0dbe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): presto-accumulo/src/main/java/com/facebook/presto/accumulo/metadata/AccumuloTable.java:63-67 | presto-accumulo/src/main/java/com/facebook/presto/accumulo/model/AccumuloSplit.java:65-69 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/plan/ApplyNode.java:106-110 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/PlanFragment.java:113-117 \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":"presto-accumulo/src/main/java/com/facebook/presto/accumulo/metadata/AccumuloTable.java"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b06e07dfbe7a4da355313b6bd7544d1c0695b1ec48c62525b0cec02062f4ae5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): presto-common/src/main/java/com/facebook/presto/common/type/encoding/Base32.java:382-386 | presto-common/src/main/java/com/facebook/presto/common/type/encoding/Base32.java:387-391 | presto-common/src/main/java/com/facebook/presto/common/type/encoding/Base32.java:393-397 | presto-common/src/main/java/com/facebook/presto/common/type/encoding/Base32.java:399-403 \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. 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":"presto-common/src/main/java/com/facebook/presto/common/type/encoding/Base32.java"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"da6c2e715910c0cd028869063050108d3f2654685c06616d042bf640ccfa6f8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/materializedview/DifferentialPlanRewriter.java:611-615 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/materializedview/DifferentialPlanRewriter.java:709-713 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/materializedview/DifferentialPlanRewriter.java:793-797 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/materializedview/DifferentialPlanRewriter.java:611\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/materializedview/DifferentialPlanRewriter.java"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"12a9f41548db16e045c01bf00dcc1bbce4f362055577af09852d5c5ec6fa8a54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/materializedview/DifferentialPlanRewriter.java:1023-1027 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/materializedview/DifferentialPlanRewriter.java:1033-1037 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/materializedview/DifferentialPlanRewriter.java:1043-1047 \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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/materializedview/DifferentialPlanRewriter.java"},"region":{"startLine":1023}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec410bd4e213928a0376ace17def4d3bca50b2c2e44b0ad05b085dd34809aa15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PreAggregateBeforeGroupId.java:170-175 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PreAggregateBeforeGroupId.java:232-236 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PreAggregateBeforeGroupId.java:288-292 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PreAggregateBeforeGroupId.java:170\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PreAggregateBeforeGroupId.java"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"97fe8278a781b2472f1e0786af23df0afeb07effe48b116868f8574e30a86626"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): presto-main-base/src/main/java/com/facebook/presto/sql/planner/sanity/ValidateDependenciesChecker.java:376-380 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/sanity/ValidateDependenciesChecker.java:419-423 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/sanity/ValidateDependenciesChecker.java:437-441 \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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/sanity/ValidateDependenciesChecker.java"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f00d222fa3453781d3b8da633446fe8bf792254f338ed147389e41bda70a959"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/ExpressionAnalyzer.java:1409-1413 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/ExpressionInterpreter.java:1265-1269 \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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/ExpressionAnalyzer.java"},"region":{"startLine":1409}}}],"partialFingerprints":{"codehealthFindingId/v1":"11d184624531fcbe5847ed2a706842a54aca4ddcf04413cdd1ca4d9d2b5d2402"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/MetadataExtractor.java:101-105 | presto-main-base/src/main/java/com/facebook/presto/sql/MaterializedViewUtils.java:126-130 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/MetadataExtractor.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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/MetadataExtractor.java"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb605153e749ddf3ecfac2b862eefd98b70347ee47ad0dad39257ad83d7032f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java:988-992 | presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java:1087-1091 \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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java"},"region":{"startLine":988}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc3c590e3cb08dda32d9805798d915bab3f398b1e33e221183b942b20d9ca3ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/gen/CursorProcessorCompiler.java:183-187 | presto-main-base/src/main/java/com/facebook/presto/sql/gen/PageFunctionCompiler.java:765-769 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/gen/CursorProcessorCompiler.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":"presto-main-base/src/main/java/com/facebook/presto/sql/gen/CursorProcessorCompiler.java"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8e6e7e2af78aacc936b325ae8d75914b6560303ec7c2937818d52127189f44f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/gen/PageFunctionCompiler.java:500-504 | presto-main-base/src/main/java/com/facebook/presto/sql/gen/PageFunctionCompiler.java:507-511 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/gen/PageFunctionCompiler.java:500\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":"presto-main-base/src/main/java/com/facebook/presto/sql/gen/PageFunctionCompiler.java"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"c55b2deac0a81c8b9f8cab4e8b9f84256fe23c5e18af7567b6b95e8440023021"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/gen/VarArgsToArrayAdapterGenerator.java:91-95 | presto-main-base/src/main/java/com/facebook/presto/sql/gen/VarArgsToMapAdapterGenerator.java:73-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060presto-main-base/src/main/java/com/facebook/presto/sql/gen/VarArgsToArrayAdapterGenerator.java:91\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":"presto-main-base/src/main/java/com/facebook/presto/sql/gen/VarArgsToArrayAdapterGenerator.java"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"370568b6797742a3d064b29ef157489a49aef06960466ce272378aa42d53728c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/CoalesceCascadingProjections.java:102-106 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/InlineProjections.java:78-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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/CoalesceCascadingProjections.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. 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/CoalesceCascadingProjections.java"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ac04bf089133ec092c73b23f5f5750a31c2da02b9c6d7617e9a11cf3f567888"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/CrossJoinWithArrayContainsToInnerJoin.java:126-130 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/CrossJoinWithArrayNotContainsToAntiJoin.java:142-146 \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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/CrossJoinWithArrayContainsToInnerJoin.java"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"e61448df46355f422248a32f987e4f435890dab7156b7690ed90d0e487d33e46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/ExtractSpatialJoins.java:474-478 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/ExtractSpatialJoins.java:481-485 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/ExtractSpatialJoins.java:474\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/ExtractSpatialJoins.java"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"a14aff493572af954662a8583525d0fbee0c0f3dfd1a6214e4b30a4c0491075d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PlanRemoteProjections.java:425-429 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/RpcFunctionOptimizer.java:353-357 \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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PlanRemoteProjections.java"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"00563abbfd9ae1a34762d4dff2ee407fcfe9f74c0488c49c79d3243cb6d88449"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PullUpExpressionInLambdaRules.java:241-245 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PullUpExpressionInLambdaRules.java:303-307 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PullUpExpressionInLambdaRules.java:241\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PullUpExpressionInLambdaRules.java"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"85574dff1a9700c5e526d4861f8ff2384c892c1422b54485910fc9b7e0fe1251"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/TransformTableFunctionToTableFunctionProcessor.java:953-957 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/TransformTableFunctionToTableFunctionProcessor.java:958-962 \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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/TransformTableFunctionToTableFunctionProcessor.java"},"region":{"startLine":953}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9554b8296b65dd12e0f2e28674f758ec8e28bb65d99da5c203bdb5bc4d1cd38"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/AddExchanges.java:664-668 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/AddLocalExchanges.java:493-497 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/AddExchanges.java:664\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/AddExchanges.java"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"132ac07fa8cdc1433308961d54e161d3e949c62e608783a1c5843280444743dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/AddLocalExchanges.java:500-504 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/AddLocalExchanges.java:601-605 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/AddLocalExchanges.java:500\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/AddLocalExchanges.java"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2794dfc04f673fe91f76822eb238337ba043d812b035ffb63c9238f814f72bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/HashGenerationOptimizer.java:465-469 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/HashGenerationOptimizer.java:519-523 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/HashGenerationOptimizer.java:465\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/HashGenerationOptimizer.java"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"913fe19c1d38b38eaae0ecf95ad857a7a7feb0b0be25b87be6e4cba5da33d60c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PropertyDerivations.java:532-536 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PropertyDerivations.java:658-662 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PropertyDerivations.java:532\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PropertyDerivations.java"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"209a4ef9b72b6b98ecafd8f835ef2debb4cd99d04ec69105c8c56def1443c418"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PruneUnreferencedOutputs.java:219-223 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PruneUnreferencedOutputs.java:360-365 \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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PruneUnreferencedOutputs.java"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"39c2db70813eb30177253809e1a88911eb9607b89e73239315f46bc0cb45e74e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/plan/RPCNode.java:87-91 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/plan/UpdateNode.java:61-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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/plan/RPCNode.java"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa354cecbb2e18671d84ae13677572a7c9faf96855bc62e8f81d42b951ec66d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/planPrinter/PlanPrinter.java:555-559 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/planPrinter/PlanPrinter.java:662-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/planPrinter/PlanPrinter.java"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcdb4d5c503773609e79b9e6e04d4fd0401a709170ca22a522f8b266229e0e65"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/sanity/ValidateDependenciesChecker.java:301-306 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/sanity/ValidateDependenciesChecker.java:348-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/sanity/ValidateDependenciesChecker.java"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"0220e1f3d586713050395e62562ba6859edbeb4c8de347cd59b133c1ba5e062f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/EqualityInference.java:222-226 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/EqualityInference.java:228-232 \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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/EqualityInference.java"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"08e4a2f844a609feac48d56322937aac48f0fa98452631ca4469ccefe92bdc7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/ExpressionDomainTranslator.java:650-654 | presto-main-base/src/main/java/com/facebook/presto/sql/relational/RowExpressionDomainTranslator.java:575-579 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/ExpressionDomainTranslator.java:650\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/ExpressionDomainTranslator.java"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e051f116103b8607de4f2b4bfa8c231de83990da69a6b2eb9b05c71974fcece"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/LocalExecutionPlanner.java:1044-1049 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/LocalExecutionPlanner.java:1083-1087 \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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/LocalExecutionPlanner.java"},"region":{"startLine":1044}}}],"partialFingerprints":{"codehealthFindingId/v1":"f17ee614d99696e39a70122303d3f6d1188b2fb1beff068e5db52a239a141ac0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/OutputExtractor.java:61-65 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/OutputExtractor.java:88-92 \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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/OutputExtractor.java"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8a4b4df632600f3c24da9821aaa53eed34d29d5b05c113be4cb44bff61b58d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/QueryPlanner.java:1285-1293 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/QueryPlanner.java:1589-1593 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/QueryPlanner.java:1285\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/QueryPlanner.java"},"region":{"startLine":1285}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fd17343ed32388613eb9de18a0e8146dd3ea94b8fba0d765a50fd56706e838b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/planner/RelationPlanner.java:606-610 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/RelationPlanner.java:614-618 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/planner/RelationPlanner.java:606\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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/RelationPlanner.java"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"e17830515db858c43f6b271df95ae79b2b1d3090d2f8d48064706ea3e1ff8a86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/relational/SqlFunctionUtils.java:300-304 | presto-main-base/src/main/java/com/facebook/presto/sql/relational/SqlFunctionUtils.java:311-315 \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 \u0060presto-main-base/src/main/java/com/facebook/presto/sql/relational/SqlFunctionUtils.java:311\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":"presto-main-base/src/main/java/com/facebook/presto/sql/relational/SqlFunctionUtils.java"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e6593aefb684829853c0c4cb6791b9825e7838058f50b86bf847240236c6ce8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): presto-main-base/src/main/java/com/facebook/presto/sql/rewrite/ShowQueriesRewrite.java:323-327 | presto-main-base/src/main/java/com/facebook/presto/sql/rewrite/ShowQueriesRewrite.java:346-350 \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":"presto-main-base/src/main/java/com/facebook/presto/sql/rewrite/ShowQueriesRewrite.java"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"30308d0838d15b4f097ff7851786f785473b1989ef7910a2f1b4bccb79d0bfbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): presto-parser/src/main/java/com/facebook/presto/sql/parser/AstBuilder.java:360-364 | presto-parser/src/main/java/com/facebook/presto/sql/parser/AstBuilder.java:2373-2378 \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":"presto-parser/src/main/java/com/facebook/presto/sql/parser/AstBuilder.java"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa152a9a10026b7ee87a7453465b142c25c191b0b6803f32824e59830857a225"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): presto-parser/src/main/java/com/facebook/presto/sql/parser/AstBuilder.java:2290-2294 | presto-parser/src/main/java/com/facebook/presto/sql/parser/AstBuilder.java:2308-2312 \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 \u0060presto-parser/src/main/java/com/facebook/presto/sql/parser/AstBuilder.java:2290\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":"presto-parser/src/main/java/com/facebook/presto/sql/parser/AstBuilder.java"},"region":{"startLine":2290}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7ba1f93891b0ecf7717b40653894d50047b46ef29f7355f3d1dbde22b106efb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): presto-parser/src/main/java/com/facebook/presto/sql/parser/AstBuilder.java:3078-3082 | presto-parser/src/main/java/com/facebook/presto/sql/parser/AstBuilder.java:3084-3088 \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 \u0060presto-parser/src/main/java/com/facebook/presto/sql/parser/AstBuilder.java:3078\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":"presto-parser/src/main/java/com/facebook/presto/sql/parser/AstBuilder.java"},"region":{"startLine":3078}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8647847f6e1ffab863b526bb626413f1b741a72908172d7ad1fdf71de5b53df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): presto-parser/src/main/java/com/facebook/presto/sql/parser/AstBuilder.java:3085-3089 | presto-parser/src/main/java/com/facebook/presto/sql/parser/AstBuilder.java:3111-3115 \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 \u0060presto-parser/src/main/java/com/facebook/presto/sql/parser/AstBuilder.java:3085\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":"presto-parser/src/main/java/com/facebook/presto/sql/parser/AstBuilder.java"},"region":{"startLine":3085}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a9ec5a6749c451bf700b9f30aaa7ee9f11ed7fd6a61f51f54b41751fe67de4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/BaseJdbcClient.java:192-196 | presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/ClickHouseClient.java:129-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 \u0060presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/BaseJdbcClient.java:192\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":"presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/BaseJdbcClient.java"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"aabce33b041f03beadbb7a38225c4457da766c801190f788fbbfbb5762844c4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/JdbcOutputTableHandle.java:138-142 | presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/ClickHouseOutputTableHandle.java:138-142 \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":"presto-base-jdbc/src/main/java/com/facebook/presto/plugin/jdbc/JdbcOutputTableHandle.java"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e31066827f1d6bb236c096012153346ff610c28931b17c0bb2ef10487b6f368"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/optimization/ClickHouseFilterExpressionConverter.java:76-80 | presto-druid/src/main/java/com/facebook/presto/druid/DruidFilterExpressionConverter.java:76-80 \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 \u0060presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/optimization/ClickHouseFilterExpressionConverter.java:76\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":"presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/optimization/ClickHouseFilterExpressionConverter.java"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d09bcb324e32fd79b5d4dd29b9a1d80d437c386c531a5e61ba345117dfb0e9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/optimization/ClickHouseQueryGenerator.java:222-226 | presto-druid/src/main/java/com/facebook/presto/druid/DruidQueryGenerator.java:219-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/optimization/ClickHouseQueryGenerator.java:222\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":"presto-clickhouse/src/main/java/com/facebook/presto/plugin/clickhouse/optimization/ClickHouseQueryGenerator.java"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a1516a099791b3c5977de49f756cfc62abc0948e87a105eb876bc8f618dfd92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): presto-bytecode/src/main/java/com/facebook/presto/bytecode/expression/AndBytecodeExpression.java:36-40 | presto-bytecode/src/main/java/com/facebook/presto/bytecode/expression/OrBytecodeExpression.java:36-40 \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":"presto-bytecode/src/main/java/com/facebook/presto/bytecode/expression/AndBytecodeExpression.java"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4e3d09ba2f1b1be9488c87ecaf7d78b6c8f1dd7b47251e47c1327580ddf7d89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): presto-cassandra/src/main/java/com/facebook/presto/cassandra/NativeCassandraSession.java:622-626 | presto-cassandra/src/main/java/com/facebook/presto/cassandra/NativeCassandraSession.java:643-647 \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 \u0060presto-cassandra/src/main/java/com/facebook/presto/cassandra/NativeCassandraSession.java:622\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":"presto-cassandra/src/main/java/com/facebook/presto/cassandra/NativeCassandraSession.java"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"49b4ace5177e28b95780e83daea413d47c8e851deec20ff69a7de32136f12def"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): presto-common/src/main/java/com/facebook/presto/common/type/BigintEnumType.java:95-99 | presto-common/src/main/java/com/facebook/presto/common/type/VarcharEnumType.java:84-88 \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":"presto-common/src/main/java/com/facebook/presto/common/type/BigintEnumType.java"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff137db58e894828250df653b3389a8ae8fcd028e57d02db385e324d26823a89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): presto-common/src/main/java/com/facebook/presto/common/type/DistinctType.java:139-143 | presto-common/src/main/java/com/facebook/presto/common/type/DistinctType.java:148-152 \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 \u0060presto-common/src/main/java/com/facebook/presto/common/type/DistinctType.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-common/src/main/java/com/facebook/presto/common/type/DistinctType.java"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6395dac8cf3549d68529fab5fc339db77ad3c522f14329e04f01bc560d3c2b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): presto-druid/src/main/java/com/facebook/presto/druid/segment/ZipIndexFileSource.java:189-193 | presto-druid/src/main/java/com/facebook/presto/druid/zip/ZipFileData.java:258-262 \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 \u0060presto-druid/src/main/java/com/facebook/presto/druid/segment/ZipIndexFileSource.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":"presto-druid/src/main/java/com/facebook/presto/druid/segment/ZipIndexFileSource.java"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a59b5aa66605dd737ec64abf28454d2ecb5b3f85717080897b517abddc6731f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): presto-cassandra/src/main/java/com/facebook/presto/cassandra/CassandraColumnHandle.java:179-196 | presto-main-base/src/main/java/com/facebook/presto/sql/planner/planPrinter/JsonRenderer.java:180-197 \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":"presto-cassandra/src/main/java/com/facebook/presto/cassandra/CassandraColumnHandle.java"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"f12aa27699c73c5bdc988d42e8c463c3010420b25af3b9e8ac938bba6461ef37"}},{"ruleId":"D13","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":"325574b9e8c2231487d66b7f90483735d4ac20f2342102ab27c717543cdcf4a9"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java: presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java changed 12 times in last 90 days, max complexity 28. 4 of those changes were fix/bug commits, and the other 8 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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/StatementAnalyzer.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"13f2a02a1de7a844ae5248eccf0a84e67d24a11fbda8711044bc22452de0395f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: presto-iceberg/src/main/java/com/facebook/presto/iceberg/IcebergAbstractMetadata.java: presto-iceberg/src/main/java/com/facebook/presto/iceberg/IcebergAbstractMetadata.java changed 11 times in last 90 days, max complexity 19. 4 of those changes were fix/bug commits, and the other 7 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":"presto-iceberg/src/main/java/com/facebook/presto/iceberg/IcebergAbstractMetadata.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1881c089ed6d3a4a964a364188cfc947314800f53ec4849c2aae5c5cf40f756"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: presto-iceberg/src/main/java/com/facebook/presto/iceberg/IcebergUtil.java: presto-iceberg/src/main/java/com/facebook/presto/iceberg/IcebergUtil.java changed 11 times in last 90 days, max complexity 19. 4 of those changes were fix/bug commits, and the other 7 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":"presto-iceberg/src/main/java/com/facebook/presto/iceberg/IcebergUtil.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f14b061a49183c83c1b66a0faf31601d231d4fe5bc50bd6e1046cc4f250cb16"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/ExpressionAnalyzer.java: presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/ExpressionAnalyzer.java changed 3 times in last 90 days, max complexity 57. 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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/ExpressionAnalyzer.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"28c594f9ac9b7ccc55e5b8e12524570127c24535c20b662cd01f9de3a7da8fa1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: presto-iceberg/src/main/java/com/facebook/presto/iceberg/IcebergPageSourceProvider.java: presto-iceberg/src/main/java/com/facebook/presto/iceberg/IcebergPageSourceProvider.java changed 7 times in last 90 days, max complexity 23. 2 of those changes were fix/bug commits, 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":"presto-iceberg/src/main/java/com/facebook/presto/iceberg/IcebergPageSourceProvider.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2caff7335ab653a096b349eba690482cd1d3120b2907647139f85a60a4c59176"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: presto-main-base/src/main/java/com/facebook/presto/sql/planner/PlanFragmenterUtils.java: presto-main-base/src/main/java/com/facebook/presto/sql/planner/PlanFragmenterUtils.java changed 5 times in last 90 days, max complexity 19. 2 of those changes were fix/bug commits, and the other 3 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":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/PlanFragmenterUtils.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c28d834e29247d660ad233592dacacaf6c5c7dc944516a5417ec5b3c58649bdf"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: presto-hive/src/main/java/com/facebook/presto/hive/parquet/ParquetPageSourceFactory.java: presto-hive/src/main/java/com/facebook/presto/hive/parquet/ParquetPageSourceFactory.java changed 3 times in last 90 days, max complexity 29. 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":"presto-hive/src/main/java/com/facebook/presto/hive/parquet/ParquetPageSourceFactory.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9df22eda8acc67f30495e4ca065cb2681e79c3c993265edbb785348ff462052d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: presto-cassandra/src/main/java/com/facebook/presto/cassandra/CassandraType.java: presto-cassandra/src/main/java/com/facebook/presto/cassandra/CassandraType.java changed 3 times in last 90 days, max complexity 28. 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":"presto-cassandra/src/main/java/com/facebook/presto/cassandra/CassandraType.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"452ee364abec4b2143d4bd793cf59809dd0ebc99b34849728645c9ea243c80e8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: presto-hive/src/main/java/com/facebook/presto/hive/HiveMetadata.java: presto-hive/src/main/java/com/facebook/presto/hive/HiveMetadata.java changed 3 times in last 90 days, max complexity 24. 1 of those changes was a fix/bug commit, and the other 2 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":"presto-hive/src/main/java/com/facebook/presto/hive/HiveMetadata.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"02d0426adadd6e36deb98852718be729028153b83a00b6289453b6d9b5aeffe6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/MaterializedViewQueryOptimizer.java: presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/MaterializedViewQueryOptimizer.java changed 4 times in last 90 days, max complexity 18. 1 of those changes was a fix/bug commit, and the other 3 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":"presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/MaterializedViewQueryOptimizer.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ec677380fead6eecdd579775e3eb3802f613dae4bcd998309149c8380b62d68"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 15 significant file(s) lose their only recent owner: presto-openlineage-event-listener/src/main/java/com/facebook/presto/plugin/openlineage/OpenLineageEventListener.java, presto-lance/src/main/java/com/facebook/presto/lance/LanceNamespaceHolder.java, presto-lance/src/main/java/com/facebook/presto/lance/LanceMetadata.java, presto-lance/src/main/java/com/facebook/presto/lance/LanceArrowToPageScanner.java, presto-spi/src/main/java/com/facebook/presto/spi/eventlistener/OutputColumnMetadata.java, presto-lance/src/main/java/com/facebook/presto/lance/LanceColumnHandle.java, presto-lance/src/main/java/com/facebook/presto/lance/LanceConfig.java, presto-lance/src/main/java/com/facebook/presto/lance/LancePageSourceProvider.java (\u002B7 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"e69e2ba4893b6e0a5fb36c5a8d6cf1a3a940069b065a7b9e822641d7373c254f"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #2: If anonymized user #2 becomes unavailable, 11 significant file(s) lose their only recent owner: presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PayloadJoinOptimizer.java, presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/OptimizeTopNUsingRowId.java, presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/CollapseFanoutJoinWithArrayAggUnnest.java, presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PreAggregateBeforeGroupId.java, presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PushAggregationThroughDisjointUnion.java, presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PrefilterForLimitingAggregation.java, presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/OptimizeRowInPredicate.java, presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PushProjectionThroughCrossJoin.java (\u002B3 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"f3b4664df29e0e40149786f79685b792835dfdee7c7b4857736c081cbebac24f"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #3: If anonymized user #3 becomes unavailable, 8 significant file(s) lose their only recent owner: presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/materializedview/DifferentialPlanRewriter.java, presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/materializedview/IncrementalRefreshRule.java, presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/materializedview/MaterializedViewRewrite.java, presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/RemoveUnsupportedDynamicFilters.java, presto-main-base/src/main/java/com/facebook/presto/sql/planner/sanity/DynamicFiltersChecker.java, presto-spi/src/main/java/com/facebook/presto/spi/MaterializedViewStatus.java, presto-iceberg/src/main/java/com/facebook/presto/iceberg/HiveMetastoreLock.java, presto-spi/src/main/java/com/facebook/presto/spi/connector/DynamicFilter.java. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"89595ff96c80f056e6644647f30f788ff2e567cb680dc87c7c941320bda65970"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #4: If anonymized user #4 becomes unavailable, 8 significant file(s) lose their only recent owner: presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/PlanRemoteProjections.java, presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/ReplaceConstantVariableReferencesWithConstants.java, presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/PartitioningUtils.java, presto-spi/src/main/java/com/facebook/presto/spi/plan/JoinNode.java, presto-main-base/src/main/java/com/facebook/presto/cost/HistoryBasedPlanStatisticsCalculator.java, presto-analyzer/src/main/java/com/facebook/presto/sql/analyzer/RelationType.java, presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/RemoveCrossJoinWithConstantInput.java, presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/rule/AddDistinctForSemiJoinBuild.java. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"32c9e19ac2a8c1c8dade7eae8b20278eb0cb2d1e2d988f984b0a464ea09b770a"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #5: If anonymized user #5 becomes unavailable, 7 significant file(s) lose their only recent owner: presto-hive-metastore/src/main/java/com/facebook/presto/hive/metastore/HiveMetastoreCacheStats.java, presto-hive-metastore/src/main/java/com/facebook/presto/hive/metastore/glue/GlueHiveMetastoreConfig.java, presto-hive-metastore/src/main/java/com/facebook/presto/hive/metastore/NoopMetastoreCacheStats.java, presto-hive-metastore/src/main/java/com/facebook/presto/hive/metastore/glue/converter/GlueInputConverter.java, presto-hive-metastore/src/main/java/com/facebook/presto/hive/metastore/glue/GlueMetastoreStats.java, presto-hive-metastore/src/main/java/com/facebook/presto/hive/metastore/glue/GlueMetastoreModule.java, presto-hive-metastore/src/main/java/com/facebook/presto/hive/metastore/MetastoreCacheStats.java. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"44a0b6331b6824aa42782c3064a76d6e914b376de3e6cb14b74614e989f35144"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #6: If anonymized user #6 becomes unavailable, 6 significant file(s) lose their only recent owner: presto-main-base/src/main/java/com/facebook/presto/cost/FilterStatsCalculator.java, presto-main-base/src/main/java/com/facebook/presto/cost/ScalarStatsCalculator.java, presto-main-base/src/main/java/com/facebook/presto/sql/planner/iterative/properties/LogicalPropertiesImpl.java, presto-main-base/src/main/java/com/facebook/presto/cost/PlanNodeStatsEstimate.java, presto-main-base/src/main/java/com/facebook/presto/cost/ComparisonStatsCalculator.java, presto-main-base/src/main/java/com/facebook/presto/cost/AggregationStatsRule.java. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"f4c742ca6a3ad4d14f51d9b05f422b47eae97cc237898efdd6c7530231bc42bc"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #7: If anonymized user #7 becomes unavailable, 6 significant file(s) lose their only recent owner: presto-spark-base/src/main/java/com/facebook/presto/spark/execution/nativeprocess/AbstractNativeProcess.java, presto-verifier/src/main/java/com/facebook/presto/verifier/framework/ExplainVerification.java, presto-built-in-worker-function-tools/src/main/java/com/facebook/presto/builtin/tools/WorkerFunctionUtil.java, presto-main-base/src/main/java/com/facebook/presto/util/AnalyzerUtil.java, presto-spark-base/src/main/java/com/facebook/presto/spark/PrestoSparkSessionContext.java, presto-spark-base/src/main/java/com/facebook/presto/spark/execution/nativeprocess/DriverSidecarModule.java. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"1ddbb5c0afc152abd8912fc139c86bac729b1df90549391014d30fe9afcb2777"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #8: If anonymized user #8 becomes unavailable, 4 significant file(s) lose their only recent owner: presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/MaterializedViewJoinQueryRewriter.java, presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/MaterializedViewExpressionRewriter.java, presto-main-base/src/main/java/com/facebook/presto/sql/ExpressionUtils.java, presto-main-base/src/main/java/com/facebook/presto/sql/analyzer/MaterializedViewColumnMappingExtractor.java. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0f45f586de4e2fd5b3090f760083e9b2c352582b6cbf933bd6ea7a64c7c69170"}},{"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: presto-main-base/src/main/java/com/facebook/presto/execution/scheduler/nodeSelection/SimpleNodeSelector.java, presto-main-base/src/main/java/com/facebook/presto/execution/QueryStateTimer.java, presto-main-base/src/main/java/com/facebook/presto/sql/planner/planPrinter/PlanNodeStats.java, presto-main-base/src/main/java/com/facebook/presto/util/MoreMath.java. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"7edd18fa7e7cfce6151eaa1df42dcb9f5bd9654df5cb3204c14f9d5e1d6d415f"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #10: If anonymized user #10 becomes unavailable, 3 significant file(s) lose their only recent owner: presto-native-sidecar-plugin/src/main/java/com/facebook/presto/sidecar/expressions/NativeSidecarExpressionInterpreter.java, presto-native-sidecar-plugin/src/main/java/com/facebook/presto/sidecar/NativeSidecarCommunicationModule.java, presto-native-sidecar-plugin/src/main/java/com/facebook/presto/sidecar/expressions/NativeExpressionsModule.java. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"14aacf629edbabc532f60b8203398bd9d8cb4d550eaadd9bac0815a8798b1b95"}},{"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: presto-hive/src/main/java/com/facebook/presto/hive/azure/HiveAzureConfigurationInitializer.java, presto-iceberg/src/main/java/com/facebook/presto/iceberg/ManifestsTable.java, presto-iceberg/src/main/java/com/facebook/presto/iceberg/util/PrimitiveTypeMapBuilder.java. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"17fe5d0824bfa7077135f8e802f42df1dc92426921b49eca7118d07dfdae5062"}},{"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: presto-main-base/src/main/java/com/facebook/presto/spiller/AesSpillCipher.java, presto-main-base/src/main/java/com/facebook/presto/operator/scalar/WordStemFunction.java, presto-oracle/src/main/java/com/facebook/presto/plugin/oracle/OracleConfig.java. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d1967d666fa11e7534f98798a3d6d9b8167137d2e7c839ea6085c651126031c0"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 22 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 (105 single-owned of 2796 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 #13 (2 file(s)), anonymized user #14 (2 file(s)), anonymized user #15 (2 file(s)), anonymized user #16 (2 file(s)), anonymized user #17 (2 file(s)), anonymized user #18 (1 file(s)) (\u002B16 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 dev-container setup notes the Smart Builder thread count option but does not explain what happens when tests are skipped.: Add a sentence about how test-skipping interacts with this setting so it is not misused."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-native-execution/.devcontainer/README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e37e01c08b6f60b4bf74ff9a725eb11f1c8d9aa33559a0cd016500def3a0922"}},{"ruleId":"D28","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":"65d6ad3381375f5469bb86840b22612529af2be06360d4c9db1a93e093e53b31"}},{"ruleId":"D28","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":"3cdfd7beb31b791ae18dcb425e21eb157c842e7bbcd522cc330573c1a6538db1"}},{"ruleId":"D29","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":"c59ba414dd76c2b63237acb8093f16a655456ae4b5639efeef4b7ccdd7e53fdb"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"863d8331f50e555899f87960f148da47e119f22052e6aab158d1a62637ed78a2"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"a76c76d9adad4d6f93ebb45219d91457eeb3c2237d31265908d40e10f43a796b"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"d80129843558408746182e5320750788e46475cdecdd3d51edc16a2635872654"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"080725817ce92ec014e9dfdb614d8e01a2f40d90048c0b7e341a674db5999e75"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"ed6fdc226c4d3b560a6765bd753130fbd1dbb00e11437de41604f04caeeea5a7"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"c89622be76a8fe35e37244a5a7f081b0c7ccb7c7327e10959fd0ce6ceda3540d"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"291a969317e34716d70e4fdd3eb35e019e553aaa40793f654e0370c4d2f0ae20"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"ffa12618ab43749cfcb7512953acde0fddfcb1b05c07559692558868e794264e"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"be0c579caeed43cec4aa001a90d307074211b314be8ecb8bcc243938397f4106"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"40bf4e79c4a52f2dc3f744f640f7ef70a74246d5a0ba23a0f4a1caa8b6aa8d81"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"8c44fce4e0927e3acb96ced2951b0e40cb3a180242b50585f1f40c6bcab9f50a"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"b14c373ea2d70c15349904cba1315a70934e4d4aad0a262ace3ca600d93148db"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"ac8dea8922fb58edf00210e90d51c0edafdd229fc64d1bfeea92a2361d97073b"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"e68efae275939ca8063eeb9239aec52010c78148caec7ef0c2c948093cd626b7"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"b0e3789a89ae699fff157433db1a6ddd492cd62f230ae965728d6d781903519b"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"41412ae2684c2933f3eaaf91c2c55ceaf1283c7eb0181a6d3b2158b0ad96c328"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"ec14ce69214f9752c21b5524c80bfd107d54dfbc320c9819f74acd526502869f"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"1411465e4b8f0c4291f15331a7f236b3ee5afa8b6efca51a2f6c6b4ba53f80be"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"486ebfc30479d0f37a38658d2a889fe235db2ec4132b8f6723446ee854d8b65a"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"8762cff9563e392e6abfab777166825811934057e4a8d4e5e3b5ea9954fab348"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"3f8c0884a89c9a0c4f9465093c45c0dec8b1c5508814816bcc0924ae5228835f"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"4e0df6459de413381d9ef03b10220a7520ec31d62c7df1226f192cf684e2d5dc"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"c0352993c7e8e8ab8a33602ae015bc220a3c5784c05fccd86a0a2d7becfc2c42"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"d14c7d36c39a027ccd67529f893b00f3b1c89d14514e82a867a982f06178a149"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"c46f98dd85b1a0f7f1adcb35e8ae41ec9bc93969addc802a781a70670be64031"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"8b098dcfb6d5005b9e174c689e8479652a3e30b07145dfe3c6590aa71011b2f2"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"fd9faa22991c71effba46ad6088eb524f3dce8f88f1ea59985c0eef9e8de4a5b"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"8352955d6995d9c3fccc115bdf6f7631cf69a9d6c1761b2360fa1cbf5c07bdaa"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"563422046ce66e1381c710ba60f3b2977a42578e54d583fcb462b4ec337c77aa"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"652b624db206c754dea69423aa327e9b719e1eaef3c5a2be284881ddb4ca143c"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"8802459a9bf7c1e397e08fcd7b8bdb27dc7fa23887367fa09fa3a88cfc333a53"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"6e66bce0c4fb3ef583d0d715c7f9230d3abf6e9a9f64f5e01d7fc9e3257eb3c7"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"0bd6fd3613ca7a6619aa3c1b86bc0c55ea9300729a7824f3a1c67bac1d343f40"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"f4e73c49d9b3fab0934e3c30a33f1ba23d164bdff670af41c6a3c10a0e4f5074"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"1221ecac0a830e4c5dcf9ad2d15d27a2392aeead6d12c40d9e19ffd824cb4efb"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"7b9322e0f575a8f4ed8807a805de38439f6f2b098af78e1eb3ebc0b1a712442a"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"e255120d16218bcbb1701ee9dc4cc345ac23351ae28cea4c80b38329bbe230f7"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"47c3a3c732b53133065f6619ab7ea5c4cade36943fae0efadf479d519d05f9da"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"43506d08f0a98e414f149c37884d5aeb2a196783dd9da7b7aeb2260a64fa2b5f"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"d01de2ff48040d6ab90e388aadedd7b8d8be8af3912aed1d4325532293c1dd26"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"2e3ffd01fd3d82b70bfe955ecfb4cc4a2276644a06b745820eda8663ad3df187"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"5f730373a59c91f0f55ce2309db3216fa1cae26614770a8e3dd55e1ec2b49bfb"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"026a312f7dba773635f885a451e830b038b1a653b1945f0b92cd3bb805511fff"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"28797f784c55006a2b9c2107fbbe755437c41ce5aebf3d4951a8a7dacb0b9cfd"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"fcb10b1fce334f812b14c5cb041ac1813ea4ee863bea6ae26f6422c38521efd6"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"d7bca1460ead1cddba9d40c49726eb40492b0de07d0bc43665c3bd0b01384fd9"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"7d3f664739ca5718fca60c3400649642cdf3c6037f296042f63e286560697f74"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"4db8339f5dbdb31ed32dacb56e43e8936b2d6fe5cce2874d447d947c0060407a"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"18d652c14f51bd16eca72eccdf518b5a36f7f8700982874c8e4853018eda4313"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D31","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":"f9deb0b3e9568df1171bacf908174d514cb7e71041f1c1975b38340d1bde8fc0"}},{"ruleId":"D31","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":"88a1f05a83f1d000319a781ca05d756c9146cfa664db90059aa9a7fe9fc4d4d6"}},{"ruleId":"D31","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":"cb191bc5793708cec55729e221f55d59f3fb92302be439f434421edf8d0fc3cf"}},{"ruleId":"D31","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":"135f74555e2a023be45d74a0b83c30e6b224774938c685b35798773125d72d6e"}},{"ruleId":"D31","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":"0c557f26757ba9bb4f1ae1e0aa8bf0630e060e244ed85e4a2edbcc426abccc6a"}},{"ruleId":"D31","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":"4e4f2e33518a021fd2e84e7bfdb7c61b91a136b5ce76d14d05d6fa1d0618286c"}},{"ruleId":"D31","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":"3770ede0bc725241b5959127b5dd42bb1edd74899a769badb3595f9b3288e528"}},{"ruleId":"D31","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":"6daf0d42b76f04e31501823430466d704c87660057342c58a033091dfe4ad4e7"}},{"ruleId":"D31","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":"3adeb5ca433f8377e0513466abe226661632e2c7a65ab03d48b79033987746ab"}},{"ruleId":"D31","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":"c790f76cf70ef3b7e11b2b2e046aa998549442297137ee1873617b41f8d8e165"}},{"ruleId":"D31","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":"ccc0cc717a360059224d480b2bc872b7f88a881960a07fa78798e15be3c752b9"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-ui/src/components/QueryOverview.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"095aabb0793d81351ec5db9b0e7e8dc948cc4c56fb3483b66c70aea3b05197a3"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-hive/src/main/java/com/facebook/presto/hive/s3/PrestoS3FileSystem.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3666883c70e9899c1cdbd3f23ccea6ef7db21c49f37458518dcd13ffb45595da"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-common/src/main/java/com/facebook/presto/common/type/UnscaledDecimal128Arithmetic.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ecc7d4dd514589ef5d19f77deb83fe2b66e44ea4b3107ada36015804b73bcdc"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-orc/src/main/java/com/facebook/presto/orc/OrcWriteValidation.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a478242b81e9d7dca2e8c065259d92a1df5b2177eef7c7c36f6ec90548e643b"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-jdbc/src/main/java/com/facebook/presto/jdbc/PrestoResultSet.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a9d7c553e6313645e8b98779c48a1542e14800b477f036119f75bb98e3a0bf0"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-orc/src/main/java/com/facebook/presto/orc/stream/LongOutputStreamV2.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e962eb6e108cb8209a19483f989396f72bb00e5b41ec9053ab0994f8e16c65c7"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-hive-function-namespace/src/main/java/com/facebook/presto/hive/functions/gen/AccumulatorCompiler.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3c7f3c80ba1890d787431e4d36c3175ad4869aef124b862250c50ff8ffbd700"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-hive/src/main/java/com/facebook/presto/hive/statistics/MetastoreHiveStatisticsProvider.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4165a97332add07ca9d70be4f8fe0cba2077d7e00a8ecc03d1c19caae162b30a"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-accumulo/src/main/java/com/facebook/presto/accumulo/AccumuloClient.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b887e305030d9f629932cc2cde7e740ee7190ce9ebbaea768abdcb0280b967e8"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-main-base/src/main/java/com/facebook/presto/sql/planner/optimizations/GroupInnerJoinsByConnectorRuleSet.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b187f3a591425bc73d852fcb2cde89504ece876832610ed41b1649635de043c7"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-jdbc/src/main/java/com/facebook/presto/jdbc/PrestoDatabaseMetaData.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"357000acdd80da9898d5dee49033d43b8c295597f0b655baad901d3110d81674"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-expressions/src/main/java/com/facebook/presto/expressions/LogicalRowExpressions.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6a1de9000abc80a55ec6da51961f15f986f10464b72b06983c304ace56b845e"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-common/src/main/java/com/facebook/presto/common/type/TypeSignature.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9f3cec1d4d7275cd37cdeb1c0236754c4cb352c0a62d58e4307ec1ce6da466c"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-main/src/main/java/com/facebook/presto/memory/ClusterMemoryManager.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c99f6589df655a56f43087c120fca485d3be57f1186917941bbf5ee9cf1ef002"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-pinot-toolkit/src/main/java/com/facebook/presto/pinot/query/PinotQueryGenerator.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a131264e59100487982fbe441c1e756539ac506466d97e1439f5e095983541a"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-jdbc/src/main/java/com/facebook/presto/jdbc/PrestoPreparedStatement.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3f073c1d06225a386b807998f039313e861085afc919b4db003d0dc76990370"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-pinot-toolkit/src/main/java/com/facebook/presto/pinot/query/PinotFilterExpressionConverter.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"329990d6b90b4b770de070b5ecaff3e1c1394a3df960aecad20a23425b6064e8"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-orc/src/main/java/com/facebook/presto/orc/metadata/OrcMetadataReader.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bfd094c28bf9497051e806abdc67e9b1626e6ac6d28be63ada5a7f6c798319b"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-kudu/src/main/java/com/facebook/presto/kudu/properties/KuduTableProperties.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b42b724811593a87ab0f34ffeed5fe8106890bf75e866c01f6ee8b8186ef5f0"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-orc/src/main/java/com/facebook/presto/orc/DictionaryCompressionOptimizer.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fde403e8f752f520271bbfad7f082b797bc41bd1758696dc8e4da4d9cd3abfe0"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-orc/src/main/java/com/facebook/presto/orc/writer/MapFlatColumnWriter.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7642d775e5caed22d032855dd6f2310b1da8774bc4df6eb61e2785d1fdf446e9"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-common/src/main/java/com/facebook/presto/common/block/DictionaryBlock.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"598e15c5360136f16132c830179ed0d32d18c68fbcff96f13a9bf3368168269e"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-rcfile/src/main/java/com/facebook/presto/rcfile/RcFileReader.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"84404339568732b025298c9b943d5d1e94505ee678aaa143f75269ed0d7580b8"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-bytecode/src/main/java/com/facebook/presto/bytecode/BytecodeBlock.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e025fdcd4e4aa8b08391fa67070deb01d53d8b248f7fabea44a7ec5c115c97d5"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-pinot-toolkit/src/main/java/com/facebook/presto/pinot/query/PinotQueryGeneratorContext.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d6442e4f73a90f9586288dbdd82e0e9d264867edee2387d4d91c7c53492d8b5"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-pinot-toolkit/src/main/java/com/facebook/presto/pinot/PinotClusterInfoFetcher.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c81a87c04f7a4a1fcf2eee9c51d692d6ca37ab0d71307b83b0c55ce63a5d02a"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-tpch/src/main/java/com/facebook/presto/tpch/TpchMetadata.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"da93be7a19d637de4667e8a9686c97b4285010f7a89f2ff1c41ce075e0127bdb"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-main-base/src/main/java/com/facebook/presto/operator/scalar/IpPrefixFunctions.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7255cc926ad14b61f61c81fdd728b9919d2dac5a414bb9c8477204234f5467c"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-kudu/src/main/java/com/facebook/presto/kudu/KuduClientSession.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb75a8c618ef6551bb2d3f6536d2a09af066ebc186d41f5161374ddaa65006c1"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-common/src/main/java/com/facebook/presto/common/type/encoding/Base32.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eab32552b1fced7d15f1f646b3da37938652d2bc5d97a0030c7668cd1d3cfca3"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-hive/src/main/java/com/facebook/presto/hive/HiveCoercionRecordCursor.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7e391b19f9cf1547210d7a538ef5d7913a96f9cae9acb686dccec4428b8dfde"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-verifier/src/main/java/com/facebook/presto/verifier/rewrite/FunctionCallRewriter.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c304af38096383be2254eb0ff26f4e4e21c52208a6072a529f2c68a01380d1d"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-main-base/src/main/java/com/facebook/presto/sql/gen/CursorProcessorCompiler.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f9804be98c196636e964c48b2a19745a60bb6d89f2841d93a35557594c85732"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-verifier/src/main/java/com/facebook/presto/verifier/rewrite/DefaultTreeRewriter.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"52d66520c46da900742a16195fc64862c8ecffd7c40293833f27e41148accec0"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-main-base/src/main/java/com/facebook/presto/execution/SqlTask.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f7c01ef1b6337bc3d0284376e9cabba362bc0a594446736168bdd2411798e7a"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-bytecode/src/main/java/com/facebook/presto/bytecode/expression/BytecodeExpressions.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0000ca481d56a66ca35dbd4375c04e589c17e50de63c8194c9d93e4f26b8a46f"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-accumulo/src/main/java/com/facebook/presto/accumulo/index/Indexer.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"37186ed9b7190009eccb359cf220f53805a63a5d5ce6e58997c27617ace51ecd"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-hive-metastore/src/main/java/com/facebook/presto/hive/metastore/thrift/ThriftHiveMetastoreClient.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b156bc1f690b346c30532cf4f4306983e4e0e77ef3f9a53e393810985e32baed"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-main-base/src/main/java/com/facebook/presto/operator/PipelineContext.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f974aeb6cec656d50be9524f974baaa562a61e6baf2d7009857a55d69fd7324e"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-orc/src/main/java/com/facebook/presto/orc/checkpoint/Checkpoints.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"32bec51b62de00509239f0d51bb4008279c551c2b97edeb82ebaaf5169bcff9c"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-hive/src/main/java/com/facebook/presto/hive/HiveClientModule.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5a45527e838ad99f8d0df0acad512789cfc15bfdb2b9718cef96372ee0c910f"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-hive-metastore/src/main/java/com/facebook/presto/hive/metastore/Statistics.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"463fd73bb81600dd3ad45f7c2755818b68d8704062e469852281be4c6d75e600"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-hive-function-namespace/src/main/java/com/facebook/presto/hive/functions/FunctionRegistry.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bca6f3fe335ec105ca51ae5c6cc52c7f5abcc2a246948467c35b01c23017704"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-common/src/main/java/com/facebook/presto/common/block/MapBlockBuilder.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ce0daa71956750fe604345c5a1c871955baca78211361765cc6900f53394866"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-orc/src/main/java/com/facebook/presto/orc/writer/DictionaryColumnWriter.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7335bfd9e172263ff93bebdfbceac96e69e892478d993cf0ed2b96c929e06904"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-client/src/main/java/com/facebook/presto/client/StatementClientV1.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f27453f814131008554bae40f8599678398df98a75c4f50d5d59f807f3ff440b"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-orc/src/main/java/com/facebook/presto/orc/OrcWriterOptions.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"427ddb19d3959c24b044868ddca31dec6ec77d61cea2c184a646af5b37d257c0"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-cache/src/main/java/com/facebook/presto/cache/filemerge/FileMergeCacheManager.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"662b3db0c4df9eed3ff24350557e5de5016260b6c44d07a217861ec914e29f1c"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-delta/src/main/java/com/facebook/presto/delta/DeltaPageSourceProvider.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"75c60a5d629b884ec30d9d73f52424f56c8eee6359da5191036fbfc42074e949"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-hive/src/main/java/com/facebook/presto/hive/statistics/QuickStatsProvider.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"547ec2302d1a07969697e6434d3849c4e2ddb5eaf0a422dcab6c46fa1eb88412"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-hive-common/src/main/java/com/facebook/presto/hive/zorder/ZOrder.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bcc147cc3fb50de2c0dfc9ea7a84cb79553b28f4a086f83a04705643646f941"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-hive/src/main/java/com/facebook/presto/hive/HiveBucketing.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f640b0beffdddb506068dcd4510c54d443903484e55a849fa01ec43843a74ea"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-verifier/src/main/java/com/facebook/presto/verifier/framework/VerificationManager.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"296b58a480e5f1360347cbc3f616acdbd5cb2a5e78612dbec4b113cb07b1d5f7"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-hive/src/main/java/com/facebook/presto/hive/OrcFileWriterFactory.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa3cc1171ea3b27fcceae701dc8ace23f6ca5f2495deb2ba21de3e3a94dc7a4b"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-hive/src/main/java/com/facebook/presto/hive/GenericHiveRecordCursor.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c881e56219fba6e27bd5466e3127d5267680a8a314f903b92a9c1043d54725c9"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-hive/src/main/java/com/facebook/presto/hive/HivePageSink.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1f252237704b0e8b9a97af0c165772436c614aa6faf4589147353a13c55e3d4"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-pinot-toolkit/src/main/java/com/facebook/presto/pinot/PinotConfig.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e71047c801c5351ef0520ca0d37c9fc7c2ef70227fff706b15aeed164cbd0d4f"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-hive/src/main/java/com/facebook/presto/hive/HiveMaterializedViewUtils.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1900d7ed4a05e0e5d7fd8fa0e9085c1c8c7724640f9ddff331da4ab15fce7deb"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-accumulo/src/main/java/com/facebook/presto/accumulo/index/IndexLookup.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"04db8ca26600fdb0d8930dfba9dc83ebc918840d8a628c0c65c1f84c12b80c9f"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"presto-hive/src/main/java/com/facebook/presto/hive/statistics/ParquetQuickStatsBuilder.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a1895cd9e1c53c5003ee28ba032051267da358f7d35f89f1a5255964fb71d87"}},{"ruleId":"D34","level":"note","message":{"text":"Further orphaned files (smaller): 1101 smaller file(s) also have no living knowledge \u2014 folded into the freshness score and metrics rather than listed individually (1161 orphaned of 2992 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)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: PrestoSparkServiceFactory.java \u2194 PrestoSparkDistribution.java: \u0060presto-spark-base/src/main/java/com/facebook/presto/spark/PrestoSparkServiceFactory.java\u0060 (context presto-spark-base) and \u0060presto-spark-launcher/src/main/java/com/facebook/presto/spark/launcher/PrestoSparkDistribution.java\u0060 (context presto-spark-launcher) sit in DIFFERENT parts of the tree yet change together 100% of the time (11 of the 11 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":"presto-spark-base/src/main/java/com/facebook/presto/spark/PrestoSparkServiceFactory.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"23d375a79512dd029a03be89c318bb8e0faaf148141f4db264779b57e70c9166"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: MetadataManager.java \u2194 ClassLoaderSafeConnectorMetadata.java: \u0060presto-main-base/src/main/java/com/facebook/presto/metadata/MetadataManager.java\u0060 (context presto-main-base) and \u0060presto-spi/src/main/java/com/facebook/presto/spi/connector/classloader/ClassLoaderSafeConnectorMetadata.java\u0060 (context presto-spi) sit in DIFFERENT parts of the tree yet change together 97% of the time (34 of the 35 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":"presto-main-base/src/main/java/com/facebook/presto/metadata/MetadataManager.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"12d18649464f90746bf43e38eb427ef717debb96b3858f756dc71943f71fae84"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: Metadata.java \u2194 ClassLoaderSafeConnectorMetadata.java: \u0060presto-main-base/src/main/java/com/facebook/presto/metadata/Metadata.java\u0060 (context presto-main-base) and \u0060presto-spi/src/main/java/com/facebook/presto/spi/connector/classloader/ClassLoaderSafeConnectorMetadata.java\u0060 (context presto-spi) sit in DIFFERENT parts of the tree yet change together 86% of the time (30 of the 35 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":"presto-main-base/src/main/java/com/facebook/presto/metadata/Metadata.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dd197ba299431e7fa29f847590fea19bcd8b01151d9e881fc787e0f8a91337d"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: Metadata.java \u2194 ConnectorMetadata.java: \u0060presto-main-base/src/main/java/com/facebook/presto/metadata/Metadata.java\u0060 (context presto-main-base) and \u0060presto-spi/src/main/java/com/facebook/presto/spi/connector/ConnectorMetadata.java\u0060 (context presto-spi) sit in DIFFERENT parts of the tree yet change together 81% of the time (30 of the 37 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":"presto-main-base/src/main/java/com/facebook/presto/metadata/Metadata.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f6ea74cb3030502d7766c856e226c7d7e5c08113c7e40df9a7e56281f061047"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: SqlFunctionProperties.java \u2194 SystemSessionProperties.java: \u0060presto-common/src/main/java/com/facebook/presto/common/function/SqlFunctionProperties.java\u0060 (context presto-common) and \u0060presto-main-base/src/main/java/com/facebook/presto/SystemSessionProperties.java\u0060 (context presto-main-base) sit in DIFFERENT parts of the tree yet change together 76% of the time (13 of the 17 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":"presto-common/src/main/java/com/facebook/presto/common/function/SqlFunctionProperties.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"80f2c84f47b0193619baa269d329dd665adc7a755507d6f26a497a2eb3823f96"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: PrestoSparkServiceFactory.java \u2194 PrestoSparkRunner.java: \u0060presto-spark-base/src/main/java/com/facebook/presto/spark/PrestoSparkServiceFactory.java\u0060 (context presto-spark-base) and \u0060presto-spark-launcher/src/main/java/com/facebook/presto/spark/launcher/PrestoSparkRunner.java\u0060 (context presto-spark-launcher) sit in DIFFERENT parts of the tree yet change together 76% of the time (16 of the 21 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":"presto-spark-base/src/main/java/com/facebook/presto/spark/PrestoSparkServiceFactory.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f970b359e3ee83334e2a671ece35f9505425deb57069d38ac51c070315c812b"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: QueryInfo.java \u2194 QueryCompletedEvent.java: \u0060presto-main-base/src/main/java/com/facebook/presto/execution/QueryInfo.java\u0060 (context presto-main-base) and \u0060presto-spi/src/main/java/com/facebook/presto/spi/eventlistener/QueryCompletedEvent.java\u0060 (context presto-spi) sit in DIFFERENT parts of the tree yet change together 73% of the time (11 of the 15 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":"presto-main-base/src/main/java/com/facebook/presto/execution/QueryInfo.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed2a28cff4e0b63e4089aed585da5b882d28fda079b05e9709db1f0b39719b2c"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: QueryStateMachine.java \u2194 QueryCompletedEvent.java: \u0060presto-main-base/src/main/java/com/facebook/presto/execution/QueryStateMachine.java\u0060 (context presto-main-base) and \u0060presto-spi/src/main/java/com/facebook/presto/spi/eventlistener/QueryCompletedEvent.java\u0060 (context presto-spi) sit in DIFFERENT parts of the tree yet change together 73% of the time (11 of the 15 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":"presto-main-base/src/main/java/com/facebook/presto/execution/QueryStateMachine.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7639967647128be5de4a5c68838cf1c03c6698ed96ef309384a77ab96ae4cba4"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: PrestoSparkQueryExecutionFactory.java \u2194 QueryCompletedEvent.java: \u0060presto-spark-base/src/main/java/com/facebook/presto/spark/PrestoSparkQueryExecutionFactory.java\u0060 (context presto-spark-base) and \u0060presto-spi/src/main/java/com/facebook/presto/spi/eventlistener/QueryCompletedEvent.java\u0060 (context presto-spi) sit in DIFFERENT parts of the tree yet change together 73% of the time (11 of the 15 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":"presto-spark-base/src/main/java/com/facebook/presto/spark/PrestoSparkQueryExecutionFactory.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"356ffc525e4bd0d3218015ca10a60826e3065ef75f3badc5037486d257525a0f"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: PrestoSparkServiceFactory.java \u2194 PrestoSparkLauncherCommand.java: \u0060presto-spark-base/src/main/java/com/facebook/presto/spark/PrestoSparkServiceFactory.java\u0060 (context presto-spark-base) and \u0060presto-spark-launcher/src/main/java/com/facebook/presto/spark/launcher/PrestoSparkLauncherCommand.java\u0060 (context presto-spark-launcher) sit in DIFFERENT parts of the tree yet change together 71% of the time (15 of the 21 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":"presto-spark-base/src/main/java/com/facebook/presto/spark/PrestoSparkServiceFactory.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff9b1f6429412485e79d888665cbb0502d384f3758b56459b7c5e9a45b0a46d3"}},{"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":"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":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"}},{"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":"738496252ab72c65bdcf6b750fc44ad6900f0de8992be3a05903641242731f60"}},{"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":"35ad2ccaf98aad2a09a49b369d7974172a77b19322d10ad7155cfd24db53e246"}},{"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":"d95396882125f1a92c19200c78e3549126a697246ae18af40e6cb978994f7a92"}},{"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":"89fed29648d4aea7a86b5a9c49486611000421bc43a0df907f3328b8dc1cd7bd"}},{"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":"ad998ca61299013866b96cb87211951a6c263a45ef1d30f77d82125e728f31ff"}},{"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":"e47037344d51d277ea7ce910774507fdfc3651c3e86514bc07e92a42e5e3b34d"}},{"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":"6f9b7dc361fdd467b16d074335117848114c73217a77abfc9b5227c9f5380570"}},{"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":"a29bcf7092063d418e10b1c93642057d46ea8b6b818c159bc1e2baec94f65911"}},{"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":"7d9a3fe1b59bfb43debe0cf1bc9d02d7b2bb989ecc2d67d0bf022bb3457e324a"}},{"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":"b979643fab9c0c732055f419c1f749b7ca4b8b0eadc4e6cd57ce082f7aaeb545"}},{"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":"da4f50e25d100454df8cc729fbb732e77ebf66a9ef40b46bee99cf3873e4ca08"}}],"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-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"CWE-353","shortDescription":{"text":"CWE-353"},"helpUri":"https://cwe.mitre.org/data/definitions/353.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-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"CWE-829","shortDescription":{"text":"CWE-829"},"helpUri":"https://cwe.mitre.org/data/definitions/829.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":79,"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."]}]}