Repository Analysis

cube-js/cube

📊 Cube Core is open-source semantic layer for AI, BI and embedded analytics

0.9 Likely human-written View on GitHub
0.9
Adjusted Score
0.9
Raw Score
100%
Time Factor
2026-05-30
Last Push
20,069
Stars
Rust
Language
767,988
Lines of Code
3026
Files
415
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 2HIGH 27MEDIUM 77LOW 309

Pattern Findings

415 matches across 15 categories. Click a row to expand file-level details.

Decorative Section Separators62 hits · 217 pts
SeverityFileLineSnippet
MEDIUM…schemas/yaml_files/common/integration_multi_stage.yaml356 # ── filter: directive variants ────────────────────────────────────
MEDIUM…schemas/yaml_files/common/integration_multi_stage.yaml478 # ── filter on segments ────────────────────────────────────────────
MEDIUM…esqlplanner/cubesqlplanner/src/tests/measure_symbol.rs18// ─── Per-measure property tests ─────────────────────────────────────────────
MEDIUM…esqlplanner/cubesqlplanner/src/tests/measure_symbol.rs208// ─── new_patched: valid type replacements ───────────────────────────────────
MEDIUM…esqlplanner/cubesqlplanner/src/tests/measure_symbol.rs282// ─── new_patched: invalid type replacements ─────────────────────────────────
MEDIUM…esqlplanner/cubesqlplanner/src/tests/measure_symbol.rs335// ─── new_patched: no type change (None) ─────────────────────────────────────
MEDIUM…esqlplanner/cubesqlplanner/src/tests/measure_symbol.rs364// ─── new_patched: filter addition validation ────────────────────────────────
MEDIUM…esqlplanner/cubesqlplanner/src/tests/measure_symbol.rs437// ─── new_patched: combined type change + filters ────────────────────────────
MEDIUM…esqlplanner/cubesqlplanner/src/tests/measure_symbol.rs473// ─── Multi-stage properties + filter directive ──────────────────────────────
MEDIUM…qlplanner/cubesqlplanner/src/tests/dimension_symbol.rs13// ─── Per-dimension property tests ───────────────────────────────────────────
MEDIUM…ner/cubesqlplanner/src/tests/filter/partition_range.rs123// ── partition range + db timezone ──────────────────────────────────────────
MEDIUM…besqlplanner/cubesqlplanner/src/tests/filter/to_sql.rs8// ── equals ──────────────────────────────────────────────────────────────────
MEDIUM…besqlplanner/cubesqlplanner/src/tests/filter/to_sql.rs113// ── notEquals ───────────────────────────────────────────────────────────────
MEDIUM…besqlplanner/cubesqlplanner/src/tests/filter/to_sql.rs160// ── in / notIn ──────────────────────────────────────────────────────────────
MEDIUM…besqlplanner/cubesqlplanner/src/tests/filter/to_sql.rs231// ── set / notSet ────────────────────────────────────────────────────────────
MEDIUM…besqlplanner/cubesqlplanner/src/tests/filter/to_sql.rs253// ── comparison operators ────────────────────────────────────────────────────
MEDIUM…besqlplanner/cubesqlplanner/src/tests/filter/to_sql.rs423// ── contains with multiple values ───────────────────────────────────────────
MEDIUM…besqlplanner/cubesqlplanner/src/tests/filter/to_sql.rs459// ── like with null ──────────────────────────────────────────────────────────
MEDIUM…besqlplanner/cubesqlplanner/src/tests/filter/to_sql.rs495// ── filter groups (OR / AND) ────────────────────────────────────────────────
MEDIUM…besqlplanner/cubesqlplanner/src/tests/filter/to_sql.rs578// ── date operators ──────────────────────────────────────────────────────────
MEDIUM…sqlplanner/cubesqlplanner/src/tests/filter/tree_ops.rs154// ─── keep_only_members ──────────────────────────────────────────────────────
MEDIUM…sqlplanner/cubesqlplanner/src/tests/filter/tree_ops.rs230// ─── segment handling ───────────────────────────────────────────────────────
MEDIUMpackages/cubejs-server-core/src/core/CompilerApi.ts572 // | ┌─────────────────────────────┐
MEDIUMpackages/cubejs-server-core/src/core/CompilerApi.ts574 // | ┌───┼─────────────┐ │
MEDIUMpackages/cubejs-server-core/src/core/CompilerApi.ts576 // | │ └─────────────┼───────────────┘
MEDIUMpackages/cubejs-server-core/src/core/CompilerApi.ts578 // | └─────────────────┘
MEDIUMpackages/cubejs-server-core/src/core/CompilerApi.ts579 // └──────────────────────────────────────────> Rows
MEDIUMpackages/cubejs-server-core/src/core/CompilerApi.ts582 // ═══════════════════════════════════════════════════════════════════
MEDIUMpackages/cubejs-server-core/src/core/CompilerApi.ts588 // | ┌─────────────────────────────┐
MEDIUMpackages/cubejs-server-core/src/core/CompilerApi.ts590 // | ┌───┼─────────────┐ │
MEDIUMpackages/cubejs-server-core/src/core/CompilerApi.ts592 // | │░░░└─────────────┼───────────────┘
MEDIUMpackages/cubejs-server-core/src/core/CompilerApi.ts594 // | └─────────────────┘
MEDIUMpackages/cubejs-server-core/src/core/CompilerApi.ts595 // └──────────────────────────────────────────> Rows
MEDIUMpackages/cubejs-server-core/src/core/CompilerApi.ts599 // ═══════════════════════════════════════════════════════════════════
MEDIUMpackages/cubejs-server-core/src/core/CompilerApi.ts605 // | ┌─────────────────────────────┐
MEDIUMpackages/cubejs-server-core/src/core/CompilerApi.ts607 // | ┌───┼─────────────┐░░░░░░░░░░░░░░░│
MEDIUMpackages/cubejs-server-core/src/core/CompilerApi.ts609 // | │ └─────────────┼───────────────┘
MEDIUMpackages/cubejs-server-core/src/core/CompilerApi.ts611 // | └─────────────────┘
MEDIUMpackages/cubejs-server-core/src/core/CompilerApi.ts612 // └──────────────────────────────────────────> Rows
MEDIUMpackages/cubejs-server-core/src/core/CompilerApi.ts616 // ═══════════════════════════════════════════════════════════════════
MEDIUMpackages/cubejs-server-core/src/core/CompilerApi.ts622 // | ┌─────────────────────────────┐
MEDIUMpackages/cubejs-server-core/src/core/CompilerApi.ts624 // | ┌───┼─────────────┐ │
MEDIUMpackages/cubejs-server-core/src/core/CompilerApi.ts626 // | │ └─────────────┼───────────────┘
MEDIUMpackages/cubejs-server-core/src/core/CompilerApi.ts628 // | └─────────────────┘
MEDIUMpackages/cubejs-server-core/src/core/CompilerApi.ts629 // └──────────────────────────────────────────> Rows
MEDIUMpackages/cubejs-server-core/src/core/CompilerApi.ts633 // ═══════════════════════════════════════════════════════════════════
MEDIUMpackages/cubejs-server-core/src/core/CompilerApi.ts639 // | ┌─────────────────────────────┐
MEDIUMpackages/cubejs-server-core/src/core/CompilerApi.ts641 // | ┌───┼─────────────┐ │
MEDIUMpackages/cubejs-server-core/src/core/CompilerApi.ts643 // | │ └─────────────┼───────────────┘
MEDIUMpackages/cubejs-server-core/src/core/CompilerApi.ts645 // | └─────────────────┘
MEDIUMpackages/cubejs-server-core/src/core/CompilerApi.ts646 // └──────────────────────────────────────────> Rows
MEDIUM…er/test/integration/postgres/multi-stage-grain.test.ts69 # ── single-element variants ────────────────────────────────────
MEDIUM…er/test/integration/postgres/multi-stage-grain.test.ts94 # ── two-element arrays ────────────────────────────────────────
MEDIUM…er/test/integration/postgres/multi-stage-grain.test.ts122 # ── keep_only + include combination ──────────────────────────
MEDIUM…er/test/integration/postgres/multi-stage-grain.test.ts139 // ── single-element variants ──────────────────────────────────
MEDIUM…er/test/integration/postgres/multi-stage-grain.test.ts195 // ── two-element arrays ───────────────────────────────────────
MEDIUM…er/test/integration/postgres/multi-stage-grain.test.ts243 // ── keep_only + include combination ──────────────────────────
MEDIUM…sting/birdbox-fixtures/rbac/model/cubes/customers.yaml13# | ┌─────────────────┐
MEDIUM…sting/birdbox-fixtures/rbac/model/cubes/customers.yaml15# | │ ┌─────────────┼───────────────┐
MEDIUM…sting/birdbox-fixtures/rbac/model/cubes/customers.yaml17# | └───┼─────────────┘ Policy 2 │ (all members, with row filter)
2 more matches not shown…
Over-Commented Block216 hits · 206 pts
SeverityFileLineSnippet
LOWrust/cubestore/cubezetasketch/src/encoding.rs41/// *ρ(w)* can be determined from the lowest *sp-p* bits of the sparse index or
LOWrust/cubestore/cubezetasketch/src/sketch.rs21/// estimate as defined in hllplus-unique.proto, allowing users to merge aggregators with data
LOWrust/cubestore/cubezetasketch/src/sketch.rs81 // /** The smallest normal precision supported by this aggregator. */
LOWrust/cubestore/cubezetasketch/src/data.rs21/// We only support a small range of precisions from `MINIMUM_PRECISION` to
LOWrust/cubestore/cubezetasketch/src/data.rs61 }
LOWrust/cubestore/cubezetasketch/src/data.rs161
LOWrust/cubestore/cubezetasketch/src/data.rs441 ]
LOWrust/cubestore/cubezetasketch/src/sparse.rs341 /// - If the sparse representation has become too large, converts to a `NormalRepresentation`.
LOWrust/cubestore/cubestore/src/util/metrics.rs1//! DogStatsD client to report metrics over UDP.
LOWrust/cubestore/cubestore/src/sys/malloc.rs1#[cfg(all(target_os = "linux", not(target_env = "musl")))] // malloc_trim is only in glibc.
LOW…ore/cubestore/src/cachestore/cache_eviction_manager.rs141 let decrement = elapsed_minutes / decay_time;
LOW…ubestore/cubestore/src/queryplanner/pretty_printers.rs741 .join(","),
LOWrust/cubestore/cubestore/src/queryplanner/rolling.rs721 // let other_cols = input
LOWrust/cubestore/cubestore/src/queryplanner/rolling.rs981 // if matching_row_lower_bound < group_end
LOWrust/cubestore/cubestore/src/queryplanner/udf_xirr.rs21
LOWrust/cubestore/cubestore/src/queryplanner/udf_xirr.rs41/// If omitted, the function will yield an error when it cannot find a solution. Must be
LOWrust/cubestore/cubestore/src/queryplanner/udf_xirr.rs221 on_error,
LOWrust/cubestore/cubestore/src/queryplanner/udf_xirr.rs241// ScalarValue::Float16(o) => Ok(o.map(f64::from)),
LOWrust/cubestore/cubestore/src/queryplanner/udf_xirr.rs261// ScalarValue::FixedSizeBinary(_, _) => err("FixedSizeBinary"),
LOWrust/cubestore/cubestore/src/queryplanner/udf_xirr.rs281// ScalarValue::DurationSecond(_) => err("DurationSecond"),
LOWrust/cubestore/cubestore/src/queryplanner/udf_xirr.rs301// .map(|date| date.num_days_from_ce() - EPOCH_DAYS_FROM_CE)
LOWrust/cubestore/cubestore/src/queryplanner/udf_xirr.rs321// ScalarValue::Int16(_) => err("Int16"),
LOWrust/cubestore/cubestore/src/queryplanner/udf_xirr.rs341// ScalarValue::Map(_) => err("Map"),
LOW…ubestore/cubestore/src/queryplanner/serialized_plan.rs481 Arc::new(input),
LOW…ubestore/cubestore/src/queryplanner/serialized_plan.rs761 | LogicalPlan::DescribeTable(_) => {
LOW…ubestore/cubestore/src/queryplanner/serialized_plan.rs781 // SerializedLogicalPlan::CrossJoinAgg {
LOW…ubestore/cubestore/src/queryplanner/serialized_plan.rs801 // aggs,
LOW…e/cubestore/src/queryplanner/projection_above_limit.rs1// TODO upgrade DF
LOW…e/cubestore/src/queryplanner/projection_above_limit.rs21// fn optimize(
LOW…e/cubestore/src/queryplanner/projection_above_limit.rs41// let lift_up_result = lift_up_expensive_projections(input, ColumnRecorder::default());
LOW…e/cubestore/src/queryplanner/projection_above_limit.rs61
LOW…e/cubestore/src/queryplanner/projection_above_limit.rs81// Err(e) => {
LOW…e/cubestore/src/queryplanner/projection_above_limit.rs101// .collect::<Result<Vec<_>>>()?;
LOW…e/cubestore/src/queryplanner/projection_above_limit.rs121// Expr::Column(c) => {
LOW…e/cubestore/src/queryplanner/projection_above_limit.rs141// impl ExpressionVisitor for ExpressionCost {
LOW…e/cubestore/src/queryplanner/projection_above_limit.rs161// fn post_visit(mut self, expr: &Expr) -> Result<Self> {
LOW…e/cubestore/src/queryplanner/projection_above_limit.rs181// cost_visitor = ex.accept(cost_visitor)?;
LOW…e/cubestore/src/queryplanner/projection_above_limit.rs201// );
LOW…e/cubestore/src/queryplanner/projection_above_limit.rs221// // Columns that we are already retaining. .0 field indexes into `expr`. .1 field is
LOW…e/cubestore/src/queryplanner/projection_above_limit.rs241// if used_columns.columns.contains(&field.qualified_column()) {
LOW…e/cubestore/src/queryplanner/projection_above_limit.rs261// if expensive_expr_list.is_empty() {
LOW…e/cubestore/src/queryplanner/projection_above_limit.rs281// let mut new_expr = Vec::<Expr>::new();
LOW…e/cubestore/src/queryplanner/projection_above_limit.rs301// pal_debug!("ar_col {:?} comparing to col {:?}", ar_col, col);
LOW…e/cubestore/src/queryplanner/projection_above_limit.rs321// used_field_names.insert(input_field.name().clone());
LOW…e/cubestore/src/queryplanner/projection_above_limit.rs341// );
LOW…e/cubestore/src/queryplanner/projection_above_limit.rs361// pal_debug!("Invoking DFSchema::new");
LOW…e/cubestore/src/queryplanner/projection_above_limit.rs381// mod tests {
LOW…e/cubestore/src/queryplanner/projection_above_limit.rs401
LOW…e/cubestore/src/queryplanner/projection_above_limit.rs421
LOW…e/cubestore/src/queryplanner/projection_above_limit.rs441// let formatted = format!("{:?}", plan);
LOW…e/cubestore/src/queryplanner/projection_above_limit.rs461
LOW…e/cubestore/src/queryplanner/projection_above_limit.rs481// let plan = LogicalPlanBuilder::from(table_scan)
LOW…e/cubestore/src/queryplanner/projection_above_limit.rs501// \n Sort: #a1 ASC NULLS FIRST\
LOW…e/cubestore/src/queryplanner/projection_above_limit.rs521// col("b").alias("b1"),
LOW…e/cubestore/src/queryplanner/projection_above_limit.rs541// \n TableScan: test projection=None";
LOW…e/cubestore/src/queryplanner/projection_above_limit.rs561// let expected = "Limit: 50\
LOW…e/cubestore/src/queryplanner/projection_above_limit.rs581// fn limit_sorted_plan_with_nonexpensive_expr() -> Result<()> {
LOW…e/cubestore/src/queryplanner/projection_above_limit.rs601
LOW…e/cubestore/src/queryplanner/projection_above_limit.rs621// let expected = "Limit: 50\
LOW…e/cubestore/src/queryplanner/projection_above_limit.rs641// .project([
156 more matches not shown…
Cross-File Repetition27 hits · 135 pts
SeverityFileLineSnippet
HIGHrust/cubestore/cubestore/src/streaming/mod.rs0'hh:mm:ss.sssx'', ''utc'') >= parse_timestamp(''1970-01-01t01:00:00.000z'', ''yyyy-mm-dd
HIGHrust/cubestore/cubestore/src/streaming/mod.rs0'hh:mm:ss.sssx'', ''utc'') >= parse_timestamp(''1970-01-01t01:00:00.000z'', ''yyyy-mm-dd
HIGHrust/cubestore/cubestore/src/streaming/mod.rs0'hh:mm:ss.sssx'', ''utc'') >= parse_timestamp(''1970-01-01t01:00:00.000z'', ''yyyy-mm-dd
HIGHrust/cubestore/cubestore/src/streaming/mod.rs0'hh:mm:ss.sssx'', ''utc'') >= parse_timestamp(''1970-01-01t01:00:00.000z'', ''yyyy-mm-dd
HIGHrust/cubestore/cubestore/src/streaming/mod.rs0'hh:mm:ss.sssx'', ''utc'') >= parse_timestamp(''1970-01-01t01:00:00.000z'', ''yyyy-mm-dd
HIGHrust/cubestore/cubestore/src/streaming/mod.rs0'hh:mm:ss.sssx'', ''utc'') >= parse_timestamp(''1970-01-01t01:00:00.000z'', ''yyyy-mm-dd
HIGHrust/cubestore/cubestore/src/streaming/mod.rs0'hh:mm:ss.sssx'', ''utc'') >= parse_timestamp(''1970-01-01t01:00:00.000z'', ''yyyy-mm-dd
HIGHrust/cubestore/cubestore/src/streaming/mod.rs0'hh:mm:ss.sssx'', ''utc'') \ and parse_timestamp(`timestamp`, ''yyyy-mm-dd
HIGHrust/cubestore/cubestore/src/streaming/mod.rs0'hh:mm:ss.sssx'', ''utc'') \ and parse_timestamp(`timestamp`, ''yyyy-mm-dd
HIGHrust/cubestore/cubestore/src/streaming/mod.rs0'hh:mm:ss.sssx'', ''utc'') \ and parse_timestamp(`timestamp`, ''yyyy-mm-dd
HIGHrust/cubestore/cubestore/src/streaming/mod.rs0'hh:mm:ss.sssx'', ''utc'') \ and parse_timestamp(`timestamp`, ''yyyy-mm-dd
HIGHrust/cubestore/cubestore/src/streaming/mod.rs0'hh:mm:ss.sssx'', ''utc'') \ and parse_timestamp(`timestamp`, ''yyyy-mm-dd
HIGHrust/cubestore/cubestore/src/streaming/mod.rs0'hh:mm:ss.sssx'', ''utc'') \ and parse_timestamp(`timestamp`, ''yyyy-mm-dd
HIGHrust/cubestore/cubestore/src/streaming/mod.rs0'hh:mm:ss.sssx'', ''utc'') \ and parse_timestamp(`timestamp`, ''yyyy-mm-dd
HIGHrust/cubestore/cubestore/src/streaming/mod.rs0'hh:mm:ss.sssx'', ''utc'') < parse_timestamp(''1970-01-01t01:10:00.000z'', ''yyyy-mm-dd
HIGHrust/cubestore/cubestore/src/streaming/mod.rs0'hh:mm:ss.sssx'', ''utc'') < parse_timestamp(''1970-01-01t01:10:00.000z'', ''yyyy-mm-dd
HIGHrust/cubestore/cubestore/src/streaming/mod.rs0'hh:mm:ss.sssx'', ''utc'') < parse_timestamp(''1970-01-01t01:10:00.000z'', ''yyyy-mm-dd
HIGHrust/cubestore/cubestore/src/streaming/mod.rs0'hh:mm:ss.sssx'', ''utc'') < parse_timestamp(''1970-01-01t01:10:00.000z'', ''yyyy-mm-dd
HIGHrust/cubestore/cubestore/src/streaming/mod.rs0'hh:mm:ss.sssx'', ''utc'') < parse_timestamp(''1970-01-01t01:10:00.000z'', ''yyyy-mm-dd
HIGHrust/cubestore/cubestore/src/streaming/mod.rs0'hh:mm:ss.sssx'', ''utc'') < parse_timestamp(''1970-01-01t01:10:00.000z'', ''yyyy-mm-dd
HIGHrust/cubestore/cubestore/src/streaming/mod.rs0'hh:mm:ss.sssx'', ''utc'') < parse_timestamp(''1970-01-01t01:10:00.000z'', ''yyyy-mm-dd
HIGHrust/cubestore/cubestore/src/streaming/mod.rs0'hh:mm:ss.sssx''), ''utc'', ''utc'' ), ''yyyy-mm-dd
HIGHrust/cubestore/cubestore/src/streaming/mod.rs0'hh:mm:ss.sssx''), ''utc'', ''utc'' ), ''yyyy-mm-dd
HIGHrust/cubestore/cubestore/src/streaming/mod.rs0'hh:mm:ss.sssx''), ''utc'', ''utc'' ), ''yyyy-mm-dd
HIGHrust/cubestore/cubestore/src/streaming/mod.rs0'hh:mm:ss.sss'', ''utc'' ) minute_timestamp from `events_by_type` \ where parse_timestamp(`timestamp`, ''yyyy-mm-dd
HIGHrust/cubestore/cubestore/src/streaming/mod.rs0'hh:mm:ss.sss'', ''utc'' ) minute_timestamp from `events_by_type` \ where parse_timestamp(`timestamp`, ''yyyy-mm-dd
HIGHrust/cubestore/cubestore/src/streaming/mod.rs0'hh:mm:ss.sss'', ''utc'' ) minute_timestamp from `events_by_type` \ where parse_timestamp(`timestamp`, ''yyyy-mm-dd
Hyper-Verbose Identifiers56 hits · 56 pts
SeverityFileLineSnippet
LOWrust/cubestore/js-wrapper/src/download.ts36export async function downloadBinaryFromRelease() {
LOWdocs/components/mdx/YouTubeVideo.jsx3function formatAspectRatioAsPercentage(aspectRatio) {
LOWpackages/cubejs-backend-maven/src/maven.ts163export function getDependenciesFromPackage(): MavenDependency[] {
LOW…src/QueryBuilderV2/utils/get-used-cubes-and-members.ts82export function extractMembersFromFilters(filters: Filter[]) {
LOW…js-playground/src/QueryBuilderV2/utils/chart-colors.ts102export function getChartSolidColorByIndex(index: number) {
LOW…yground/src/QueryBuilderV2/utils/graphql-converters.ts11export async function convertGraphQLToJsonQuery({
LOW…yground/src/QueryBuilderV2/utils/graphql-converters.ts52export function convertJsonQueryToGraphQL({ meta, query }: { meta?: Meta | null; query: Query }) {
LOW…rc/components/QueryTabs/ChartRendererStateProvider.tsx38export function ChartRendererStateProvider({
LOW…rc/components/QueryTabs/ChartRendererStateProvider.tsx161export function useChartRendererStateMethods() {
LOW…bejs-playground/src/components/QueryTabs/QueryTabs.tsx294 function handleDrilldownModalClose() {
LOW…ents/LivePreviewContext/LivePreviewContextProvider.tsx151export function LivePreviewContextProvider({
LOWpackages/cubejs-playground/src/rollup-designer/utils.ts28export function getPreAggregationReferences(
LOWpackages/cubejs-playground/src/rollup-designer/utils.ts88export function getRollupDefinitionFromReferences(
LOWpackages/cubejs-api-gateway/src/query.js290function parseInputMemberExpression(expression) {
LOWpackages/cubejs-api-gateway/src/graphql.ts469export function getJsonQueryFromGraphQLQuery(query: string, metaConfig: any, variableValues: Record<string, any> = {}) {
LOW…ejs-api-gateway/src/helpers/transform-meta-extended.ts22function handleDimensionCaseCondition(caseCondition: any) {
LOWpackages/cubejs-schema-compiler/test/unit/utils.ts102export function createCubeSchemaWithAccessPolicy(name: string, extraPolicies: string = ''): string {
LOWpackages/cubejs-schema-compiler/test/unit/utils.ts230export function createCubeSchemaWithCustomGranularitiesAndTimeShift(name: string): string {
LOWpackages/cubejs-schema-compiler/test/unit/utils.ts380export function createViewSchemaWithDefaultValueFilter(): string {
LOWpackages/cubejs-schema-compiler/test/unit/utils.ts442export function createSchemaYamlForGroupFilterParamsTests(cubeDefSql: string): string {
LOW…kages/cubejs-schema-compiler/src/compiler/JoinGraph.ts303 function findIfMultipliedRecursive(currentCube: string) {
LOW…s/cubejs-schema-compiler/src/compiler/CubeValidator.ts1267function formatErrorMessageFromDetails(explain, d) {
LOW…s/cubejs-schema-compiler/src/compiler/CubeValidator.ts1294function collectFunctionFieldsPatterns(patterns, path, o) {
LOW…-schema-compiler/src/compiler/named-numeric-formats.ts74export function resolveNamedNumericFormat(value: string): string | undefined {
LOW…es/cubejs-testing/test/smoke-graceful-shutdown.test.ts29 function unconnectedPostgresClient(user: string, password: string) {
LOWpackages/cubejs-testing/src/birdbox.ts250export async function startBirdBoxFromContainer(
LOWpackages/cubejs-backend-native/test/config.py56async def scheduled_refresh_time_zones(ctx):
LOWpackages/cubejs-backend-native/test/config.py62async def scheduled_refresh_contexts(ctx):
LOWpackages/cubejs-backend-native/test/old-config.py34async def scheduled_refresh_time_zones(ctx):
LOWpackages/cubejs-backend-native/test/old-config.py41async def scheduled_refresh_contexts(ctx):
LOWpackages/cubejs-backend-native/test/jinja.test.ts42function testTemplateWithPythonCtxBySnapshot(init: InitJinjaFn, templateName: string, ctx: unknown) {
LOWpackages/cubejs-backend-native/test/jinja.test.ts54function testTemplateErrorWithPythonCtxBySnapshot(init: InitJinjaFn, templateName: string, ctx: unknown) {
LOWpackages/cubejs-backend-native/test/jinja.test.ts71function testLoadBrokenTemplateBySnapshot(init: InitJinjaFn, templateName: string) {
LOWpackages/cubejs-backend-native/test/bridge/helpers.ts53export function invokeFilterParamsCallback(
LOWpackages/cubejs-backend-native/js/index.ts195function wrapNativeFunctionWithChannelCallback(
LOWpackages/cubejs-backend-native/js/index.ts234function wrapRawNativeFunctionWithChannelCallback(
LOWpackages/cubejs-backend-native/js/index.ts274function wrapNativeFunctionWithStream(
LOW…ubejs-cubestore-driver/codegen/http-parameter-value.ts23export function unionToHttpParameterValue(
LOW…ubejs-cubestore-driver/codegen/http-parameter-value.ts39export function unionListToHttpParameterValue(
LOWpackages/cubejs-base-driver/src/driver.interface.ts111export function isDownloadTableMemoryData(tableData: any): tableData is TableMemoryData {
LOWpackages/cubejs-databricks-jdbc-driver/src/helpers.ts42export function extractAndRemoveUidPwdFromJdbcUrl(jdbcUrl: string): [uid: string, pwd: string, cleanedUrl: string] {
LOW…ubejs-testing-drivers/src/tests/testExternalSchemas.ts7export function redshiftExternalSchemasSuite(
LOW…ting-drivers/src/tests/testIncrementalSchemaLoading.ts13export function incrementalSchemaLoadingSuite(
LOW…ry-orchestrator/test/benchmarks/QueueBench.abstract.ts15function patchQueueDriverConnectionForTrack(connection: QueueDriverConnectionInterface, counters: any): QueueDriverConne
LOW…query-orchestrator/src/orchestrator/PreAggregations.ts63export function getLastUpdatedAtTimestamp(
LOW…ery-orchestrator/src/orchestrator/QueryOrchestrator.ts41function detectQueueAndCacheDriver(options: QueryOrchestratorOptions): CacheAndQueryDriverType {
LOWpackages/cubejs-backend-shared/src/machine-id.ts8function isWindowsProcessMixedOrNativeArchitecture(): 'native' | 'mixed' | '' {
LOWpackages/cubejs-backend-shared/src/proxy.ts3export async function getHttpAgentForProxySettings() {
LOWpackages/cubejs-backend-shared/src/env.ts146export function hasPreAggregationsEnvVars(dataSource: string = 'default'): boolean {
LOWpackages/cubejs-backend-shared/src/time.ts63export function findMinGranularityDimension(id: string, dimensions: DimensionToCompareGranularity[]): { index: number, d
LOWpackages/cubejs-backend-shared/src/package.ts127export async function resolveBuiltInPackageVersion(pkgName: string) {
LOWpackages/cubejs-backend-shared/src/package.ts134export async function resolveUserPackageVersion(pkgName: string) {
LOWdocs-mintlify/scripts/migrate_redirects.py101def generate_migration_redirects() -> list[dict]:
LOWdocs-mintlify/scripts/copy_content.py123def migrate_apis_integrations(
LOWdocs-mintlify/scripts/transform_components.py390def transform_community_driver(content: str) -> str:
LOWdocs-mintlify/scripts/transform_components.py442def transform_filename_to_title(content: str) -> str:
AI Slop Vocabulary7 hits · 21 pts
SeverityFileLineSnippet
MEDIUMrust/cubestore/cubestore-sql-tests/src/tests.rs1920 // change with time, though, so test is not robust.
MEDIUMrust/cubesql/cubesql/src/compile/rewrite/converter.rs1444 // Regular join would use hash partitioning here, so it would be quicker, and utilize less CPU,
MEDIUMpackages/cubejs-api-gateway/src/graphql.ts403 // Push down all inDateRange filters to time dimensions to leverage pre-aggregations
MEDIUMpackages/cubejs-backend-native/Cargo.toml61# harness. Off by default — never enable in production builds.
MEDIUMpackages/cubejs-backend-native/src/node_export.rs820 #[cfg(feature = "bridge-test-harness")]
MEDIUMpackages/cubejs-backend-native/src/lib.rs7#[cfg(feature = "bridge-test-harness")]
MEDIUM.github/workflows/claude-code-review.yml182 # Tools for comprehensive PR review
Hallucination Indicators2 hits · 20 pts
SeverityFileLineSnippet
CRITICALrust/cubesql/cubesql/src/compile/rewrite/converter.rs2135 self.cube_context.sessions.server.config_obj.clone(),
CRITICAL…chema-compiler/test/unit/context-symbols-proxy.test.ts121 expect(proxy.a.b.c.d.e.filter('col')).toBe('1 = 1');
Excessive Try-Catch Wrapping8 hits · 16 pts
SeverityFileLineSnippet
MEDIUMdocs-mintlify/scripts/migrate_redirects.py186 print(f"Error: {redirects_path} not found", file=sys.stderr)
MEDIUMdocs-mintlify/scripts/rewrite_links.py222 print(f"Error: {target} not found", file=sys.stderr)
MEDIUMdocs-mintlify/scripts/check_links.py111 print(f"Error: {docs_root} not found", file=sys.stderr)
MEDIUMdocs-mintlify/scripts/copy_content.py350 print(f"Error: Source directory not found: {src_root}", file=sys.stderr)
MEDIUMdocs-mintlify/scripts/update_frontmatter.py220 print(f"Error: {target} not found", file=sys.stderr)
MEDIUMdocs-mintlify/scripts/transform_components.py564 print(f"Error: {target} not found", file=sys.stderr)
MEDIUMdocs-mintlify/scripts/migrate.py145 print(f"Error: Source not found: {source}", file=sys.stderr)
MEDIUMdocs-mintlify/scripts/migrate.py153 print(f"Error: Unknown step '{step}'. Available: {', '.join(STEPS.keys())}", file=sys.stderr)
Verbosity Indicators9 hits · 16 pts
SeverityFileLineSnippet
LOW…besqlplanner/src/planner/symbols/common/symbol_path.rs82 // Step 1: If current_cube set, try resolving parts[0] as member
LOW…besqlplanner/src/planner/symbols/common/symbol_path.rs91 // Step 2: Try resolving parts[0] as cube reference
LOW…cubesqlplanner/src/planner/time_dimension/date_time.rs83 // Step 1: add years and months with fallback logic
LOW…cubesqlplanner/src/planner/time_dimension/date_time.rs111 // Step 2: Add weeks and days
LOW…cubesqlplanner/src/planner/time_dimension/date_time.rs115 // Step 3: Recombine with original time
LOW…cubesqlplanner/src/planner/time_dimension/date_time.rs119 // Step 4: Add time-based parts
LOW…/cubejs-server-core/test/unit/RefreshScheduler.test.ts1208 // Step 1: Immediate retry - should skip due to backoff (10-second window)
LOW…/cubejs-server-core/test/unit/RefreshScheduler.test.ts1228 // Step 2: Verify backoff persists - pre-aggregation is still in backoff after 500ms
LOW…ges/cubejs-schema-compiler/src/compiler/CubeSymbols.ts1407 // so we need to check if such granularity exists in cube definition.
Fake / Example Data9 hits · 13 pts
SeverityFileLineSnippet
LOWrust/cubesql/cubesql/src/compile/test/test_udfs.rs342 regexp_substr('test@test.com', '@[^.]*') as match_dot,
LOWrust/cubesql/cubesql/src/compile/test/test_udfs.rs346 regexp_substr('test@test.com', null) as pattern_null,
LOWrust/cubesql/cubesql/src/compile/test/test_udfs.rs347 regexp_substr('test@test.com', '@[^.]*', 1) as position_default,
LOWrust/cubesql/cubesql/src/compile/test/test_udfs.rs348 regexp_substr('test@test.com', '@[^.]*', 5) as position_no_skip,
LOWrust/cubesql/cubesql/src/compile/test/test_udfs.rs349 regexp_substr('test@test.com', '@[^.]*', 6) as position_skip,
LOWrust/cubesql/cubesql/src/compile/test/test_udfs.rs350 regexp_substr('test@test.com', '@[^.]*', 0) as position_zero,
LOWrust/cubesql/cubesql/src/compile/test/test_udfs.rs351 regexp_substr('test@test.com', '@[^.]*', -1) as position_negative,
LOWrust/cubesql/cubesql/src/compile/test/test_udfs.rs352 regexp_substr('test@test.com', '@[^.]*', 100) as position_more_then_input
LOWrust/cubesql/cubesql/src/compile/test/test_udfs.rs364 SELECT 'test@test.com' as a
Deep Nesting10 hits · 10 pts
SeverityFileLineSnippet
LOWdocs-mintlify/scripts/rewrite_links.py159
LOWdocs-mintlify/scripts/rewrite_links.py189
LOWdocs-mintlify/scripts/check_links.py64
LOWdocs-mintlify/scripts/copy_content.py123
LOWdocs-mintlify/scripts/copy_content.py189
LOWdocs-mintlify/scripts/copy_content.py228
LOWdocs-mintlify/scripts/update_frontmatter.py98
LOWdocs-mintlify/scripts/update_frontmatter.py187
LOWdocs-mintlify/scripts/transform_components.py488
LOWdocs-mintlify/scripts/transform_components.py519
Slop Phrases4 hits · 6 pts
SeverityFileLineSnippet
LOW.github/workflows/rust-cubesql.yml123 # TODO: Add 24 after it's been released (don't forget to uncomment excludes below!)
LOW.github/workflows/rust-cubesql.yml123 # TODO: Add 24 after it's been released (don't forget to uncomment excludes below!)
LOW.github/workflows/push.yml80 # Don't forget to update build-native-release
LOW.github/workflows/push.yml266 # Don't forget to align with PYTHON_VERSION_CURRENT
Redundant / Tautological Comments2 hits · 3 pts
SeverityFileLineSnippet
LOWdocs/vercel-deploy-check.sh15# Check if docs changed since last successful deployment
LOW…es/cubejs-testing/birdbox-fixtures/rbac-python/cube.py18 # Check if any of the specified keys are in the dictionary
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippet
LOWdocs-mintlify/scripts/upload-asset.sh5# Usage:
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippet
LOWpackages/cubejs-backend-native/test/utils.py4def test_function(query: dict) -> dict:
Unused Imports1 hit · 1 pts
SeverityFileLineSnippet
LOWdocs-mintlify/scripts/transform_components.py20