AI Slop Code Risk Monitor

trinodb/trino

SlopCodeMonitor badge for trinodb/trino Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

Official repository of Trino, the distributed SQL query engine for big data, formerly known as PrestoSQL (https://trino.io)

0.6 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for trinodb/trino, a Java project with 13,387 GitHub stars. SynthScan examined 2,329,309 lines of code across 14121 source files, recording 310 pattern matches distributed across 17 syntactic categories. The legacy adjusted pattern signal is 0.6 (Low pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

0.6
Adjusted Signal
0.6
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
13.4K
Stars
Java
Language
2.3M
Lines of Code
14.1K
Files
310
Pattern Hits
2026-10-31
Scan Date
0.01
HC Hit Rate

Risk Review · Payload v1

Use each vector to guide manual verification of the underlying findings.

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 0.5/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 152 finding(s).

Hallucinated Dependency & Supply Chain Risk 1.9/100 · LOW

Are imports declared and package/API names verified? 109 finding(s).

Agent Over-Engineering Ratio 0.6/100 · LOW

Are wrappers, guards, and repeated structures necessary? 73 finding(s).

PR Review Velocity Impact 2.8/100 · LOW

Which changes need focused human review? 310 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 83HIGH 51MEDIUM 13LOW 163

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 310 distinct pattern matches across 17 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hallucination Indicators83 hits · 870 pts
SeverityFileLineSnippetContext
CRITICAL…resources/webapp-legacy/src/components/StageDetail.jsx453 this.props.stage.stageStats.operatorSummaries.forEach((operator) => {CODE
CRITICAL…o-main/src/test/java/io/trino/server/ui/TestWebUi.java437 return jakarta.ws.rs.core.Response.ok()CODE
CRITICAL…ava/io/trino/server/security/TestResourceSecurity.java1367 return jakarta.ws.rs.core.Response.ok()CODE
CRITICAL…n/src/test/java/io/trino/execution/TestStageStats.java96 Optional.of(io.trino.plugin.base.metrics.DistributionSnapshot.fromDistribution(getTDigestHistogram(10))),CODE
CRITICAL…/trino/operator/TestAnnotationEngineForAggregates.java1241 case TemplateParameter.TypeArgument(var name, var type) -> io.trino.spi.type.TypeParametCODE
CRITICAL…/trino/operator/TestAnnotationEngineForAggregates.java1242 case TemplateParameter.NumericArgument(NumericExpression value) -> io.trino.spi.type.TypCODE
CRITICAL…ava/io/trino/sql/query/TestJsonSimplifiedAccessor.java485 SELECT j.a.b.c.d.integer()STRING
CRITICAL…src/main/java/io/trino/operator/OperatorFactories.java53 return createAdapterOperatorFactory(new io.trino.operator.join.nonspilling.LookupJoinOperatorFactory(CODE
CRITICAL…n/java/io/trino/sql/planner/LocalExecutionPlanner.java3028 new io.trino.operator.join.nonspilling.PartitionedLookupSourceFactory(CODE
CRITICAL…va/io/trino/sql/analyzer/TypeDescriptorTranslator.java453 io.trino.spi.type.IntervalField startField = io.trino.spi.type.IntervalField.fromCode((int) ((TypeParameter.NumeCODE
CRITICAL…va/io/trino/sql/analyzer/TypeDescriptorTranslator.java459 io.trino.spi.type.IntervalField endField = io.trino.spi.type.IntervalField.fromCode((int) ((TypeParameter.NuCODE
CRITICAL…va/io/trino/sql/analyzer/TypeDescriptorTranslator.java518 io.trino.spi.type.IntervalField startField = io.trino.spi.type.IntervalField.fromCode((int) ((TypeParameter.NumeCODE
CRITICAL…va/io/trino/sql/analyzer/TypeDescriptorTranslator.java519 io.trino.spi.type.IntervalField endField = io.trino.spi.type.IntervalField.fromCode((int) ((TypeParameter.NumeriCODE
CRITICAL…query/TestBigQueryStoragePageSourceMemoryTracking.java205 .setArrowRecordBatch(com.google.cloud.bigquery.storage.v1.ArrowRecordBatch.newBuilder()CODE
CRITICAL⚡…rino/plugin/iceberg/TestIcebergAvroDataConversion.java36 VARIANT.writeObject(blockBuilder, io.trino.spi.variant.Variant.ofLong(41));CODE
CRITICAL⚡…rino/plugin/iceberg/TestIcebergAvroDataConversion.java37 VARIANT.writeObject(blockBuilder, io.trino.spi.variant.Variant.ofLong(42));CODE
CRITICAL⚡…rino/plugin/iceberg/TestIcebergAvroDataConversion.java43 assertThat(org.apache.iceberg.variants.Variant.toString((org.apache.iceberg.variants.Variant) converted))CODE
CRITICAL⚡…rino/plugin/iceberg/TestIcebergAvroDataConversion.java52 VARIANT.writeObject(blockBuilder, io.trino.spi.variant.Variant.ofString("hello"));CODE
CRITICAL⚡…rino/plugin/iceberg/TestIcebergAvroDataConversion.java58 assertThat(org.apache.iceberg.variants.Variant.toString((org.apache.iceberg.variants.Variant) converted))CODE
CRITICAL…ceberg/encryption/TestIcebergAzureEncryptionFloci.java87 reactor.netty.http.client.HttpClient nettyClient = reactor.netty.http.client.HttpClient.create()CODE
CRITICAL…plugin/iceberg/delete/DefaultDeletionVectorWriter.java343 io.trino.plugin.iceberg.delete.DeleteFile.fromIceberg(deleteFile),CODE
CRITICAL…rino/plugin/iceberg/catalog/jdbc/TrinoJdbcCatalog.java354 // "Cannot invoke "org.apache.iceberg.util.SerializableSupplier.get()" because "this.hadoopConf" is null"COMMENT
CRITICAL…/lakehouse/TestLakehouseIcebergConnectorSmokeTest.java77 assertThat(io.trino.plugin.iceberg.TableType.values())CODE
CRITICAL…rino/plugin/hive/metastore/glue/TestGlueConverter.java97 private final software.amazon.awssdk.services.glue.model.Database glueDatabase = software.amazon.awssdk.services.gluCODE
CRITICAL…rino/plugin/hive/metastore/glue/TestGlueConverter.java104 private final software.amazon.awssdk.services.glue.model.Table glueMaterializedView = software.amazon.awssdk.serviceCODE
CRITICAL…rino/plugin/hive/metastore/glue/TestGlueConverter.java117 private final software.amazon.awssdk.services.glue.model.Table glueView = software.amazon.awssdk.services.glue.modelCODE
CRITICAL⚡…rino/plugin/hive/metastore/glue/TestGlueConverter.java130 private final software.amazon.awssdk.services.glue.model.Table glueTable = software.amazon.awssdk.services.glue.modeCODE
CRITICAL⚡…rino/plugin/hive/metastore/glue/TestGlueConverter.java135 .partitionKeys(software.amazon.awssdk.services.glue.model.Column.builder()CODE
CRITICAL⚡…rino/plugin/hive/metastore/glue/TestGlueConverter.java142 .columns(software.amazon.awssdk.services.glue.model.Column.builder()CODE
CRITICAL…rino/plugin/hive/metastore/glue/TestGlueConverter.java162 private final software.amazon.awssdk.services.glue.model.Partition gluePartition = software.amazon.awssdk.services.gCODE
CRITICAL…rino/plugin/hive/metastore/glue/TestGlueConverter.java169 .columns(software.amazon.awssdk.services.glue.model.Column.builder()CODE
CRITICAL…rino/plugin/hive/metastore/glue/TestGlueConverter.java281 .columns(ImmutableList.of(software.amazon.awssdk.services.glue.model.Column.builder()CODE
CRITICAL…rino/plugin/hive/metastore/glue/TestGlueConverter.java334 .partitionKeys(software.amazon.awssdk.services.glue.model.Column.builder()CODE
CRITICAL…rino/plugin/hive/metastore/glue/TestGlueConverter.java350 .columns(software.amazon.awssdk.services.glue.model.Column.builder()CODE
CRITICAL…rino/plugin/hive/metastore/glue/TestGlueConverter.java369 .columns(software.amazon.awssdk.services.glue.model.Column.builder()CODE
CRITICAL…gin/hive/metastore/thrift/TestThriftMetastoreUtil.java106 private static final io.trino.hive.thrift.metastore.Table TEST_TABLE = new io.trino.hive.thrift.metastore.Table(CODE
CRITICAL…gin/hive/metastore/thrift/TestThriftMetastoreUtil.java126 private static final io.trino.hive.thrift.metastore.Partition TEST_PARTITION = new io.trino.hive.thrift.metastore.PaCODE
CRITICAL…gin/hive/metastore/thrift/TestThriftMetastoreUtil.java145 private static final io.trino.hive.thrift.metastore.Table TEST_TABLE_WITH_UNSUPPORTED_FIELDS = new io.trino.hive.thrCODE
CRITICAL…gin/hive/metastore/thrift/TestThriftMetastoreUtil.java160 private static final io.trino.hive.thrift.metastore.Partition TEST_PARTITION_WITH_UNSUPPORTED_FIELDS = new io.trino.CODE
CRITICAL…gin/hive/metastore/thrift/TestThriftMetastoreUtil.java179 private static final io.trino.hive.thrift.metastore.Partition TEST_PARTITION_WITH_MISSING_COLUMNS = new io.trino.hivCODE
CRITICAL…o/trino/plugin/hive/metastore/thrift/TestTxnUtils.java41 var hiveResponse = new org.apache.hadoop.hive.metastore.api.GetOpenTxnsResponse(CODE
CRITICAL…o/trino/plugin/hive/metastore/thrift/TestTxnUtils.java45 String hiveValue = org.apache.hadoop.hive.metastore.txn.TxnUtils.createValidReadTxnList(hiveResponse, currentTxnCODE
CRITICAL…o/trino/plugin/hive/metastore/thrift/TestTxnUtils.java69 String hiveValue = org.apache.hadoop.hive.metastore.txn.TxnUtils.createValidTxnWriteIdList(currentTxn, hiveIds).CODE
CRITICAL…o/trino/plugin/hive/metastore/thrift/TestTxnUtils.java88 String hiveValue = org.apache.hadoop.hive.metastore.txn.TxnUtils.createValidReaderWriteIdList(hiveIds).toString(CODE
CRITICAL…o/trino/plugin/hive/metastore/thrift/TestTxnUtils.java97 var result = new org.apache.hadoop.hive.metastore.api.TableValidWriteIds(CODE
CRITICAL…ve/metastore/CoralSemiTransactionalHiveMSCAdapter.java92 var result = new com.linkedin.coral.hive.metastore.api.Database();CODE
CRITICAL…ve/metastore/CoralSemiTransactionalHiveMSCAdapter.java102 var result = new com.linkedin.coral.hive.metastore.api.Table();CODE
CRITICAL…ve/metastore/CoralSemiTransactionalHiveMSCAdapter.java118 var result = new com.linkedin.coral.hive.metastore.api.StorageDescriptor();CODE
CRITICAL…ve/metastore/CoralSemiTransactionalHiveMSCAdapter.java134 var result = new com.linkedin.coral.hive.metastore.api.SerDeInfo();CODE
CRITICAL…ve/metastore/CoralSemiTransactionalHiveMSCAdapter.java145 var result = new com.linkedin.coral.hive.metastore.api.FieldSchema();CODE
CRITICAL…io/trino/plugin/hive/metastore/glue/GlueConverter.java312 return software.amazon.awssdk.services.glue.model.Column.builder()CODE
CRITICAL…io/trino/plugin/hive/metastore/glue/GlueConverter.java678 .map(uri -> software.amazon.awssdk.services.glue.model.ResourceUri.builder()CODE
CRITICAL…/plugin/hive/metastore/thrift/ThriftMetastoreUtil.java179 io.trino.hive.thrift.metastore.Database result = new io.trino.hive.thrift.metastore.Database();CODE
CRITICAL…/plugin/hive/metastore/thrift/ThriftMetastoreUtil.java199 io.trino.hive.thrift.metastore.Table result = new io.trino.hive.thrift.metastore.Table();CODE
CRITICAL…/plugin/hive/metastore/thrift/ThriftMetastoreUtil.java360 io.trino.hive.thrift.metastore.Partition result = new io.trino.hive.thrift.metastore.Partition();CODE
CRITICAL…/plugin/hive/metastore/thrift/ThriftMetastoreUtil.java993 return new io.trino.hive.thrift.metastore.Function()CODE
CRITICAL…io/trino/plugin/pinot/TestPinotConnectorSmokeTest.java609 org.apache.pinot.spi.data.Schema pinotSchema = org.apache.pinot.spi.data.Schema.fromInputStream(pinotSchemaICODE
CRITICALdocs/src/main/sphinx/client/cli.md747at io.trino.sql.analyzer.SemanticExceptions.semanticException(SemanticExceptions.java:48)CODE
CRITICALdocs/src/main/sphinx/client/cli.md748at io.trino.sql.analyzer.SemanticExceptions.semanticException(SemanticExceptions.java:43)CODE
CRITICAL…s/product/hive/TestHiveCoercionOnPartitionedTable.java1616 rowsBuilder.add(io.trino.testing.containers.environment.Row.fromList(currentRow));CODE
23 more matches not shown…
Cross-File Repetition45 hits · 225 pts
SeverityFileLineSnippetContext
HIGH…in/src/test/java/io/trino/sql/query/TestRowFilter.java0merge into mock.tiny.nation_with_null_check using (values 1,2) t(x) on nationkey = x when matched then deleteSTRING
HIGH…/test/java/io/trino/sql/query/TestCheckConstraint.java0merge into mock.tiny.nation_with_null_check using (values 1,2) t(x) on nationkey = x when matched then deleteSTRING
HIGH…in/src/test/java/io/trino/sql/query/TestBranching.java0merge into mock.tiny.nation_with_null_check using (values 1,2) t(x) on nationkey = x when matched then deleteSTRING
HIGH…in/src/test/java/io/trino/sql/query/TestRowFilter.java0merge into mock.tiny.nation using (values 11) t(x) on nationkey = x when matched then update set regionkey = regionkey *STRING
HIGH…/test/java/io/trino/sql/query/TestCheckConstraint.java0merge into mock.tiny.nation using (values 11) t(x) on nationkey = x when matched then update set regionkey = regionkey *STRING
HIGH…in/src/test/java/io/trino/sql/query/TestBranching.java0merge into mock.tiny.nation using (values 11) t(x) on nationkey = x when matched then update set regionkey = regionkey *STRING
HIGH…in/src/test/java/io/trino/sql/query/TestRowFilter.java0merge into mock.tiny.nation_with_null_check using (values 42) t(dummy) on false when not matched then insert values (101STRING
HIGH…/test/java/io/trino/sql/query/TestCheckConstraint.java0merge into mock.tiny.nation_with_null_check using (values 42) t(dummy) on false when not matched then insert values (101STRING
HIGH…in/src/test/java/io/trino/sql/query/TestBranching.java0merge into mock.tiny.nation_with_null_check using (values 42) t(dummy) on false when not matched then insert values (101STRING
HIGH…java/io/trino/plugin/druid/TestDruidConnectorTest.java0values ('orders', 'orderkey'), ('orders', 'custkey'), ('orders', 'orderstatus'), ('orders', 'totalprice'), ('orders', 'oSTRING
HIGH…java/io/trino/plugin/pinot/TestPinotConnectorTest.java0values ('orders', 'orderkey'), ('orders', 'custkey'), ('orders', 'orderstatus'), ('orders', 'totalprice'), ('orders', 'oSTRING
HIGH…/src/main/java/io/trino/testing/BaseConnectorTest.java0values ('orders', 'orderkey'), ('orders', 'custkey'), ('orders', 'orderstatus'), ('orders', 'totalprice'), ('orders', 'oSTRING
HIGH…java/io/trino/plugin/iceberg/TestCloseIdleWriters.java0create table %s with (format = 'orc', partitioned_by = array['shipmodeval']) as select orderkey, partkey, suppkey, linenSTRING
HIGH…va/io/trino/plugin/deltalake/TestCloseIdleWriters.java0create table %s with (format = 'orc', partitioned_by = array['shipmodeval']) as select orderkey, partkey, suppkey, linenSTRING
HIGH…st/java/io/trino/plugin/hive/TestCloseIdleWriters.java0create table %s with (format = 'orc', partitioned_by = array['shipmodeval']) as select orderkey, partkey, suppkey, linenSTRING
HIGH…o/plugin/iceberg/TestIcebergLocalConcurrentWrites.java0merge into %s t using (values (21, 30)) as s(a, part) on (t.part = s.part) when matched then deleteSTRING
HIGH…/plugin/deltalake/BaseDeltaLakeConnectorSmokeTest.java0merge into %s t using (values (21, 30)) as s(a, part) on (t.part = s.part) when matched then deleteSTRING
HIGH…/deltalake/TestDeltaLakeLocalConcurrentWritesTest.java0merge into %s t using (values (21, 30)) as s(a, part) on (t.part = s.part) when matched then deleteSTRING
HIGH…o/plugin/iceberg/TestIcebergLocalConcurrentWrites.java0merge into %s t using (values (32, 40)) as s(a, part) on (t.part = s.part) when matched then update set a = s.aSTRING
HIGH…/plugin/deltalake/BaseDeltaLakeConnectorSmokeTest.java0merge into %s t using (values (32, 40)) as s(a, part) on (t.part = s.part) when matched then update set a = s.aSTRING
HIGH…/deltalake/TestDeltaLakeLocalConcurrentWritesTest.java0merge into %s t using (values (32, 40)) as s(a, part) on (t.part = s.part) when matched then update set a = s.aSTRING
HIGH…/TestIcebergJdbcCatalogV1SchemaConnectorSmokeTest.java0create view iceberg."level_1.level_2".%s security definer with ( location = '%s' ) as select * from nationSTRING
HIGH…est/TestIcebergTrinoRestCatalogConnectorSmokeTest.java0create view iceberg."level_1.level_2".%s security definer with ( location = '%s' ) as select * from nationSTRING
HIGH…ebergRestCatalogNestedNamespaceConnectorSmokeTest.java0create view iceberg."level_1.level_2".%s security definer with ( location = '%s' ) as select * from nationSTRING
HIGH…in/lakehouse/TestLakehouseFlociConnectorSmokeTest.java0\\qcreate table lakehouse.tpch.region ( regionkey bigint, name varchar, comment varchar ) with ( format = 'parquet', forSTRING
HIGH…gin/lakehouse/TestLakehouseFileConnectorSmokeTest.java0\\qcreate table lakehouse.tpch.region ( regionkey bigint, name varchar, comment varchar ) with ( format = 'parquet', forSTRING
HIGH…/lakehouse/TestLakehouseIcebergConnectorSmokeTest.java0\\qcreate table lakehouse.tpch.region ( regionkey bigint, name varchar, comment varchar ) with ( format = 'parquet', forSTRING
HIGH…io/trino/testing/containers/SparkIcebergContainer.java0rootlogger.level = warn rootlogger.appenderref.console.ref = console appender.console.type = console appender.console.naSTRING
HIGH…no/testing/containers/SparkIcebergNessieContainer.java0rootlogger.level = warn rootlogger.appenderref.console.ref = console appender.console.type = console appender.console.naSTRING
HIGH…va/io/trino/testing/containers/SparkHudiContainer.java0rootlogger.level = warn rootlogger.appenderref.console.ref = console appender.console.type = console appender.console.naSTRING
HIGH…a/io/trino/testing/containers/SparkDeltaContainer.java0rootlogger.level = warn rootlogger.appenderref.console.ref = console appender.console.type = console appender.console.naSTRING
HIGH…roduct/iceberg/SparkIcebergJdbcCatalogEnvironment.java0rootlogger.level = warn rootlogger.appenderref.console.ref = console appender.console.type = console appender.console.naSTRING
HIGH…tests/product/iceberg/SparkIcebergRestEnvironment.java0rootlogger.level = warn rootlogger.appenderref.console.ref = console appender.console.type = console appender.console.naSTRING
HIGH…/product/postgresql/PostgresqlSpoolingEnvironment.java0insert into workers_mysql values (null, null, null, null, null, 1, 'marketing', 4000), (2, 'ann', 'turner', '2000-05-28'STRING
HIGH…sts/product/postgresql/PostgresqlBasicEnvironment.java0insert into workers_mysql values (null, null, null, null, null, 1, 'marketing', 4000), (2, 'ann', 'turner', '2000-05-28'STRING
HIGH…ava/io/trino/tests/product/mysql/MySqlEnvironment.java0insert into workers_mysql values (null, null, null, null, null, 1, 'marketing', 4000), (2, 'ann', 'turner', '2000-05-28'STRING
HIGH…/product/postgresql/PostgresqlSpoolingEnvironment.java0insert into datatype_mysql values (12, 12.25, 'string1', '1999-01-08', '1999-01-08 02:05:06', true), (25, 55.52, 'test',STRING
HIGH…sts/product/postgresql/PostgresqlBasicEnvironment.java0insert into datatype_mysql values (12, 12.25, 'string1', '1999-01-08', '1999-01-08 02:05:06', true), (25, 55.52, 'test',STRING
HIGH…ava/io/trino/tests/product/mysql/MySqlEnvironment.java0insert into datatype_mysql values (12, 12.25, 'string1', '1999-01-08', '1999-01-08 02:05:06', true), (25, 55.52, 'test',STRING
HIGH…roduct/deltalake/DeltaLakeFlociCachingEnvironment.java0cache-manager.name=alluxio fs.cache.directories=%s fs.cache.max-disk-usage-percentages=90STRING
HIGH…t/iceberg/MultiNodeIcebergFlociCachingEnvironment.java0cache-manager.name=alluxio fs.cache.directories=%s fs.cache.max-disk-usage-percentages=90STRING
HIGH…ests/product/hive/MultinodeHiveCachingEnvironment.java0cache-manager.name=alluxio fs.cache.directories=%s fs.cache.max-disk-usage-percentages=90STRING
HIGH…sts/product/hive/BaseTestAvroSchemaEvolutionJunit.java0{ "namespace": "io.trino.test", "name": "product_tests_avro_table", "type": "record", "fields": [ { "name":"string_col",STRING
HIGH…io/trino/tests/product/hive/TestAvroSchemaLiteral.java0{ "namespace": "io.trino.test", "name": "product_tests_avro_table", "type": "record", "fields": [ { "name":"string_col",STRING
HIGH…ava/io/trino/tests/product/hive/TestAvroSchemaUrl.java0{ "namespace": "io.trino.test", "name": "product_tests_avro_table", "type": "record", "fields": [ { "name":"string_col",STRING
Over-Commented Block91 hits · 91 pts
SeverityFileLineSnippetContext
LOW…rc/main/java/io/trino/spi/function/DomainPreimage.java21import java.util.List;COMMENT
LOW…rc/main/java/io/trino/spi/function/DomainPreimage.java41public interface DomainPreimageCOMMENT
LOW…rc/main/java/io/trino/spi/function/DomainPreimage.java61 /// `IS NOT DISTINCT FROM`, on every input where the original comparison succeeds.COMMENT
LOW…rc/main/java/io/trino/spi/function/DomainPreimage.java81 default boolean isComparisonIdentity(Context context)COMMENT
LOW…-spi/src/main/java/io/trino/spi/type/TypeTemplate.java21import static java.util.stream.Collectors.joining;COMMENT
LOW…trino-spi/src/main/java/io/trino/spi/type/MapType.java321 Block rawKeyBlock = sqlMap.getRawKeyBlock();COMMENT
LOW…trino-spi/src/main/java/io/trino/spi/type/MapType.java341 // non-null keys is not always enforced, and null keys may be allowed in the future.COMMENT
LOW…ino-spi/src/main/java/io/trino/spi/type/ArrayType.java281 // All data of the array is stored in the variable width section. Within the variable width section,COMMENT
LOW…no-spi/src/main/java/io/trino/spi/variant/Variant.java801 /// The returned structure is composed of standard Java types andCOMMENT
LOW…no-spi/src/main/java/io/trino/spi/variant/Variant.java821 /// | PRIMITIVE | DATE | {@code LocalDate} |COMMENT
LOW…no-spi/src/main/java/io/trino/spi/variant/Variant.java861 case ARRAY -> {COMMENT
LOW…no-spi/src/main/java/io/trino/spi/variant/Variant.java881 /// - Lists become VARIANT arraysCOMMENT
LOW…no-spi/src/main/java/io/trino/spi/variant/Variant.java901 /// | {@code UUID} | PRIMITIVE | UUID |COMMENT
LOW…in/java/io/trino/spi/variant/VariantFieldRemapper.java21import static io.trino.spi.variant.VariantDecoder.decode;COMMENT
LOW…o-spi/src/main/java/io/trino/spi/block/ValueBlock.java41 {COMMENT
LOW…trino-spi/src/main/java/io/trino/spi/block/Bitmap.java21import static java.lang.String.format;COMMENT
LOW…ql/planner/planprinter/TestCounterBasedAnonymizer.java61// .isEqualTo("'varchar_literal_1'");COMMENT
LOW…ql/planner/optimizations/TestAdaptivePartitioning.java141COMMENT
LOW…/java/io/trino/sql/routine/TestSqlRoutineCompiler.java101 assertThat(handle.invoke(123L)).isEqualTo(123L * 99);COMMENT
LOW…/java/io/trino/sql/routine/TestSqlRoutineCompiler.java181 // top: WHILE a < 10 DOCOMMENT
LOW…/src/test/java/io/trino/sql/query/TestExpressions.java101 // Because of the failing in-list item 5 / 0, the in-predicate cannot be simplified.COMMENT
LOW…src/main/java/io/trino/util/variant/VariantWriter.java81 /// field IDs from the `Metadata.Builder`.COMMENT
LOW…-main/src/main/java/io/trino/jsonpath/XQueryRegex.java21/// Translates XQuery / SQL:2023 `like_regex` patterns for execution by Trino's regex engineCOMMENT
LOW…/src/main/java/io/trino/cost/TopNRankingStatsRule.java101 else if (node.getRankingType() == RANK) {COMMENT
LOW…/src/main/java/io/trino/cost/TopNRankingStatsRule.java121 // rowsPerDistinctValue is always >= 1.0, otherwise we will underestimate the rows per partition.COMMENT
LOW…/src/main/java/io/trino/cost/TopNRankingStatsRule.java201 // Consider that order by columns are COL1, COL2 for the below single partition:COMMENT
LOW…ain/src/main/java/io/trino/server/ThrowableMapper.java41 @InjectCOMMENT
LOW…src/main/java/io/trino/type/IntervalYearMonthType.java21import java.util.Map;COMMENT
LOW…tion/executor/timesharing/TimeSharingTaskExecutor.java1141 //COMMENT
LOW…/main/java/io/trino/execution/buffer/ClientBuffer.java321 // provided sequenceId. Then pages starting from the sequenceId areCOMMENT
LOW…va/io/trino/connector/system/jdbc/ColumnJdbcTable.java521 // 5 digits for yearCOMMENT
LOW…o/operator/join/nonspilling/LookupJoinPageBuilder.java201 verify(position >= 0 && previousPosition <= position);COMMENT
LOW…rino/operator/join/spilling/LookupJoinPageBuilder.java161 estimatedProbeBlockBytes += Integer.BYTES;COMMENT
LOW…no/operator/scalar/preimage/VarcharToDatePreimage.java41/// leading run of digits, which has no leading zero. Any other first character can start aCOMMENT
LOW…trino/sql/ir/optimizer/rule/SimplifyRedundantCase.java81 // WHEN a3 THEN trueCOMMENT
LOW…n/java/io/trino/sql/planner/LocalExecutionPlanner.java3941 verify(lambdas.size() == functionTypes.size());COMMENT
LOW…src/main/java/io/trino/sql/planner/PlanFragmenter.java441 @OverrideCOMMENT
LOW…c/main/java/io/trino/sql/planner/DomainTranslator.java381 }COMMENT
LOW…trino/sql/planner/planprinter/WindowOperatorStats.java101 // In such case, WindowOperator will be inefficient because parallelism will go down.COMMENT
LOW…no/sql/planner/optimizations/PlanNodeDecorrelator.java201 return rewriteLimitWithRowCountOne(childDecorrelationResult, node.getId());COMMENT
LOW…sql/planner/optimizations/UnaliasSymbolReferences.java821 }COMMENT
LOW…planner/iterative/rule/PushPredicateIntoTableScan.java341 Expression unenforcedConstraints,COMMENT
LOW…anner/iterative/rule/LimitBoolOrAggregationSource.java41COMMENT
LOW…anner/iterative/rule/ImplementTableFunctionSource.java381 // Align matching partitions (co-partitions) from left and right source, according to row number.COMMENT
LOW…anner/iterative/rule/ImplementTableFunctionSource.java401 comparison(metadata, getCharVarcharCoercion(context.getSession()), GREATER_THAN,COMMENT
LOW…anner/iterative/rule/ImplementTableFunctionSource.java421 // P1 C1 P2 C2COMMENT
LOW…/iterative/rule/PushPartialAggregationThroughJoin.java221 // Only push aggregation down if pushed grouping set is of same size or smaller. This is becauseCOMMENT
LOW…/sql/planner/iterative/rule/PushTopNIntoTableScan.java101 Optional.empty());COMMENT
LOW…/main/java/io/trino/sql/analyzer/JsonPathAnalyzer.java121 }COMMENT
LOW…main/java/io/trino/sql/analyzer/JsonAccessorChain.java41/// `j.foo[3].bar.*` that's `[[3], .bar, .*]`. These never join theCOMMENT
LOW…main/java/io/trino/sql/analyzer/JsonAccessorChain.java61/// @param prefix the leading identifiers of the chain. Some leading subsequence of themCOMMENT
LOW…main/java/io/trino/sql/analyzer/JsonAccessorChain.java81 /// to a matched prefix length.COMMENT
LOW…main/java/io/trino/sql/analyzer/JsonAccessorChain.java161 }COMMENT
LOW…ain/java/io/trino/sql/analyzer/ExpressionAnalyzer.java1981 // once for the binding, once for the type-based resolution. Lifting it into theCOMMENT
LOW…java/io/trino/sql/tree/PatternRecognitionRelation.java201 // Output a single summary row for every match, including empty matches.COMMENT
LOW…/java/io/trino/plugin/iceberg/ExpressionConverter.java281 // Example:COMMENT
LOW…n/iceberg/catalog/rest/SharedSessionOAuth2Manager.java21import java.time.Duration;COMMENT
LOW…t/java/io/trino/plugin/deltalake/TestSplitPruning.java81 String tableName = type + "_inf";COMMENT
LOW…t/java/io/trino/plugin/deltalake/TestSplitPruning.java281 }COMMENT
LOW…ltalake/transactionlog/TestDeltaLakeSchemaSupport.java121 }COMMENT
31 more matches not shown…
Synthetic Comment Markers4 hits · 41 pts
SeverityFileLineSnippetContext
HIGHdocs/src/main/sphinx/release/release-410.md13* Fix query failure when reading Parquet files generated by Airbyte. ({issue}`16362`)COMMENT
HIGH⚡docs/src/main/sphinx/release/release-410.md24* Fix query failure when reading Parquet files generated by Airbyte. ({issue}`16362`)COMMENT
HIGH⚡docs/src/main/sphinx/release/release-410.md30* Fix query failure when reading Parquet files generated by Airbyte. ({issue}`16362`)COMMENT
HIGH⚡docs/src/main/sphinx/release/release-410.md35* Fix query failure when reading Parquet files generated by Airbyte. ({issue}`16362`)COMMENT
AI Slop Vocabulary10 hits · 29 pts
SeverityFileLineSnippetContext
MEDIUM…t/java/io/trino/sql/planner/TestEqualityInference.java317 // All scope equalities should utilize the constant if possibleCOMMENT
MEDIUM…/main/java/io/trino/operator/MarkDistinctOperator.java180 // Essentially we would love to have clean interfaces to support both pushing and pulling memory usageCOMMENT
MEDIUM…src/main/java/io/trino/operator/RowNumberOperator.java263 // Essentially we would love to have clean interfaces to support both pushing and pulling memory usageCOMMENT
MEDIUM…main/java/io/trino/operator/DistinctLimitOperator.java225 // Essentially we would love to have clean interfaces to support both pushing and pulling memory usageCOMMENT
MEDIUM…src/main/java/io/trino/sql/planner/PlanOptimizers.java718 // to leverage predicate pushdown on projected columns.COMMENT
MEDIUM…src/main/java/io/trino/sql/planner/PlanOptimizers.java800 // to leverage predicate pushdown on projected columns.COMMENT
MEDIUM…src/main/java/io/trino/sql/planner/PlanOptimizers.java940 // Run predicate push down one more time in case we can leverage new information from layouts' effective predicaCOMMENT
MEDIUM…src/main/java/io/trino/sql/planner/PlanOptimizers.java967 // to leverage predicate pushdown on projected columns and to pushdown dynamic filters.COMMENT
MEDIUM…/trino/spooling/filesystem/SimpleFileSystemLayout.java51 return Optional.empty(); // Definitely not a segmentCODE
MEDIUM…main/java/io/trino/testing/tpch/TpchIndexMetadata.java57 // Note: technically we could more efficiently utilize the overlapped columns, but this way is simpler for nowCOMMENT
Hyper-Verbose Identifiers24 hits · 24 pts
SeverityFileLineSnippetContext
LOW…o-web-ui/src/main/resources/webapp-legacy/src/utils.js188export function addExponentiallyWeightedToHistory(value: number, valuesArray: number[]): number[] {CODE
LOW…no-web-ui/src/main/resources/webapp/src/utils/utils.ts84export function addExponentiallyWeightedToHistory(value: number, valuesArray: number[]): number[] {CODE
LOW…o/server/remotetask/TestSimpleHttpResponseHandler.java28public class TestSimpleHttpResponseHandlerCODE
LOW…n/src/main/java/io/trino/server/ui/WorkerResource.java214 private static class StreamingJsonResponseHandlerCODE
LOW…no/server/security/oauth2/NimbusAirliftHttpClient.java117 public static class NimbusResponseHandler<T>CODE
LOW…in/java/io/trino/server/remotetask/HttpRemoteTask.java1224 private class UpdateResponseHandlerCODE
LOW…trino/server/remotetask/SimpleHttpResponseHandler.java28public class SimpleHttpResponseHandler<T>CODE
LOW…/main/java/io/trino/operator/HttpPageBufferClient.java662 public static class PageResponseHandlerCODE
LOW.github/bin/build-matrix-schedule-aware.py132 def build_impacted_matrix_includes(CODE
LOW.github/bin/build-matrix-schedule-aware.py455 def test_load_schedule_configs(self):CODE
LOW.github/bin/build-matrix-schedule-aware.py508 def test_load_schedule_configs_invalid_timeout(self):STRING
LOW.github/bin/build-matrix-schedule-aware.py583 def test_build_matrix_module_sets(self):STRING
LOW.github/bin/build-matrix-schedule-aware.py605 def test_build_matrix_additional_properties(self):STRING
LOW.github/bin/build-matrix-schedule-aware.py631 def test_build_matrix_default_when(self):STRING
LOW.github/bin/build-matrix-schedule-aware.py684 def test_build_matrix_impacted(self):STRING
LOW.github/bin/build-matrix-schedule-aware.py710 def test_build_matrix_ignore_impact(self):STRING
LOW.github/bin/check-cla.js127function findMissingClaContributors(commits, contributors) {CODE
LOW.github/bin/check-cla.js307async function bestEffortUpdatePullRequests(update) {CODE
LOW⚡.github/bin/build-pt-matrix.py277 def test_plugin_used_by_smoke_suite_only(self):CODE
LOW⚡.github/bin/build-pt-matrix.py280 def test_library_bundled_in_plugins(self):CODE
LOW⚡.github/bin/build-pt-matrix.py287 def test_module_outside_server(self):CODE
LOW⚡.github/bin/build-pt-matrix.py290 def test_plugin_installed_by_default(self):CODE
LOW⚡.github/bin/build-pt-matrix.py296 def test_product_tests_classpath(self):CODE
LOW…sloader/ClassLoaderSafeTableFunctionDataProcessor.java24public class ClassLoaderSafeTableFunctionDataProcessorCODE
Fake / Example Data23 hits · 22 pts
SeverityFileLineSnippetContext
LOW…ui/src/main/resources/webapp-legacy/assets/js/login.js27 .prop('placeholder', 'Password not allowed')CODE
LOW…th2/TestOAuth2WebUiAuthenticationFilterWithOpaque.java78 assertThat(claims.getSubject()).isEqualTo("foo@bar.com");CODE
LOW…h2/BaseOAuth2WebUiAuthenticationFilterWithJwtTest.java75 assertThat(claims.getSubject()).isEqualTo("foo@bar.com");CODE
LOW…rver/security/oauth2/TestingHydraIdentityProvider.java300 mapper.writeValueAsString(mapper.createObjectNode().put("subject", "foo@bar.CODE
LOW…ty/oauth2/BaseOAuth2WebUiAuthenticationFilterTest.java232 .put("sub", "foo@bar.com")CODE
LOW…ty/oauth2/BaseOAuth2WebUiAuthenticationFilterTest.java367 assertThat(claims.getSubject()).isEqualTo("foo@bar.com");CODE
LOW…est/java/io/trino/plugin/opa/TestOpaAccessControl.java229 Identity dummyIdentity = Identity.forUser("dummy-user")CODE
LOW…est/java/io/trino/plugin/opa/TestOpaAccessControl.java241 "user": "dummy-user",STRING
LOW…t/java/io/trino/plugin/hive/BaseHiveConnectorTest.java8495 AS SELECT 'dummy_value' as dummy_col WITH NO DATASTRING
LOW…va/io/trino/plugin/ignite/TestIgniteConnectorTest.java301 assertQueryFails("CREATE TABLE " + tableName + "(a bigint) WITH (primary_key = ARRAY['dummy_id'])",CODE
LOW…va/io/trino/plugin/ignite/TestIgniteConnectorTest.java302 "Column 'dummy_id' specified in property 'primary_key' doesn't exist in table");CODE
LOW…va/io/trino/plugin/ignite/TestIgniteConnectorTest.java326 "dummy_id varchar NOT NULL primary key)");CODE
LOW…va/io/trino/plugin/ignite/TestIgniteConnectorTest.java348 primary_key = ARRAY['dummy_id']STRING
LOW…src/main/java/io/trino/plugin/ignite/IgniteClient.java151 private static final String IGNITE_DUMMY_ID = "dummy_id";CODE
LOW…c/main/java/io/trino/plugin/ignite/IgniteMetadata.java63 private static final String IGNITE_DUMMY_ID = "dummy_id";CODE
LOW…trino/plugin/ai/functions/AbstractTestAiFunctions.java187 .isEqualTo(ImmutableMap.of("person", "John Doe", "location", "New York", "organization", "Acme Corp"));CODE
LOW…trino/plugin/ai/functions/AbstractTestAiFunctions.java187 .isEqualTo(ImmutableMap.of("person", "John Doe", "location", "New York", "organization", "Acme Corp"));CODE
LOWdocs/src/main/sphinx/udf/sql/examples.md113SELECT hello('Jane Doe'); -- Hello, Jane Doe!CODE
LOW…/src/test/resources/oauth2/login_and_consent_server.py35 data=json.dumps({"subject": "foo@bar.com"}).encode()),CODE
LOW…o/trino/tests/product/iceberg/TestIcebergOptimize.java54 "(1, 'Poland', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque rutrum erat faucibCODE
LOW…o/trino/tests/product/iceberg/TestIcebergOptimize.java54 "(1, 'Poland', 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque rutrum erat faucibCODE
LOW…ching/src/test/java/io/trino/matching/TestMatcher.java49 assertMatch(any(), "John Doe");CODE
LOW…ching/src/test/java/io/trino/matching/TestMatcher.java54 assertNoMatch(typeOf(Integer.class), "John Doe");CODE
TODO Padding10 hits · 15 pts
SeverityFileLineSnippetContext
LOW…src/main/java/io/trino/spi/connector/RecordCursor.java56 // TODO: implement this method in subclasses and remove this default implementationCOMMENT
LOW…no-main/src/test/java/io/trino/block/TestMapBlock.java69 // TODO: Add test case for a sliced MapBlockCOMMENT
LOW…/java/io/trino/execution/buffer/PagesSerdeFactory.java106 // TODO: implement getRetainedSizeInBytes in Lz4Decompressor and ZstdDecompressorCOMMENT
LOW…io/trino/operator/aggregation/AccumulatorCompiler.java448 // TODO: implement masking based on maskChannel field once Window Functions support DISTINCT arguments to the fuCOMMENT
LOW…ino/sql/planner/optimizations/PropertyDerivations.java700 // TODO: implement full properties for local exchangesCOMMENT
LOW…trino/plugin/bigquery/BigQueryNamedRelationHandle.java101 // TODO: Add tests for this (see TestJdbcTableHandle#testEquivalence for reference)COMMENT
LOW…/src/main/java/io/trino/testing/BaseConnectorTest.java4359 // TODO: Add test for CREATE TABLE AS SELECT with long column nameCOMMENT
LOW…test/java/io/trino/execution/TestTableRedirection.java448 // TODO: Add tests for redirection in CommentsSystemTable and CREATE TABLE LIKECOMMENT
LOW…src/main/java/io/trino/jdbc/TrinoDatabaseMetaData.java1457 // TODO: implement thisCOMMENT
LOW…src/main/java/io/trino/jdbc/TrinoDatabaseMetaData.java1468 // TODO: implement thisCOMMENT
Structural Annotation Overuse7 hits · 10 pts
SeverityFileLineSnippetContext
LOWdocs/src/main/sphinx/connector/kafka-tutorial.md15### Step 1: Install Apache KafkaCOMMENT
LOWdocs/src/main/sphinx/connector/kafka-tutorial.md41### Step 2: Load dataCOMMENT
LOWdocs/src/main/sphinx/connector/kafka-tutorial.md84### Step 3: Make the Kafka topics known to TrinoCOMMENT
LOWdocs/src/main/sphinx/connector/kafka-tutorial.md130### Step 4: Basic data queryingCOMMENT
LOWdocs/src/main/sphinx/connector/kafka-tutorial.md180### Step 5: Add a topic description fileCOMMENT
LOWdocs/src/main/sphinx/connector/kafka-tutorial.md245### Step 6: Map all the values from the topic message onto columnsCOMMENT
LOWdocs/src/main/sphinx/connector/kafka-tutorial.md369### Step 7: Use live dataCOMMENT
Empty Error Handlers2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHdocs/src/main/sphinx/conf.py27except:CODE
HIGH.github/bin/prepare-check-commits-matrix.py66except ValueError:CODE
Self-Referential Comments2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMdocs/src/main/sphinx/conf.py18# This file is execfile()d with the current directory set to its containing dir.COMMENT
MEDIUM.github/workflows/ci.yml644 # Create an empty S3 bucket for S3 filesystem cloud tests and add the bucket name to GitHub environment variabCOMMENT
Verbosity Indicators2 hits · 3 pts
SeverityFileLineSnippetContext
LOW…c/main/java/io/trino/spi/predicate/SortedRangeSet.java771 // otherwise we need to check if each range is single valueCOMMENT
LOW…c/main/java/io/trino/spi/predicate/SortedRangeSet.java1191 // otherwise we need to check if each range is single valueCOMMENT
Decorative Section Separators1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUM…rino/plugin/hive/crypto/TestHiveParquetEncryption.java185 // ───────────────────────── writer ─────────────────────────COMMENT
Unused Imports3 hits · 3 pts
SeverityFileLineSnippetContext
LOWdocs/src/main/sphinx/ext/download.py16CODE
LOWdocs/src/main/sphinx/ext/download.py18CODE
LOWdocs/src/main/sphinx/ext/issue.py16CODE
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOWcore/docker/container-test.sh51 # Check if JAVA_HOME worksCOMMENT
Modern Structural Boilerplate1 hit · 1 pts
SeverityFileLineSnippetContext
LOWdocs/src/main/sphinx/ext/redirects.py25logger = logging.getLogger(__name__)CODE
Deep Nesting1 hit · 1 pts
SeverityFileLineSnippetContext
LOWdocs/src/main/sphinx/ext/redirects.py33CODE