case_sensitive (for fields) Stay organized with collections Save and categorize content based on your preferences.
This page refers to the
case_sensitiveparameter that is part of adimension orfilter.
case_sensitivecan also be used as part of a model, described on thecase_sensitive(for models) parameter documentation page.
case_sensitivecan also be used as part of an Explore, described on thecase_sensitive(for Explores) parameter documentation page.
Usage
view: view_name { dimension: field_name { case_sensitive: no }}Hierarchy case_sensitive | Possible Field Types Dimension, FilterAccepts A Boolean (yes or no) |
Definition
When adimension orfilter field is used as a filter, you can change its case-sensitivity by using thecase_sensitive parameter. Thecase_sensitive parameter works with most dialects, although some dialects do not have the necessary SQL functions.
By default,case_sensitivity is on and filters are case-sensitive. However, some dialects do not support this parameter, as described in thecase_sensitive is not supported by some SQL dialects section on this page.
Examples
Stop filters on thename dimension from being case-sensitive:
dimension: name { sql: ${TABLE}.name ;; case_sensitive: no}Common challenges
case_sensitive is not supported by some SQL dialects
By default,case_sensitivity is on and filters are case-sensitive. If your SQL dialect doesn't support thecase_sensitive parameter, case sensitivity will vary according to your database setup, which willusually not be case-sensitive.
For Looker to supportcase_sensitive in your Looker project, your database dialect must also support it. The following table shows which dialects supportcase_sensitive in the latest release of Looker:
| Dialect | Supported? |
|---|---|
| Actian Avalanche | |
| Amazon Athena | |
| Amazon Aurora MySQL | |
| Amazon Redshift | |
| Amazon Redshift 2.1+ | |
| Amazon Redshift Serverless 2.1+ | |
| Apache Druid | |
| Apache Druid 0.13+ | |
| Apache Druid 0.18+ | |
| Apache Hive 2.3+ | |
| Apache Hive 3.1.2+ | |
| Apache Spark 3+ | |
| ClickHouse | |
| Cloudera Impala 3.1+ | |
| Cloudera Impala 3.1+ with Native Driver | |
| Cloudera Impala with Native Driver | |
| DataVirtuality | |
| Databricks | |
| Denodo 7 | |
| Denodo 8 & 9 | |
| Dremio | |
| Dremio 11+ | |
| Exasol | |
| Google BigQuery Legacy SQL | |
| Google BigQuery Standard SQL | |
| Google Cloud AlloyDB for PostgreSQL | |
| Google Cloud PostgreSQL | |
| Google Cloud SQL | |
| Google Spanner | |
| Greenplum | |
| HyperSQL | |
| IBM Netezza | |
| MariaDB | |
| Microsoft Azure PostgreSQL | |
| Microsoft Azure SQL Database | |
| Microsoft Azure Synapse Analytics | |
| Microsoft SQL Server 2008+ | |
| Microsoft SQL Server 2012+ | |
| Microsoft SQL Server 2016 | |
| Microsoft SQL Server 2017+ | |
| MongoBI | |
| MySQL | |
| MySQL 8.0.12+ | |
| Oracle | |
| Oracle ADWC | |
| PostgreSQL 9.5+ | |
| PostgreSQL pre-9.5 | |
| PrestoDB | |
| PrestoSQL | |
| SAP HANA | |
| SAP HANA 2+ | |
| SingleStore | |
| SingleStore 7+ | |
| Snowflake | |
| Teradata | |
| Trino | |
| Vector | |
| Vertica |
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-02-05 UTC.