Repository Analysis

prestodb/presto

The official home of the Presto distributed SQL query engine for big data

0.8 Likely human-written View on GitHub
0.8
Adjusted Score
0.8
Raw Score
100%
Time Factor
2026-05-30
Last Push
16,706
Stars
Java
Language
1,930,268
Lines of Code
11551
Files
645
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 84HIGH 2MEDIUM 15LOW 544

Pattern Findings

645 matches across 13 categories. Click a row to expand file-level details.

Hallucination Indicators84 hits · 970 pts
SeverityFileLineSnippet
CRITICAL…ebook/presto/hive/metastore/TestHiveMetastoreUtil.java63 private static final org.apache.hadoop.hive.metastore.api.Table TEST_TABLE = new org.apache.hadoop.hive.metastore.ap
CRITICAL…ebook/presto/hive/metastore/TestHiveMetastoreUtil.java83 private static final org.apache.hadoop.hive.metastore.api.Partition TEST_PARTITION = new org.apache.hadoop.hive.meta
CRITICAL…ebook/presto/hive/metastore/TestHiveMetastoreUtil.java102 private static final org.apache.hadoop.hive.metastore.api.Table TEST_TABLE_WITH_UNSUPPORTED_FIELDS = new org.apache.
CRITICAL…ebook/presto/hive/metastore/TestHiveMetastoreUtil.java117 private static final org.apache.hadoop.hive.metastore.api.Partition TEST_PARTITION_WITH_UNSUPPORTED_FIELDS = new org
CRITICAL…n/java/com/facebook/presto/hive/HiveStorageFormat.java57 com.facebook.hive.orc.OrcSerde.class.getName(),
CRITICAL…n/java/com/facebook/presto/hive/HiveStorageFormat.java58 com.facebook.hive.orc.OrcInputFormat.class.getName(),
CRITICAL…n/java/com/facebook/presto/hive/HiveStorageFormat.java59 com.facebook.hive.orc.OrcOutputFormat.class.getName(),
CRITICAL…book/presto/hive/metastore/glue/GlueHiveMetastore.java718 newDataColumns.add(software.amazon.awssdk.services.glue.model.Column.builder()
CRITICAL…/hive/metastore/glue/converter/GlueInputConverter.java143 return software.amazon.awssdk.services.glue.model.Column.builder()
CRITICAL…/presto/hive/metastore/thrift/ThriftMetastoreUtil.java145 org.apache.hadoop.hive.metastore.api.Database result = new org.apache.hadoop.hive.metastore.api.Database();
CRITICAL…/presto/hive/metastore/thrift/ThriftMetastoreUtil.java158 org.apache.hadoop.hive.metastore.api.Table result = new org.apache.hadoop.hive.metastore.api.Table();
CRITICAL…/presto/hive/metastore/thrift/ThriftMetastoreUtil.java374 org.apache.hadoop.hive.metastore.api.Partition result = new org.apache.hadoop.hive.metastore.api.Partition();
CRITICAL…c/src/test/java/com/facebook/presto/orc/OrcTester.java1999 com.facebook.hive.orc.Reader reader = com.facebook.hive.orc.OrcFile.createReader(
CRITICAL…c/src/test/java/com/facebook/presto/orc/OrcTester.java2434 com.facebook.hive.orc.OrcConf.setVar(jobConf, HIVE_ORC_COMPRESSION, compressionCodec.name());
CRITICAL…c/src/test/java/com/facebook/presto/orc/OrcTester.java2435 com.facebook.hive.orc.OrcConf.setIntVar(jobConf, HIVE_ORC_ENTROPY_STRING_THRESHOLD, 1);
CRITICAL…c/src/test/java/com/facebook/presto/orc/OrcTester.java2436 com.facebook.hive.orc.OrcConf.setIntVar(jobConf, HIVE_ORC_DICTIONARY_ENCODING_INTERVAL, 2);
CRITICAL…c/src/test/java/com/facebook/presto/orc/OrcTester.java2437 com.facebook.hive.orc.OrcConf.setBoolVar(jobConf, HIVE_ORC_BUILD_STRIDE_DICTIONARY, true);
CRITICAL…to/spark/execution/http/PrestoSparkHttpTaskClient.java828 com.google.common.net.MediaType parsedMediaType = com.google.common.net.MediaType.parse(value);
CRITICAL…m/facebook/presto/pinot/TestPinotBrokerPageSource.java137 "{ \"exceptions\": [ { \"errorCode\": 200, \"message\": \"QueryExecutionError:\\njava.lang.NumberFor
CRITICAL…to/teradata/functions/dateformat/DateFormatParser.java131 DateFormat lexer = new com.facebook.presto.teradata.functions.DateFormat(new ANTLRInputStream(format));
CRITICAL…acebook/presto/plugin/clickhouse/ClickHouseClient.java624 com.facebook.presto.plugin.clickhouse.RemoteTableNameCacheKey cacheKey = new com.facebook.presto.plugin.
CRITICAL…c/main/java/com/facebook/presto/druid/DruidConfig.java121 configuration.set("fs.hdfs.impl", org.apache.hadoop.hdfs.DistributedFileSystem.class.getName());
CRITICAL…c/main/java/com/facebook/presto/druid/DruidConfig.java122 configuration.set("fs.file.impl", org.apache.hadoop.fs.LocalFileSystem.class.getName());
CRITICAL…java/com/facebook/presto/iceberg/TestIcebergTypes.java112 com.facebook.presto.testing.assertions.Assert.assertEquals(lateRows, lateRowsFromEquals);
CRITICAL…java/com/facebook/presto/iceberg/TestIcebergTypes.java118 com.facebook.presto.testing.assertions.Assert.assertEquals(earlyRows, earlyRowsFromEquals);
CRITICAL…cebook/presto/iceberg/IcebergNativeCatalogFactory.java157 configuration.set("fs.hdfs.impl", org.apache.hadoop.hdfs.DistributedFileSystem.class.getName());
CRITICAL…cebook/presto/iceberg/IcebergNativeCatalogFactory.java158 configuration.set("fs.file.impl", org.apache.hadoop.fs.LocalFileSystem.class.getName());
CRITICAL…t/java/com/facebook/presto/mongodb/TestMongoViews.java85 QueryRunner queryRunner = com.facebook.presto.tests.DistributedQueryRunner.builder(session)
CRITICAL…book/presto/plugin/prometheus/TestPrometheusSplit.java144 com.facebook.airlift.units.Duration.timeUnitToString(config.getQueryChunkSizeDuration().getUnit());
CRITICAL…book/presto/plugin/prometheus/TestPrometheusSplit.java151 config.setMaxQueryRangeDuration(com.facebook.airlift.units.Duration.valueOf("21d"));
CRITICAL…book/presto/plugin/prometheus/TestPrometheusSplit.java152 config.setQueryChunkSizeDuration(com.facebook.airlift.units.Duration.valueOf("1d"));
CRITICAL…book/presto/plugin/prometheus/TestPrometheusSplit.java153 config.setCacheDuration(com.facebook.airlift.units.Duration.valueOf("30s"));
CRITICAL…/com/facebook/presto/hive/TestHudiDirectoryLister.java59 hadoopConf.set("fs.hdfs.impl", org.apache.hadoop.hdfs.DistributedFileSystem.class.getName());
CRITICAL…/com/facebook/presto/hive/TestHudiDirectoryLister.java60 hadoopConf.set("fs.file.impl", org.apache.hadoop.fs.LocalFileSystem.class.getName());
CRITICAL…/com/facebook/presto/hive/TestHudiDirectoryLister.java76 hadoopConf.set("fs.hdfs.impl", org.apache.hadoop.hdfs.DistributedFileSystem.class.getName());
CRITICAL…/com/facebook/presto/hive/TestHudiDirectoryLister.java77 hadoopConf.set("fs.file.impl", org.apache.hadoop.fs.LocalFileSystem.class.getName());
CRITICAL…est/java/com/facebook/presto/hive/TestHiveAnalyze.java66 assertUpdate(format("CREATE TABLE %s (a_varchar varchar, month varchar) WITH (partitioned_by = ARRAY['month'], e
CRITICAL…est/java/com/facebook/presto/hive/TestHiveAnalyze.java107 assertUpdate(format("CREATE TABLE %s (a_varchar varchar, month varchar) WITH (partitioned_by = ARRAY['month'], e
CRITICAL…k/presto/hive/TestGenericHiveRecordCursorProvider.java169 hadoopConf.set("fs.file.impl", org.apache.hadoop.fs.LocalFileSystem.class.getName());
CRITICAL…k/presto/hive/TestGenericHiveRecordCursorProvider.java186 hadoopConf.set("fs.file.impl", org.apache.hadoop.fs.LocalFileSystem.class.getName());
CRITICAL…va/com/facebook/presto/hive/parquet/ParquetTester.java414 org.apache.parquet.hadoop.metadata.CompressionCodecName compressionCodecName = org.apache.parquet.hadoop
CRITICAL…resto/hive/metastore/glue/TestingMetastoreObjects.java108 return com.facebook.presto.hive.metastore.Database.builder()
CRITICAL…resto/hive/metastore/glue/TestingMetastoreObjects.java119 return com.facebook.presto.hive.metastore.Table.builder()
CRITICAL…resto/hive/metastore/glue/TestingMetastoreObjects.java134 return com.facebook.presto.hive.metastore.Partition.builder()
CRITICAL…resto/hive/metastore/glue/TestingMetastoreObjects.java146 return new com.facebook.presto.hive.metastore.Column("test-col" + generateRandom(), HiveType.HIVE_STRING, Option
CRITICAL…ava/com/facebook/presto/hive/OrcFileWriterFactory.java214 else if (com.facebook.hive.orc.OrcOutputFormat.class.getName().equals(storageFormat.getOutputFormat())) {
CRITICAL…/com/facebook/presto/hive/util/ConfigurationUtils.java110 com.facebook.hive.orc.OrcConf.setVar(config, HIVE_ORC_COMPRESSION, compression.getOrcCompressionKind().name());
CRITICAL…m/facebook/presto/lance/TestLanceSqlFilterBuilder.java87 ImmutableMap.of(column, Domain.multipleValues(BIGINT, com.google.common.collect.ImmutableList.of(1L, 2L,
CRITICAL…o/sql/planner/TestBasePlanFragmenterTransportType.java174 new com.facebook.presto.spi.plan.PartitioningScheme(
CRITICAL…o/sql/planner/TestBasePlanFragmenterTransportType.java175 com.facebook.presto.spi.plan.Partitioning.create(
CRITICAL…o/sql/planner/TestBasePlanFragmenterTransportType.java186 new com.facebook.presto.spi.plan.PartitioningScheme(
CRITICAL…o/sql/planner/TestBasePlanFragmenterTransportType.java187 com.facebook.presto.spi.plan.Partitioning.create(
CRITICAL…o/sql/planner/TestBasePlanFragmenterTransportType.java203 new com.facebook.presto.spi.plan.PlanFragmentId(0),
CRITICAL…o/sql/planner/TestBasePlanFragmenterTransportType.java205 com.google.common.collect.ImmutableSet.of(col),
CRITICAL…o/sql/planner/TestBasePlanFragmenterTransportType.java208 new com.facebook.presto.spi.plan.PartitioningScheme(
CRITICAL…o/sql/planner/TestBasePlanFragmenterTransportType.java209 com.facebook.presto.spi.plan.Partitioning.create(
CRITICAL…o/sql/planner/TestBasePlanFragmenterTransportType.java214 com.facebook.presto.spi.plan.StageExecutionDescriptor.ungroupedExecution(),
CRITICAL…o/sql/planner/TestBasePlanFragmenterTransportType.java225 new com.facebook.presto.spi.plan.PlanFragmentId(1),
CRITICAL…o/sql/planner/TestBasePlanFragmenterTransportType.java227 com.google.common.collect.ImmutableSet.of(col),
CRITICAL…o/sql/planner/TestBasePlanFragmenterTransportType.java230 new com.facebook.presto.spi.plan.PartitioningScheme(
24 more matches not shown…
Over-Commented Block427 hits · 350 pts
SeverityFileLineSnippet
LOW.yamlfmt.yml1# Licensed under the Apache License, Version 2.0 (the "License");
LOW.pre-commit-config.yaml1# Licensed under the Apache License, Version 2.0 (the "License");
LOW.yamllint.yml1# Licensed under the Apache License, Version 2.0 (the "License");
LOW…book/presto/hive/metastore/glue/GlueHiveMetastore.java161public class GlueHiveMetastore
LOW…est/java/com/facebook/presto/orc/TestStreamLayout.java141 // Node 6, Column 1, Type: INT (absent in flat maps)
LOW…com/facebook/presto/orc/stream/LongOutputStreamV2.java641 // header to record the gap width. To deal with this case, we will save
LOW…/facebook/presto/orc/writer/TimestampColumnWriter.java161 }
LOW…/facebook/presto/orc/writer/TimestampColumnWriter.java181 // 2 0b001 123456700 (1234567 << 3) | 0b001
LOW…book/presto/orc/writer/LongDictionaryColumnWriter.java161 }
LOW…om/facebook/presto/orc/metadata/OrcMetadataReader.java421 break;
LOW…presto/pinot/query/PinotFilterExpressionConverter.java141 // Handle the binary comparison logic of <DATE/TIMESTAMP field> <binary op> <DATE/TIMESTAMP literal>.
LOW…m/facebook/presto/pinot/query/PinotQueryGenerator.java401 }
LOWpresto-native-execution/CMakeLists.txt1# Licensed under the Apache License, Version 2.0 (the "License");
LOWpresto-native-execution/docker-compose.yml1# Licensed under the Apache License, Version 2.0 (the "License");
LOWpresto-native-execution/entrypoint.sh1#!/bin/sh
LOWpresto-native-execution/presto_cpp/CMakeLists.txt1# Licensed under the Apache License, Version 2.0 (the "License");
LOWpresto-native-execution/presto_cpp/docs/conf.py1# Licensed under the Apache License, Version 2.0 (the "License");
LOWpresto-native-execution/presto_cpp/docs/conf.py21# add these directories to sys.path here. If the directory is relative to the
LOWpresto-native-execution/presto_cpp/docs/conf.py41
LOW…ve-execution/presto_cpp/presto_protocol/topological.py1# Licensed under the Apache License, Version 2.0 (the "License");
LOW…ve-execution/presto_cpp/presto_protocol/CMakeLists.txt1# Licensed under the Apache License, Version 2.0 (the "License");
LOW…to-native-execution/presto_cpp/presto_protocol/util.py1# Licensed under the Apache License, Version 2.0 (the "License");
LOW…execution/presto_cpp/presto_protocol/presto_protocol.h21#include "presto_cpp/presto_protocol/connector/iceberg/presto_protocol_iceberg.h"
LOW…ecution/presto_cpp/presto_protocol/presto_protocol.cpp21#include "presto_cpp/presto_protocol/connector/tpcds/presto_protocol_tpcds.cpp"
LOW…ecution/presto_cpp/presto_protocol/presto_protocol.yml1# Licensed under the Apache License, Version 2.0 (the "License");
LOW…tion/presto_cpp/presto_protocol/java-to-struct-json.py1#!/usr/bin/env python3
LOW…presto_cpp/presto_protocol/core/presto_protocol_core.h21#include <exception>
LOW…esto_cpp/presto_protocol/core/presto_protocol_core.yml1# Licensed under the Apache License, Version 2.0 (the "License");
LOW…cution/presto_cpp/presto_protocol/tests/CMakeLists.txt1# Licensed under the Apache License, Version 2.0 (the "License");
LOW…onnector/arrow_flight/presto_protocol_arrow_flight.yml1# Licensed under the Apache License, Version 2.0 (the "License");
LOW…protocol/connector/iceberg/presto_protocol_iceberg.yml1# Licensed under the Apache License, Version 2.0 (the "License");
LOW…sto_protocol/connector/tpcds/presto_protocol_tpcds.yml1# Licensed under the Apache License, Version 2.0 (the "License");
LOW…resto_protocol/connector/tpch/presto_protocol_tpch.yml1# Licensed under the Apache License, Version 2.0 (the "License");
LOW…resto_protocol/connector/hive/presto_protocol_hive.yml1# Licensed under the Apache License, Version 2.0 (the "License");
LOWpresto-native-execution/presto_cpp/external/xxhash.h161# define XXH32_state_s XXH_IPREF(XXH32_state_s)
LOWpresto-native-execution/presto_cpp/external/xxhash.h181/* specific declaration modes for Windows */
LOWpresto-native-execution/presto_cpp/external/xxhash.h201 * (therefore, avoid empty or numeric values).
LOWpresto-native-execution/presto_cpp/external/xxhash.h221# define XXH64_createState XXH_NAME2(XXH_NAMESPACE, XXH64_createState)
LOWpresto-native-execution/presto_cpp/external/xxhash.h481#ifdef XXH_NAMESPACE
LOWpresto-native-execution/presto_cpp/external/xxhash.h521 * Note: seed==0 produces the same results as XXH3_64bits().
LOWpresto-native-execution/presto_cpp/external/xxhash.h841/* *************************************
LOWpresto-native-execution/presto_cpp/external/xxhash.h1001# define XXH_rotl32 __builtin_rotateleft32
LOWpresto-native-execution/presto_cpp/external/xxh3.h61/* special: when including `xxh3.h` directly, turn on XXH_INLINE_ALL */
LOWpresto-native-execution/presto_cpp/external/xxh3.h81# define XXH_unlikely(x) __builtin_expect(x, 0)
LOWpresto-native-execution/presto_cpp/external/xxh3.h181# if defined(__AVX2__)
LOWpresto-native-execution/presto_cpp/external/xxh3.h201 * This is for compatibility with aligned vector loads, which are usually faster.
LOWpresto-native-execution/presto_cpp/external/xxh3.h361# endif
LOWpresto-native-execution/presto_cpp/external/xxh3.h441/* prefetch
LOW…e-execution/presto_cpp/external/json/nlohmann/json.hpp21#include <algorithm> // all_of, find, for_each
LOW…e-execution/presto_cpp/external/json/nlohmann/json.hpp41// SPDX-License-Identifier: MIT
LOW…e-execution/presto_cpp/external/json/nlohmann/json.hpp61 #if defined(NLOHMANN_JSON_VERSION_MAJOR) && defined(NLOHMANN_JSON_VERSION_MINOR) && defined(NLOHMANN_JSON_VERSION_PA
LOW…e-execution/presto_cpp/external/json/nlohmann/json.hpp81 #define JSON_USE_LEGACY_DISCARDED_VALUE_COMPARISON 0
LOW…e-execution/presto_cpp/external/json/nlohmann/json.hpp161// __ _____ _____ _____
LOW…e-execution/presto_cpp/external/json/nlohmann/json.hpp181#include <type_traits> // is_arithmetic, is_same, is_enum, underlying_type, is_convertible
LOW…e-execution/presto_cpp/external/json/nlohmann/json.hpp201#endif
LOW…e-execution/presto_cpp/external/json/nlohmann/json.hpp221
LOW…e-execution/presto_cpp/external/json/nlohmann/json.hpp241// SPDX-License-Identifier: MIT
LOW…e-execution/presto_cpp/external/json/nlohmann/json.hpp341// SPDX-FileCopyrightText: 2016 - 2021 Evan Nemerson <evan@nemerson.com>
LOW…e-execution/presto_cpp/external/json/nlohmann/json.hpp361#endif
LOW…e-execution/presto_cpp/external/json/nlohmann/json.hpp381#endif
367 more matches not shown…
Verbosity Indicators27 hits · 50 pts
SeverityFileLineSnippet
LOW…n/connectors/arrow_flight/tests/data/generate_certs.sh17# Step 1: Generate CA private key and self-signed certificate.
LOW…n/connectors/arrow_flight/tests/data/generate_certs.sh22# Step 2: Generate server private key.
LOW…n/connectors/arrow_flight/tests/data/generate_certs.sh25# Step 3: Generate server certificate signing request (CSR).
LOW…n/connectors/arrow_flight/tests/data/generate_certs.sh30# Step 4: Sign server CSR with the CA certificate to generate the server certificate.
LOW…n/connectors/arrow_flight/tests/data/generate_certs.sh35# Step 5: Generate client private key.
LOW…n/connectors/arrow_flight/tests/data/generate_certs.sh38# Step 6: Generate client certificate signing request (CSR).
LOW…n/connectors/arrow_flight/tests/data/generate_certs.sh42# Step 7: Sign client CSR with the CA certificate to generate the client certificate.
LOW…n/connectors/arrow_flight/tests/data/generate_certs.sh46# Step 8: Output summary.
LOW…n/connectors/arrow_flight/tests/data/generate_certs.sh53# Step 9: Remove unused files.
LOW…ook/presto/hive/functions/gen/ScalarMethodHandles.java90 // Step 1: Declare default constructor
LOW…ook/presto/hive/functions/gen/ScalarMethodHandles.java93 // Step 2: Declare method
LOW…ook/presto/hive/functions/gen/ScalarMethodHandles.java105 // Step 3: Implement method body
LOW…ook/presto/hive/functions/gen/ScalarMethodHandles.java116 // Step 4: Generate class
LOW…ook/presto/hive/functions/gen/ScalarMethodHandles.java122 // Step 5: Lookup MethodHandle
LOW…o/hive/functions/scalar/HiveScalarFunctionInvoker.java74 // Step 1: Create function instance
LOW…o/hive/functions/scalar/HiveScalarFunctionInvoker.java77 // Step 2: Initialize function
LOW…o/hive/functions/scalar/HiveScalarFunctionInvoker.java83 // Step 3: Create invoker
LOW…o/hive/functions/scalar/HiveScalarFunctionInvoker.java94 // Step 4: Create ThreadLocal GenericUDF
LOW…/planner/iterative/rule/PreAggregateBeforeGroupId.java208 // Step 1: Create new PARTIAL AggregationNode on Source
LOW…/planner/iterative/rule/PreAggregateBeforeGroupId.java222 // Step 2: Create Exchange (hash partitioned by grouping keys) to shuffle partial states
LOW…/planner/iterative/rule/PreAggregateBeforeGroupId.java231 // Step 3: Create INTERMEDIATE AggregationNode below GroupId to merge partial states after shuffle
LOW…/planner/iterative/rule/PreAggregateBeforeGroupId.java272 // Step 4: Create new GroupIdNode with INTERMEDIATE output as source
LOW…/planner/iterative/rule/PreAggregateBeforeGroupId.java285 // Step 5: Change the original PARTIAL aggregation above GroupId to INTERMEDIATE.
LOW…c/test/java/com/facebook/presto/server/TestServer.java648 // Step 1: Simulate router POSTing query to backup server with retry header
LOW…c/test/java/com/facebook/presto/server/TestServer.java670 // Step 2: Configure retry URL to point to the backup cluster's retry endpoint
LOW…c/test/java/com/facebook/presto/server/TestServer.java673 // Step 3: Router redirects client to primary server with retry parameters
LOW…c/test/java/com/facebook/presto/server/TestServer.java733 // Step 4: Client follows the redirect link from primary server to backup server
AI Slop Vocabulary14 hits · 40 pts
SeverityFileLineSnippet
MEDIUMpresto-native-execution/presto_cpp/main/PrestoTask.cpp154// To leverage this logic we need to supply Presto's operator names.
MEDIUM…a/com/facebook/presto/iceberg/IcebergSplitManager.java118 // propagate it at split level so the parquet pushdown can leverage it.
MEDIUM…va/com/facebook/presto/iceberg/IcebergSplitSource.java156 // TODO: We should leverage residual expression and convert that to TupleDomain.
MEDIUM…/com/facebook/presto/tests/tpch/TpchIndexMetadata.java78 // Note: technically we could more efficiently utilize the overlapped columns, but this way is simpler for now
MEDIUM…facebook/presto/sql/planner/TestEqualityInference.java305 // All scope equalities should utilize the constant if possible
MEDIUM…com/facebook/presto/operator/MarkDistinctOperator.java183 // Essentially we would love to have clean interfaces to support both pushing and pulling memory usage
MEDIUM…va/com/facebook/presto/operator/RowNumberOperator.java254 // Essentially we would love to have clean interfaces to support both pushing and pulling memory usage
MEDIUM…om/facebook/presto/operator/DistinctLimitOperator.java272 // Essentially we would love to have clean interfaces to support both pushing and pulling memory usage
MEDIUM…ggregation/builder/InMemoryHashAggregationBuilder.java369 // Essentially we would love to have clean interfaces to support both pushing and pulling memory usage
MEDIUM…va/com/facebook/presto/sql/planner/PlanOptimizers.java933 builder.add(predicatePushDown); // Run predicate push down one more time in case we can leverage new information
MEDIUM…va/com/facebook/presto/sql/planner/PlanOptimizers.java1085 builder.add(predicatePushDown); // Run predicate push down one more time in case we can leverage new information
MEDIUM…lanner/iterative/properties/LogicalPropertiesImpl.java312 // Some optimizations (e.g. canBeHomogenized) may utilize these
MEDIUM…lanner/iterative/properties/LogicalPropertiesImpl.java432 // Some optimizations (e.g. canBeHomogenized) may utilize these
MEDIUM…resto/sql/analyzer/MaterializedViewQueryOptimizer.java460 // TODO: We should be able to leverage this information in the StatementAnalyzer as well.
Fake / Example Data36 hits · 38 pts
SeverityFileLineSnippet
LOW…cution/presto_cpp/main/tests/TaskUpdateRequestTest.cpp281 {"Name", "John Doe"}, {"Age", "30"}, {"City", "New York"}};
LOW…cution/presto_cpp/main/tests/TaskUpdateRequestTest.cpp283 {"Name", "Jane Doe"}, {"Age", "25"}, {"City", "Los Angeles"}};
LOW…sto/nativeworker/AbstractTestNativeGeneralQueries.java503 "'Jane Doe'," +
LOW…k/presto/iceberg/TestIcebergMaterializedViewsBase.java1384 "(1, ARRAY['tag1', 'tag2'], MAP(ARRAY['key1', 'key2'], ARRAY['value1', 'value2']), ROW('123 Main St', 'N
LOW…com/facebook/presto/hive/AbstractTestCteExecution.java281 " (1, ARRAY[ROW('John Doe', 30)], from_base64('Sm9obiBEb2U=')), " +
LOW…com/facebook/presto/hive/AbstractTestCteExecution.java431 " (1, ARRAY[ROW('John Doe', 30)], from_base64('Sm9obiBEb2U=')), -- 'John Doe' in base64\n" +
LOW…est/java/com/facebook/presto/matching/TestMatcher.java47 assertMatch(any(), "John Doe");
LOW…est/java/com/facebook/presto/matching/TestMatcher.java52 assertNoMatch(typeOf(Integer.class), "John Doe");
LOW…/java/com/facebook/presto/jdbc/TestJdbcConnection.java71 return new Object[][] {{"test.com:1234"}, {"test@test.com"}};
LOW…esto/operator/scalar/sql/TestReplaceFirstFunction.java41 "REPLACE_FIRST('John Doe', ' ', '')",
LOW…esto/operator/scalar/sql/TestReplaceFirstFunction.java43 "John Doe");
LOW…facebook/presto/sql/planner/TestPredicatePushdown.java535 " AND l.comment = 'lorem ipsum' ")
LOW…facebook/presto/sql/planner/TestPredicatePushdown.java552 filter("L_COMMENT = 'lorem ipsum'",
LOW…facebook/presto/sql/planner/TestPredicatePushdown.java571 " AND l.comment = 'lorem ipsum' ")
LOW…facebook/presto/sql/planner/TestPredicatePushdown.java588 filter("L_COMMENT = 'lorem ipsum'",
LOW…rver/security/oauth2/TestingHydraIdentityProvider.java296 mapper.writeValueAsString(mapper.createObjectNode().put("subject", "foo@bar.
LOW…ecurity/oauth2/BaseOAuth2AuthenticationFilterTest.java206 .put("sub", "foo@bar.com")
LOW…ecurity/oauth2/BaseOAuth2AuthenticationFilterTest.java325 assertThat(claims.getSubject()).isEqualTo("foo@bar.com");
LOW…urity/oauth2/TestNimbusOAuth2ClientUserInfoParser.java79 body.put("sub", "user@example.com");
LOW…urity/oauth2/TestNimbusOAuth2ClientUserInfoParser.java80 body.put("email", "user@example.com");
LOW…urity/oauth2/TestNimbusOAuth2ClientUserInfoParser.java87 assertThat(successResponse.getUserInfo().getSubject().getValue()).isEqualTo("user@example.com");
LOW…urity/oauth2/TestNimbusOAuth2ClientUserInfoParser.java136 body.put("email", "user@example.com");
LOW…urity/oauth2/TestNimbusOAuth2ClientUserInfoParser.java152 body.put("sub", "user@example.com");
LOW…urity/oauth2/TestNimbusOAuth2ClientUserInfoParser.java168 body.put("sub", "user@example.com");
LOW…urity/oauth2/TestNimbusOAuth2ClientUserInfoParser.java184 body.put("sub", "user@example.com");
LOW…urity/oauth2/TestNimbusOAuth2ClientUserInfoParser.java203 body.put("sub", "user@example.com");
LOW…urity/oauth2/TestNimbusOAuth2ClientUserInfoParser.java219 body.put("sub", "user@example.com");
LOW…urity/oauth2/TestNimbusOAuth2ClientUserInfoParser.java235 body.put("sub", "user@example.com");
LOW…urity/oauth2/TestNimbusOAuth2ClientUserInfoParser.java254 body.put("sub", "user@example.com");
LOW…urity/oauth2/TestNimbusOAuth2ClientUserInfoParser.java273 body.put("sub", "user@example.com");
LOW…urity/oauth2/TestNimbusOAuth2ClientUserInfoParser.java289 body.put("sub", "user@example.com");
LOW…urity/oauth2/TestNimbusOAuth2ClientUserInfoParser.java305 body.put("sub", "user@example.com");
LOW…urity/oauth2/TestNimbusOAuth2ClientUserInfoParser.java344 body.put("sub", "user@example.com");
LOW…urity/oauth2/TestNimbusOAuth2ClientUserInfoParser.java360 body.put("sub", "user@example.com");
LOW…/java/com/facebook/presto/delta/TestColumnMapping.java100 "555-0101", LocalDate.of(2025, 1, 15));
LOW…/java/com/facebook/presto/delta/TestColumnMapping.java103 "555-0105", LocalDate.of(2026, 1, 20));
Hyper-Verbose Identifiers37 hits · 37 pts
SeverityFileLineSnippet
LOW…to/spark/execution/http/PrestoSparkHttpTaskClient.java515 private static class BytesResponseHandler
LOW…to/spark/execution/http/PrestoSparkHttpTaskClient.java693 public static class PageResponseHandler
LOW…k/execution/http/server/SimpleHttpResponseHandler.java31public class SimpleHttpResponseHandler<T>
LOW…ion/http/server/smile/AdaptingJsonResponseHandler.java30public class AdaptingJsonResponseHandler<T>
LOW…ive-execution/presto_cpp/main/PrestoServerOperations.h21class ResponseHandler;
LOWpresto-native-execution/presto_cpp/main/PrestoServer.h52class ResponseHandler;
LOW…sto-native-execution/presto_cpp/main/http/HttpServer.h55class AbstractRequestHandler : public proxygen::RequestHandler {
LOW…sto-native-execution/presto_cpp/main/http/HttpServer.h137class CallbackRequestHandler : public AbstractRequestHandler {
LOW…sto-native-execution/presto_cpp/main/http/HttpServer.h171class ErrorRequestHandler : public AbstractRequestHandler {
LOW…sto-native-execution/presto_cpp/main/http/HttpClient.h154class ResponseHandler;
LOW…o-native-execution/presto_cpp/main/http/HttpClient.cpp178class ResponseHandler : public proxygen::HTTPTransactionHandler {
LOW…/presto_cpp/main/http/filters/tests/HttpFilterTest.cpp25class DummyRequestHandler : public proxygen::RequestHandler {
LOW…c/main/java/com/facebook/presto/druid/DruidClient.java183 private static class StreamingJsonResponseHandler
LOW…to/functionNamespace/rest/RestSqlFunctionExecutor.java159 public static class SqlFunctionResultResponseHandler
LOW…book/presto/tests/querystats/HttpQueryStatsClient.java59 private final class GetQueryStatsResponseHandler
LOW…cebook/presto/connector/tvf/TestingTableFunctions.java702 public static class IdentityPassThroughFunctionDataProcessor
LOW…cebook/presto/connector/tvf/TestingTableFunctions.java790 public static class RepeatFunctionDataProcessor
LOW…cebook/presto/connector/tvf/TestingTableFunctions.java884 private static class EmptyOutputDataProcessor
LOW…cebook/presto/connector/tvf/TestingTableFunctions.java937 private static class EmptyOutputWithPassThroughDataProcessor
LOW…cebook/presto/connector/tvf/TestingTableFunctions.java1063 private static class PassThroughInputDataProcessor
LOW…cebook/presto/connector/tvf/TestingTableFunctions.java1157 private static class TestInputDataProcessor
LOW…va/com/facebook/presto/operator/JoinBridgeManager.java219 private static class TaskWideInternalJoinBridgeDataManager<T extends JoinBridge>
LOW…va/com/facebook/presto/operator/JoinBridgeManager.java295 private static class OneToOneInternalJoinBridgeDataManager<T extends JoinBridge>
LOW…va/com/facebook/presto/operator/JoinBridgeManager.java395 private static class SharedInternalJoinBridgeDataManager<T extends JoinBridge>
LOW…va/com/facebook/presto/proxy/ProxyResponseHandler.java34public class ProxyResponseHandler
LOWpresto-ui/src/utils.ts182export function addExponentiallyWeightedToHistory(value: number, valuesArray: number[]): number[] {
LOWpresto-ui/src/static/tableau/presto-connector.html201 function addSessionParameterToForm(name, value) {
LOW…/presto/server/smile/TestFullSmileResponseHandler.java42public class TestFullSmileResponseHandler
LOW…ebook/presto/resourcemanager/ResourceManagerProxy.java177 private static class ResponseHandler
LOW…in/java/com/facebook/presto/server/WorkerResource.java89 private static class StreamingJsonResponseHandler
LOW…/facebook/presto/server/SimpleHttpResponseHandler.java30public class SimpleHttpResponseHandler<T>
LOW…to/server/security/oauth2/NimbusAirliftHttpClient.java105 public static class NimbusResponseHandler<T>
LOW…ok/presto/server/thrift/ThriftHttpResponseHandler.java31public class ThriftHttpResponseHandler<T>
LOW…sto/server/remotetask/HttpRemoteTaskWithEventLoop.java1294 private class UpdateResponseHandler
LOW…k/presto/server/smile/AdaptingJsonResponseHandler.java31public class AdaptingJsonResponseHandler<T>
LOW…book/presto/server/smile/FullSmileResponseHandler.java35public class FullSmileResponseHandler<T>
LOW…com/facebook/presto/operator/HttpRpcShuffleClient.java125 public static class PageResponseHandler
Synthetic Comment Markers2 hits · 15 pts
SeverityFileLineSnippet
HIGH…a/com/facebook/presto/hive/HivePageSourceProvider.java855 // In nested columns, if the resolved type is same as requested type don't add the coercion mapp
HIGH…c/test/java/com/facebook/presto/server/TestServer.java291 // verify slug in nextUri is same as requested
Example Usage Blocks4 hits · 6 pts
SeverityFileLineSnippet
LOWpresto-native-execution/docker-compose.yml14 # Usage:
LOWpresto-native-execution/docker-compose.yml23 # Usage:
LOWpresto-native-execution/docker-compose.yml40 # Usage:
LOWpresto-native-execution/docker-compose.yml49 # Usage:
Deep Nesting5 hits · 5 pts
SeverityFileLineSnippet
LOW…tion/presto_cpp/presto_protocol/java-to-struct-json.py92
LOW…tion/presto_cpp/presto_protocol/java-to-struct-json.py189
LOW…native-execution/presto_cpp/main/thrift/thrift2json.py61
LOW…esto_cpp/main/thrift/presto_protocol-to-thrift-json.py90
LOWpresto-native-execution/scripts/license-header.py137
Redundant / Tautological Comments3 hits · 4 pts
SeverityFileLineSnippet
LOWpresto-native-execution/scripts/setup-macos.sh22# Set DEPENDENCY_DIR to a directory outside of Presto
LOW.github/workflows/prestocpp-linux-build.yml40 # Set compiler to GCC 14
LOW…uct-tests/conf/docker/files/presto-launcher-wrapper.sh38# Check if Java version is 17
Unused Imports4 hits · 4 pts
SeverityFileLineSnippet
LOWpresto-docs/src/main/sphinx/ext/download.py16
LOWpresto-docs/src/main/sphinx/ext/download.py18
LOWpresto-docs/src/main/sphinx/ext/pr.py16
LOWpresto-docs/src/main/sphinx/ext/issue.py16
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippet
MEDIUMpresto-docs/src/main/sphinx/conf.py18# This file is execfile()d with the current directory set to its containing dir.
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippet
LOWpresto-cassandra/src/test/resources/cu-cassandra.yaml419# Warning: before enabling this property make sure to ntp is installed