Repository Analysis

apache/drill

Apache Drill is a distributed MPP query layer for self describing data

9.1 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of apache/drill, a Java project with 2,022 GitHub stars. SynthScan v2.0 examined 984,519 lines of code across 5744 source files, recording 1205 pattern matches distributed across 13 syntactic categories. The overall adjusted score of 9.1 places this repository in the Low AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

9.1
Adjusted Score
9.1
Raw Score
100%
Time Factor
2026-08-09
Last Push
2.0K
Stars
Java
Language
984.5K
Lines of Code
5.7K
Files
1.2K
Pattern Hits
2026-08-09
Scan Date
0.16
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.

No multi-scan history yet — run the scanner again to build trend data.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 897HIGH 0MEDIUM 31LOW 277

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 1205 distinct pattern matches across 13 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Hallucination Indicators897 hits · 8508 pts
SeverityFileLineSnippetContext
CRITICAL…va/org/apache/drill/common/types/SchemaTypeProtos.java30 new org.apache.drill.common.types.SchemaTypeProtos.MajorType.MessageSchema();CODE
CRITICAL…va/org/apache/drill/common/types/SchemaTypeProtos.java32 new org.apache.drill.common.types.SchemaTypeProtos.MajorType.BuilderSchema();CODE
CRITICAL…va/org/apache/drill/common/types/SchemaTypeProtos.java59 return org.apache.drill.common.types.SchemaTypeProtos.MajorType.getFieldName(number);CODE
CRITICAL…va/org/apache/drill/common/types/SchemaTypeProtos.java63 return org.apache.drill.common.types.SchemaTypeProtos.MajorType.getFieldNumber(name);CODE
CRITICAL…va/org/apache/drill/common/types/SchemaTypeProtos.java71 return org.apache.drill.common.types.TypeProtos.MajorType.class.getSimpleName();CODE
CRITICAL…va/org/apache/drill/common/types/SchemaTypeProtos.java75 return org.apache.drill.common.types.TypeProtos.MajorType.class.getName();CODE
CRITICAL…va/org/apache/drill/common/types/SchemaTypeProtos.java92 builder.setMinorType(org.apache.drill.common.types.TypeProtos.MinorType.valueOf(input.readEnCODE
CRITICAL…va/org/apache/drill/common/types/SchemaTypeProtos.java95 builder.setMode(org.apache.drill.common.types.TypeProtos.DataMode.valueOf(input.readEnum()))CODE
CRITICAL…va/org/apache/drill/common/types/SchemaTypeProtos.java110 builder.addSubType(org.apache.drill.common.types.TypeProtos.MinorType.valueOf(input.readEnumCODE
CRITICAL…va/org/apache/drill/common/types/SchemaTypeProtos.java123 return org.apache.drill.common.types.TypeProtos.MajorType.newBuilder();CODE
CRITICAL…va/org/apache/drill/common/types/SchemaTypeProtos.java127 return org.apache.drill.common.types.SchemaTypeProtos.MajorType.getFieldName(number);CODE
CRITICAL…va/org/apache/drill/common/types/SchemaTypeProtos.java131 return org.apache.drill.common.types.SchemaTypeProtos.MajorType.getFieldNumber(name);CODE
CRITICAL…va/org/apache/drill/common/types/SchemaTypeProtos.java139 return org.apache.drill.common.types.TypeProtos.MajorType.class.getSimpleName();CODE
CRITICAL…va/org/apache/drill/common/types/SchemaTypeProtos.java143 return org.apache.drill.common.types.TypeProtos.MajorType.class.getName();CODE
CRITICAL…ain/java/org/apache/drill/common/types/TypeProtos.java735 return org.apache.drill.common.types.TypeProtos.getDescriptor().getEnumTypes().get(0);CODE
CRITICAL…ain/java/org/apache/drill/common/types/TypeProtos.java864 return org.apache.drill.common.types.TypeProtos.getDescriptor().getEnumTypes().get(1);CODE
CRITICAL…ain/java/org/apache/drill/common/types/TypeProtos.java1069 org.apache.drill.common.types.TypeProtos.MinorType result = org.apache.drill.common.types.TypeProtos.MinorType.valCODE
CRITICAL…ain/java/org/apache/drill/common/types/TypeProtos.java1088 org.apache.drill.common.types.TypeProtos.DataMode result = org.apache.drill.common.types.TypeProtos.DataMode.valueCODE
CRITICAL…ain/java/org/apache/drill/common/types/TypeProtos.java1200 org.apache.drill.common.types.TypeProtos.MinorType result = org.apache.drill.common.types.TypeProtos.MinCODE
CRITICAL…ain/java/org/apache/drill/common/types/TypeProtos.java1518 // Construct using org.apache.drill.common.types.TypeProtos.MajorType.newBuilder()COMMENT
CRITICAL…ain/java/org/apache/drill/common/types/TypeProtos.java1556 return org.apache.drill.common.types.TypeProtos.MajorType.getDefaultInstance();CODE
CRITICAL…ain/java/org/apache/drill/common/types/TypeProtos.java1570 org.apache.drill.common.types.TypeProtos.MajorType result = new org.apache.drill.common.types.TypeProtos.MajorTyCODE
CRITICAL…ain/java/org/apache/drill/common/types/TypeProtos.java1650 if (other == org.apache.drill.common.types.TypeProtos.MajorType.getDefaultInstance()) return this;CODE
CRITICAL…ain/java/org/apache/drill/common/types/TypeProtos.java1708 org.apache.drill.common.types.TypeProtos.MinorType.forNumber(tmpRaw);CODE
CRITICAL…ain/java/org/apache/drill/common/types/TypeProtos.java1720 org.apache.drill.common.types.TypeProtos.DataMode.forNumber(tmpRaw);CODE
CRITICAL…ain/java/org/apache/drill/common/types/TypeProtos.java1752 org.apache.drill.common.types.TypeProtos.MinorType.forNumber(tmpRaw);CODE
CRITICAL…ain/java/org/apache/drill/common/types/TypeProtos.java1767 org.apache.drill.common.types.TypeProtos.MinorType.forNumber(tmpRaw);CODE
CRITICAL…ain/java/org/apache/drill/common/types/TypeProtos.java1810 org.apache.drill.common.types.TypeProtos.MinorType result = org.apache.drill.common.types.TypeProtos.MinorType.vCODE
CRITICAL…ain/java/org/apache/drill/common/types/TypeProtos.java1853 org.apache.drill.common.types.TypeProtos.DataMode result = org.apache.drill.common.types.TypeProtos.DataMode.valCODE
CRITICAL…ain/java/org/apache/drill/common/types/TypeProtos.java2217 DEFAULT_INSTANCE = new org.apache.drill.common.types.TypeProtos.MajorType();CODE
CRITICALdocs/dev/StoragePluginPushdowns.md29`org.apache.drill.exec.store.StoragePluginRulesSupplier.getOptimizerRules()`CODE
CRITICAL…org/apache/drill/exec/udf/mapr/db/DecodeFieldPath.java47 String[] decodedPaths = org.apache.drill.exec.util.EncodedSchemaPathSet.decode(encodedPaths);CODE
CRITICAL…ll/exec/store/mapr/db/json/MaprDBJsonRecordReader.java159 condition = com.mapr.db.impl.ConditionImpl.parseFrom(ByteBufs.wrap(serializedFilter));CODE
CRITICAL…exec/store/mapr/db/json/CompareFunctionsProcessor.java222 // See com.mapr.db.impl.ConditionImpl.is(FieldPath path, QueryCondition.Op op, BigDecimal value) methodCOMMENT
CRITICAL…re/mapr/db/binary/MaprDBCompareFunctionsProcessor.java52 org.apache.hadoop.hbase.util.OrderedBytes.encodeString(br, ((ValueExpressions.QuotedString) valueArg).value,CODE
CRITICAL…re/mapr/db/binary/MaprDBCompareFunctionsProcessor.java56 org.apache.hadoop.hbase.util.OrderedBytes.encodeString(br, ((ValueExpressions.QuotedString) valueArg).value,CODE
CRITICAL…ain/java/org/apache/drill/exec/udfs/DateFunctions.java80 String input = org.apache.drill.exec.expr.fn.impl.StringFunctionHelpers.toStringFromUTF8(interval.start, interval.CODE
CRITICAL…ain/java/org/apache/drill/exec/udfs/DateFunctions.java83 java.time.LocalDateTime td = org.apache.drill.exec.udfs.DateConversionUtils.getDate(ld, input);CODE
CRITICAL…ain/java/org/apache/drill/exec/udfs/DateFunctions.java137 String inputDate = org.apache.drill.exec.expr.fn.impl.StringFunctionHelpers.toStringFromUTF8(input.start, input.enCODE
CRITICAL…ain/java/org/apache/drill/exec/udfs/DateFunctions.java139 String format = org.apache.drill.exec.expr.fn.impl.StringFunctionHelpers.toStringFromUTF8(formatString.start, formCODE
CRITICAL…ain/java/org/apache/drill/exec/udfs/DateFunctions.java141 String intervalString = org.apache.drill.exec.expr.fn.impl.StringFunctionHelpers.toStringFromUTF8(interval.start, CODE
CRITICAL…ain/java/org/apache/drill/exec/udfs/DateFunctions.java146 java.time.LocalDateTime td = org.apache.drill.exec.udfs.DateConversionUtils.getDate(dateTime, intervalString);CODE
CRITICAL…ain/java/org/apache/drill/exec/udfs/DateFunctions.java168 String input = org.apache.drill.exec.expr.fn.impl.StringFunctionHelpers.toStringFromUTF8(inputHolder.start, inputHCODE
CRITICAL…ain/java/org/apache/drill/exec/udfs/DateFunctions.java169 java.time.LocalDateTime dt = org.apache.drill.exec.udfs.DateUtilFunctions.getTimestampFromString(input);CODE
CRITICAL…ain/java/org/apache/drill/exec/udfs/DateFunctions.java198 String input = org.apache.drill.exec.expr.fn.impl.StringFunctionHelpers.toStringFromUTF8(inputHolder.start, inputHCODE
CRITICAL…ain/java/org/apache/drill/exec/udfs/DateFunctions.java199 java.time.LocalDateTime dt = org.apache.drill.exec.udfs.DateUtilFunctions.getTimestampFromString(input);CODE
CRITICAL…org/apache/drill/exec/udfs/ThreatHuntingFunctions.java58 String input = org.apache.drill.exec.expr.fn.impl.StringFunctionHelpers.toStringFromUTF8(rawInput.start, rawInput.CODE
CRITICAL…org/apache/drill/exec/udfs/ThreatHuntingFunctions.java96 String input = org.apache.drill.exec.expr.fn.impl.StringFunctionHelpers.toStringFromUTF8(rawInput1.start, rawInputCODE
CRITICAL…org/apache/drill/exec/udfs/ThreatHuntingFunctions.java108 double charCount = org.apache.commons.lang3.StringUtils.countMatches(input, character);CODE
CRITICAL…org/apache/drill/exec/udfs/ThreatHuntingFunctions.java149 String input = org.apache.drill.exec.expr.fn.impl.StringFunctionHelpers.getStringFromVarCharHolder(rawInput);CODE
CRITICAL…org/apache/drill/exec/udfs/ThreatHuntingFunctions.java161 double charCount = org.apache.commons.lang3.StringUtils.countMatches(input, character);CODE
CRITICAL…ava/org/apache/drill/exec/udfs/UserAgentFunctions.java54 uaa = org.apache.drill.exec.udfs.UserAgentAnalyzerProvider.getInstance();CODE
CRITICAL…ava/org/apache/drill/exec/udfs/UserAgentFunctions.java55 allFields = org.apache.drill.exec.udfs.UserAgentAnalyzerProvider.getAllFields();CODE
CRITICAL…ava/org/apache/drill/exec/udfs/UserAgentFunctions.java62 org.apache.drill.exec.udfs.UserAgentAnalyzerProvider.parseArgumentArray(input);CODE
CRITICAL…ava/org/apache/drill/exec/udfs/UserAgentFunctions.java72 org.apache.drill.exec.expr.holders.VarCharHolder rowHolder = new org.apache.drill.exec.expr.holders.VarCharHoldeCODE
CRITICAL…ava/org/apache/drill/exec/udfs/UserAgentFunctions.java108 uaa = org.apache.drill.exec.udfs.UserAgentAnalyzerProvider.getInstance();CODE
CRITICAL…ava/org/apache/drill/exec/udfs/UserAgentFunctions.java112 String userAgentString = org.apache.drill.exec.expr.fn.impl.StringFunctionHelpers.getStringFromVarCharHolder(inputCODE
CRITICAL…ava/org/apache/drill/exec/udfs/UserAgentFunctions.java113 String requestedField = org.apache.drill.exec.expr.fn.impl.StringFunctionHelpers.getStringFromVarCharHolder(desireCODE
CRITICAL…org/apache/drill/exec/udfs/ComplexSchemaFunctions.java60 outBuffer = org.apache.drill.exec.udfs.ComplexSchemaUtils.getFields(reader, outWriter, outBuffer);CODE
CRITICAL…rg/apache/drill/exec/udfs/StringDistanceFunctions.java52 d = new org.apache.commons.text.similarity.CosineDistance();CODE
837 more matches not shown…
Over-Commented Block212 hits · 212 pts
SeverityFileLineSnippetContext
LOWstart-build-env.sh1#!/usr/bin/env bashCOMMENT
LOWtools/release-scripts/checksum.sh1#!/bin/bashCOMMENT
LOWtools/release-scripts/release.sh1#!/bin/bashCOMMENT
LOWdistribution/docker-compose/docker-compose.yml1#COMMENT
LOWdistribution/src/main/resources/drill-env.sh1#COMMENT
LOWdistribution/src/main/resources/drill-env.sh21# or sqlline processes using Java. Some settings are for both, some for oneCOMMENT
LOWdistribution/src/main/resources/drill-env.sh41COMMENT
LOWdistribution/src/main/resources/drill-env.sh61COMMENT
LOWdistribution/src/main/resources/drill-env.sh81# Location to place Drill logs. Set to $DRILL_HOME/log by default.COMMENT
LOWdistribution/src/main/resources/drill-env.sh101# Custom JVM arguments to pass to the both the Drillbit and sqlline. TypicallyCOMMENT
LOWdistribution/src/main/resources/drill-env.sh121# custom="/your/path/here:/your/second/path"COMMENT
LOWdistribution/src/main/resources/drill-env.sh141# The prefix class path appears before any Drill-provided classpath entries.COMMENT
LOWdistribution/src/main/resources/drill-env.sh161COMMENT
LOWdistribution/src/main/resources/auto-setup.sh1#!/bin/bashCOMMENT
LOWdistribution/src/main/resources/auto-setup.sh21# default checks and autoconfiguration.COMMENT
LOWdistribution/src/main/resources/drill-config.sh1#!/bin/bashCOMMENT
LOWdistribution/src/main/resources/drill-config.sh21# should not be executable directlyCOMMENT
LOWdistribution/src/main/resources/drill-config.sh41# Variables may be set in one of four places:COMMENT
LOWdistribution/src/main/resources/drill-config.sh221export SERVER_GC_OPTS="$SERVER_GC_OPTS -XX:+UseG1GC"COMMENT
LOWdistribution/src/main/resources/drillbit.sh1#!/bin/bashCOMMENT
LOWdistribution/src/main/resources/drillbit.sh21#COMMENT
LOWdistribution/src/main/resources/drillbit.sh41#COMMENT
LOWdistribution/src/main/resources/distrib-env.sh1#COMMENT
LOWdistribution/src/main/resources/distrib-env.sh21# distribution-specific version that sets environment variables and optionsCOMMENT
LOWdistribution/src/main/resources/yarn-drillbit.sh1#COMMENT
LOWdistribution/src/main/resources/yarn-drillbit.sh21# launching a Drillbit and waiting for Drillbit exit.COMMENT
LOWdistribution/src/main/resources/yarn-drillbit.sh41# The location to which to write log files. Often set in drill-env.sh.COMMENT
LOWdistribution/src/main/resources/yarn-drillbit.sh61# DRILL_JAVA_OPTSCOMMENT
LOWdistribution/src/main/resources/yarn-drillbit.sh81# drill.yarn.drillbit.conf-dir parameter, or will default toCOMMENT
LOWdistribution/src/main/resources/yarn-drillbit.sh101# DRILL_CLASSPATHCOMMENT
LOWdistribution/src/main/resources/drill-am.sh1#!/bin/bashCOMMENT
LOWdistribution/src/main/resources/drill-am.sh21# This script runs under YARN and assumes the environment that YARN provides to an AM.COMMENT
LOWdistribution/src/main/resources/drill-am.sh41# DRILL_ARCHIVE The DFS path to the Drill archive used to localize DrillbitCOMMENT
LOWdistribution/src/main/resources/drill-am.sh61 echo "Drill AM launch script"COMMENT
LOWdistribution/src/main/resources/drill-am.sh81# and a few others.COMMENT
LOWdistribution/src/main/resources/distrib-setup.sh1#!/bin/bashCOMMENT
LOWdistribution/src/main/resources/distrib-setup.sh21# performed in drill-config.sh. Distributions can replace this file with aCOMMENT
LOWdistribution/src/main/resources/drill-setup.sh1#!/bin/bashCOMMENT
LOWdistribution/src/main/resources/drill-setup.sh21# is invoked by drill-config.sh after any distribution-specific checks (andCOMMENT
LOWdistribution/src/main/resources/drill-on-yarn.sh1#COMMENT
LOWdrill-yarn/src/test/resources/wrapper.sh1#!/bin/bashCOMMENT
LOW…va/org/apache/drill/yarn/appMaster/http/WebServer.java201COMMENT
LOWcontrib/native/client/CMakeLists.txt1#COMMENT
LOWcontrib/native/client/test/CMakeLists.txt1#COMMENT
LOWcontrib/native/client/test/ssl/testSSL.cpp21#include <stdlib.h>COMMENT
LOWcontrib/native/client/scripts/fixProtodefs.sh1#!/bin/bashCOMMENT
LOWcontrib/native/client/scripts/cpProtofiles.sh1#!/bin/bashCOMMENT
LOWcontrib/native/client/src/test/CMakeLists.txt1#COMMENT
LOWcontrib/native/client/src/include/drill/recordBatch.hpp21COMMENT
LOWcontrib/native/client/src/include/drill/recordBatch.hpp41 #elseCOMMENT
LOWcontrib/native/client/src/include/drill/recordBatch.hpp121 // ByteBuf_t getBuffer(){ return m_buffer;}COMMENT
LOWcontrib/native/client/src/include/drill/recordBatch.hpp781class DECLSPEC_DRILL_CLIENT ValueVectorVarBinary:public ValueVectorVarWidth{COMMENT
LOWcontrib/native/client/src/include/drill/drillc.hpp21#include "drill/common.hpp"COMMENT
LOWcontrib/native/client/src/include/drill/drillError.hpp21#include "drill/common.hpp"COMMENT
LOWcontrib/native/client/src/include/drill/common.hpp21#if defined _WIN32 || defined __CYGWIN__COMMENT
LOWcontrib/native/client/src/include/drill/common.hpp41// ensures that the correct typedefs are defined and that the older typedefs definedCOMMENT
LOWcontrib/native/client/src/include/drill/common.hpp61COMMENT
LOWcontrib/native/client/src/include/drill/common.hpp161typedef enum{COMMENT
LOWcontrib/native/client/src/include/drill/common.hpp181#define USERPROP_DISABLE_HOSTVERIFICATION "disableHostVerification"COMMENT
LOWcontrib/native/client/src/clientlib/CMakeLists.txt1#COMMENT
152 more matches not shown…
Decorative Section Separators17 hits · 60 pts
SeverityFileLineSnippetContext
MEDIUMdistribution/src/main/resources/drill-env.sh137#-----------------------------------------------------------------------------COMMENT
MEDIUMdistribution/src/main/resources/auto-setup.sh30###==========================================================================COMMENT
MEDIUMdistribution/src/main/resources/auto-setup.sh33###==========================================================================COMMENT
MEDIUMdistribution/src/main/resources/auto-setup.sh102#============================================================================COMMENT
MEDIUMdistribution/src/main/resources/auto-setup.sh104#----------------------------------------------------------------------------COMMENT
MEDIUMdistribution/src/main/resources/auto-setup.sh230#----------------------------------------------------------------------------COMMENT
MEDIUMdistribution/src/main/resources/auto-setup.sh232#============================================================================COMMENT
MEDIUMdistribution/src/main/resources/distrib-setup.sh30###==========================================================================COMMENT
MEDIUMdistribution/src/main/resources/distrib-setup.sh32###==========================================================================COMMENT
MEDIUMdistribution/src/main/resources/drill-setup.sh27###==========================================================================COMMENT
MEDIUMdistribution/src/main/resources/drill-setup.sh29###==========================================================================COMMENT
MEDIUMdev-support/docker/drill_env_checks.sh22# -------------------------------------------------------COMMENT
MEDIUMdev-support/docker/drill_env_checks.sh41# -------------------------------------------------------COMMENT
MEDIUMdev-support/docker/drill_env_checks.sh58# -------------------------------------------------------COMMENT
MEDIUMdev-support/docker/drill_env_checks.sh83# -------------------------------------------------------COMMENT
MEDIUMdev-support/docker/drill_env_checks.sh111# -------------------------------------------------------COMMENT
MEDIUMdev-support/docker/drill_env_checks.sh117# -------------------------------------------------------COMMENT
Structural Annotation Overuse21 hits · 38 pts
SeverityFileLineSnippetContext
LOWcontrib/storage-splunk/README.md182 ### Step 1: Get SplunkCOMMENT
LOWcontrib/storage-splunk/README.md187 ### Step 2: Add DataCOMMENT
LOWcontrib/storage-http/OAuth.md12#### Step 1: Obtain an Authorization CodeCOMMENT
LOWcontrib/storage-http/OAuth.md19#### Step 2: Swap the Authorization Code for an Access TokenCOMMENT
LOWcontrib/storage-http/OAuth.md24#### Step 3: Call the Protected Resource with the Access TokenCOMMENT
LOWcontrib/storage-googlesheets/src/test/README.md27## Step 3: Populating DataCOMMENT
LOW…affodil/TestDaffodilSchemaRegistrationIntegration.java104 // Step 1: Register the schemaCOMMENT
LOW…affodil/TestDaffodilSchemaRegistrationIntegration.java121 // Step 2: Query data using the registered schemaCOMMENT
LOW…affodil/TestDaffodilSchemaRegistrationIntegration.java134 // Step 3: Verify resultsCOMMENT
LOW…/org/apache/drill/exec/physical/rowSet/TestRowSet.java1246 // Step 1: Define a schema. In a real app, thisCOMMENT
LOW…/org/apache/drill/exec/physical/rowSet/TestRowSet.java1259 // Step 2: Create a batch. Done here because this isCOMMENT
LOW…/org/apache/drill/exec/physical/rowSet/TestRowSet.java1265 // Step 3: Create the writer.COMMENT
LOW…/org/apache/drill/exec/physical/rowSet/TestRowSet.java1269 // Step 4: Populate data. Here we do it the way an app would:COMMENT
LOW…/org/apache/drill/exec/physical/rowSet/TestRowSet.java1301 // Step 5: Create a reader.COMMENT
LOW…/org/apache/drill/exec/physical/rowSet/TestRowSet.java1305 // Step 6: Retrieve the data. Here we just print theCOMMENT
LOW…/org/apache/drill/exec/physical/rowSet/TestRowSet.java1321 // Step 7: Free memory.COMMENT
LOW…planner/fragment/HardAffinityFragmentParallelizer.java71 // Step 1: Find the width taking into account various parametersCOMMENT
LOW…planner/fragment/HardAffinityFragmentParallelizer.java98 // Step 2: Select the endpointsCOMMENT
LOW…planner/sql/handlers/MetastoreAnalyzeTableHandler.java233 // Step 1: checks whether table metadata is present in the Metastore to determineCOMMENT
LOW…planner/sql/handlers/MetastoreAnalyzeTableHandler.java263 // Step 2: constructs plan for producing analyzeCOMMENT
LOW…planner/sql/handlers/MetastoreAnalyzeTableHandler.java349 // Step 3: adds rel nodes for producing statistics analyze if requiredCOMMENT
Verbosity Indicators18 hits · 32 pts
SeverityFileLineSnippetContext
LOW…e/drill/yarn/appMaster/http/CsrfTokenInjectFilter.java44 // We don't create a session with this call as we need to check if there is a session already (i.e. if a user is lCOMMENT
LOW…affodil/TestDaffodilSchemaRegistrationIntegration.java104 // Step 1: Register the schemaCOMMENT
LOW…affodil/TestDaffodilSchemaRegistrationIntegration.java121 // Step 2: Query data using the registered schemaCOMMENT
LOW…affodil/TestDaffodilSchemaRegistrationIntegration.java134 // Step 3: Verify resultsCOMMENT
LOW…/org/apache/drill/exec/physical/rowSet/TestRowSet.java1246 // Step 1: Define a schema. In a real app, thisCOMMENT
LOW…/org/apache/drill/exec/physical/rowSet/TestRowSet.java1259 // Step 2: Create a batch. Done here because this isCOMMENT
LOW…/org/apache/drill/exec/physical/rowSet/TestRowSet.java1265 // Step 3: Create the writer.COMMENT
LOW…/org/apache/drill/exec/physical/rowSet/TestRowSet.java1269 // Step 4: Populate data. Here we do it the way an app would:COMMENT
LOW…/org/apache/drill/exec/physical/rowSet/TestRowSet.java1296 // Step 5: "Harvest" the batch. Done differently in theCOMMENT
LOW…/org/apache/drill/exec/physical/rowSet/TestRowSet.java1301 // Step 5: Create a reader.COMMENT
LOW…/org/apache/drill/exec/physical/rowSet/TestRowSet.java1305 // Step 6: Retrieve the data. Here we just print theCOMMENT
LOW…/org/apache/drill/exec/physical/rowSet/TestRowSet.java1321 // Step 7: Free memory.COMMENT
LOW…planner/fragment/HardAffinityFragmentParallelizer.java71 // Step 1: Find the width taking into account various parametersCOMMENT
LOW…planner/fragment/HardAffinityFragmentParallelizer.java98 // Step 2: Select the endpointsCOMMENT
LOW…planner/sql/handlers/MetastoreAnalyzeTableHandler.java233 // Step 1: checks whether table metadata is present in the Metastore to determineCOMMENT
LOW…planner/sql/handlers/MetastoreAnalyzeTableHandler.java263 // Step 2: constructs plan for producing analyzeCOMMENT
LOW…planner/sql/handlers/MetastoreAnalyzeTableHandler.java349 // Step 3: adds rel nodes for producing statistics analyze if requiredCOMMENT
LOW…ache/drill/exec/server/rest/CsrfTokenInjectFilter.java44 // We don't create a session with this call as we need to check if there is a session already (i.e. if a user is lCOMMENT
AI Slop Vocabulary11 hits · 28 pts
SeverityFileLineSnippetContext
LOWdistribution/src/main/resources/drill-env.sh32# higher on the list. In the environment, just set the variable:COMMENT
LOWdistribution/src/main/resources/drill-config.sh49# higher on the list. In the environment, just set the variable:COMMENT
MEDIUM…c/src/test/java/org/apache/drill/test/TestBuilder.java86 // lot of work to make the type handling/casting work correctly, and making robust complex type handling work completeCOMMENT
MEDIUM…c/src/test/java/org/apache/drill/test/TestBuilder.java89 // that would affect the reading of baseline files (i.e. we need robust test for storage engines, project and casting COMMENT
MEDIUM…drill/exec/store/parquet/TestParquetMetadataCache.java542 // creating two inner directories to leverage METADATA_DIRECTORIES_FILENAME metadata file as wellCOMMENT
MEDIUM…l/exec/planner/physical/DrillDistributionTraitDef.java94 // if we do want to leverage OPE then we could create a new type of distribution trait or make the DistributionTCOMMENT
MEDIUM…physical/impl/partitionsender/PartitionerTemplate.java61 // Always keep the recordCount as (2^x) - 1 to better utilize the memoryCOMMENT
MEDIUM…physical/impl/partitionsender/PartitionerTemplate.java145 // Always keep the recordCount as (2^x) - 1 to better utilize the memory allocation in ValueVectorsCOMMENT
MEDIUM…ll/exec/physical/impl/partitionsender/Partitioner.java33 // Keep the recordCount as (2^x) - 1 to better utilize the memory allocation in ValueVectors; howeverCOMMENT
MEDIUM…pache/drill/exec/store/easy/json/JSONFormatPlugin.java196 // the result set loader. The V2 version is a bit more robust, andCOMMENT
LOW…/main/java/org/apache/drill/jdbc/impl/DrillCursor.java82 * Whether the next call to {@code this.}{@link #next()} should just returnCOMMENT
Self-Referential Comments5 hits · 20 pts
SeverityFileLineSnippetContext
MEDIUMdistribution/src/main/resources/drill-env.sh19# This file provides a variety of site-specific settings to control DrillCOMMENT
MEDIUMdistribution/src/main/resources/auto-setup.sh20# This file is invoked by drill-config.sh during a Drillbit startup and providesCOMMENT
MEDIUMdistribution/src/main/resources/distrib-env.sh19# This file is empty by default. Default Drill environment settings appearCOMMENT
MEDIUMdistribution/src/main/resources/distrib-setup.sh20# This file is empty by default. Drill startup checks will beCOMMENT
MEDIUMdistribution/src/main/resources/drill-setup.sh20# This file is empty by default. It provides user-specific startup checks andCOMMENT
Fake / Example Data9 hits · 9 pts
SeverityFileLineSnippetContext
LOW…storage-jdbc/src/test/resources/postgres-test-data.sql93 'Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit', 'abc',CODE
LOW…storage-jdbc/src/test/resources/postgres-test-data.sql93 'Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit', 'abc',CODE
LOW…ib/storage-jdbc/src/test/resources/mysql-test-data.sql88 'Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit', 'abc',CODE
LOW…ib/storage-jdbc/src/test/resources/mysql-test-data.sql88 'Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit', 'abc',CODE
LOW…e/drill/exec/store/jdbc/TestJdbcPluginWithMySQLIT.java168 "Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit",CODE
LOW…e/drill/exec/store/jdbc/TestJdbcPluginWithMySQLIT.java168 "Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit",CODE
LOW…ical/impl/scan/v3/lifecycle/BaseTestScanLifecycle.java51 super("fake-user");CODE
LOW…ec/src/main/resources/rest/static/js/datatables.min.js18!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(V){"use strict"CODE
LOW…ec/src/main/resources/rest/static/js/datatables.min.js74a._iDisplayStart=0,ja(a))};h=null!==a.searchDelay?a.searchDelay:"ssp"===Q(a)?400:0;var m=l("input",b).val(e.sSearch).attCODE
TODO Padding7 hits · 8 pts
SeverityFileLineSnippetContext
LOW…apache/drill/exec/expr/fn/impl/ByteArrayFunctions.java31 // TODO: implement optional length parameterCOMMENT
LOW…org/apache/drill/exec/expr/fn/impl/Hash64AsDouble.java184 // TODO: implement hash function for other typesCOMMENT
LOW…he/drill/exec/expr/fn/impl/Hash64WithSeedAsDouble.java186 // TODO: implement hash function for other typesCOMMENT
LOW…e/drill/exec/expr/fn/impl/Hash64FunctionsWithSeed.java306 // TODO: implement hash function for other typesCOMMENT
LOW…rg/apache/drill/exec/expr/fn/impl/Hash64Functions.java301 // TODO: implement hash function for other typesCOMMENT
LOW…he/drill/exec/expr/fn/impl/Hash32WithSeedAsDouble.java182 // TODO: implement hash function for other typesCOMMENT
LOW…e/drill/exec/expr/fn/impl/Hash32FunctionsWithSeed.java303 // TODO: implement hash function for other typesCOMMENT
Hyper-Verbose Identifiers5 hits · 5 pts
SeverityFileLineSnippetContext
LOW…c/src/main/resources/rest/static/js/querySubmission.js43function doSubmitQueryWithUserName() {CODE
LOW…c/src/main/resources/rest/static/js/querySubmission.js55function doSubmitQueryWithAutoLimit() {CODE
LOW…a/org/apache/drill/exec/rpc/FailingRequestHandler.java28public class FailingRequestHandler<S extends ServerConnection<S>> implements RequestHandler<S> {CODE
LOW…ache/drill/exec/rpc/user/UserServerRequestHandler.java47class UserServerRequestHandler implements RequestHandler<BitToUserConnection> {CODE
LOW…ache/drill/exec/rpc/data/DataServerRequestHandler.java42class DataServerRequestHandler implements RequestHandler<DataServerConnection> {CODE
Slop Phrases1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMdistribution/src/main/resources/drill-env.sh118# jar files in other locations, you can add them here. These jars are added to theCOMMENT
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOWdistribution/src/main/resources/drill-config.sh135# Check if a file exists and has relevant lines for executionCOMMENT
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWdistribution/src/main/resources/drillbit.sh40# Usage:COMMENT