{"record":{"id":"5f9cf11d98cb29f6","repo":"cube-js/cube","slug":"the-keybydatasource-cubejs-db-snowflake-quoted","errorCode":null,"errorMessage":"The ${keyByDataSource('CUBEJS_DB_SNOWFLAKE_QUOTED_IDENTIFIERS_IGNORE_CASE', dataSource, preAggregations)} must be either 'true' or 'false'.","messagePattern":"The (.+?) must be either 'true' or 'false'\\.","errorType":"validation","errorClass":"TypeError","httpStatus":null,"severity":"error","filePath":"packages/cubejs-backend-shared/src/env.ts","lineNumber":1650,"sourceCode":"  }: DataSourceOpts) => (\n    get(keyByDataSource('CUBEJS_DB_SNOWFLAKE_PRIVATE_KEY_PASS', dataSource, preAggregations)).asString()\n  ),\n\n  /**\n   * Snowflake case sensitivity for identifiers (like database columns).\n   */\n  snowflakeQuotedIdentIgnoreCase: ({\n    dataSource,\n    preAggregations,\n  }: DataSourceOpts) => {\n    const val = get(keyByDataSource('CUBEJS_DB_SNOWFLAKE_QUOTED_IDENTIFIERS_IGNORE_CASE', dataSource, preAggregations)).asString();\n    if (val) {\n      if (val.toLocaleLowerCase() === 'true') {\n        return true;\n      } else if (val.toLowerCase() === 'false') {\n        return false;\n      } else {\n        throw new TypeError(\n          `The ${\n            keyByDataSource(\n              'CUBEJS_DB_SNOWFLAKE_QUOTED_IDENTIFIERS_IGNORE_CASE',\n              dataSource,\n            )\n          } must be either 'true' or 'false'.`\n        );\n      }\n    } else {\n      return false;\n    }\n  },\n  /** ****************************************************************\n   * Presto Driver                                                   *\n   ***************************************************************** */\n\n  /**\n   * Presto catalog.","sourceCodeStart":1632,"sourceCodeEnd":1668,"githubUrl":"https://github.com/cube-js/cube/blob/7d981676b36392fec34088b9afab6bdcad40207c/packages/cubejs-backend-shared/src/env.ts#L1632-L1668","documentation":"Env type validation in env.ts snowflakeQuotedIdentIgnoreCase: CUBEJS_DB_SNOWFLAKE_QUOTED_IDENTIFIERS_IGNORE_CASE must be the literal string 'true' or 'false' (case-insensitive); any other value throws this TypeError when the accessor is called, guarding the boolean flag that controls Snowflake identifier case sensitivity.","triggerScenarios":"Thrown at packages/cubejs-backend-shared/src/env.ts:1650 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set the variable to 'true' or 'false' exactly.","Unset it to keep the default behavior.","Avoid values like yes/no, 1/0, or quoted JSON strings — only true/false (any case) parse."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"7d981676b36392fec34088b9afab6bdcad40207c","analyzedAt":"2026-09-02T03:45:10.400Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T15:18:49.778Z"}