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-17/

{
  "context": "This criteria evaluates how well the engineer uses @lightdash/common's dimension compilation features, specifically focusing on variable reference resolution, cross-table references, and circular dependency detection for SQL expressions.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Reference extraction",
      "description": "Implements extractReferences() function that correctly parses SQL strings to identify all ${table.field} variable references using regex or string parsing",
      "max_score": 15
    },
    {
      "name": "Basic reference resolution",
      "description": "Implements resolveDimensionReferences() to replace ${table.field} references with actual field SQL or table-qualified references from the DimensionContext",
      "max_score": 20
    },
    {
      "name": "Field lookup handling",
      "description": "Correctly uses the Map<string, Field> from DimensionContext to look up field definitions and access their sql property for resolution",
      "max_score": 15
    },
    {
      "name": "Cross-table resolution",
      "description": "Handles references to fields from tables other than currentTable by resolving the full table.field path correctly",
      "max_score": 15
    },
    {
      "name": "Circular dependency detection",
      "description": "Uses the visitedFields Set parameter to track visited field references and detect circular dependencies by checking if a field reference is already in the set before resolving",
      "max_score": 20
    },
    {
      "name": "Invalid reference errors",
      "description": "Throws appropriate errors when references point to non-existent tables or fields, with clear error messages indicating what is invalid",
      "max_score": 10
    },
    {
      "name": "Recursive resolution",
      "description": "Recursively resolves references when a field's SQL contains additional ${table.field} references, properly passing the visitedFields set through recursive calls",
      "max_score": 5
    }
  ]
}

Version

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