CtrlK
CommunityDocumentationLog inGet started
Tessl Logo

tessl/npm-lightdash--common

tessl install tessl/npm-lightdash--common@0.2231.5

Shared TypeScript library for the Lightdash platform containing common types, utilities, and business logic for analytics workflows

Agent Success

Agent success rate when using this tile

72%

Improvement

Agent success rate improvement when using this tile compared to baseline

1.09x

Baseline

Agent success rate without this tile

66%

rubric.jsonevals/scenario-7/

{
  "context": "This criteria evaluates how well the engineer uses @lightdash/common's filter compilation utilities, warehouse-specific SQL generation functions, and date/time manipulation helpers to build a date range filter compiler with timezone support and multi-warehouse compatibility.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Filter Type Mapping",
      "description": "Uses @lightdash/common's filter type system (FilterOperator, TimeFrames) or date filter utilities to map between user-facing filter operators and internal filter representations",
      "max_score": 15
    },
    {
      "name": "Warehouse SQL Adapter",
      "description": "Uses warehouse-specific SQL generation functions from @lightdash/common (e.g., functions in src/warehouse or src/database directories) to generate appropriate SQL syntax for BigQuery, Snowflake, Postgres, and Redshift",
      "max_score": 25
    },
    {
      "name": "Date Truncation Functions",
      "description": "Uses @lightdash/common's date truncation utilities (e.g., renderDateFilterSql, getDateTruncSql, or similar date/time SQL generation functions) to generate warehouse-specific date boundary calculations",
      "max_score": 20
    },
    {
      "name": "Timezone Handling",
      "description": "Uses @lightdash/common's timezone utilities or date formatting functions (e.g., moment-timezone integration, timezone conversion helpers) to handle timezone-aware date calculations",
      "max_score": 15
    },
    {
      "name": "Filter Rendering",
      "description": "Uses @lightdash/common's filter rendering system (e.g., FilterRule types, buildFilterRules, or renderFilterRuleSql functions) to compile filter configurations into SQL WHERE clauses",
      "max_score": 15
    },
    {
      "name": "SQL Escaping",
      "description": "Uses @lightdash/common's SQL escaping or quoting utilities (e.g., escapeStringLiteral, quote functions) to safely generate SQL strings and prevent SQL injection",
      "max_score": 10
    }
  ]
}

Version

Workspace
tessl
Visibility
Public
Created
Last updated
Describes
npmpkg:npm/@lightdash/common@0.2231.x
tile.json