# e6data Docs: Query Engine > Product guides and references for e6data Query Engine, Transformation Engine, Ingest Engine, AgentFlow and the Platform they share. ## Query Engine ### Query Engine - [Query Engine](https://docs.e6data.com/query/index.md): SQL analytics on your lakehouse, with no data movement. ### Get started - [Get started with Query Engine](https://docs.e6data.com/query/get-started/index.md): The path from a new account to SQL results in your own tools, with a link to the right guide at every step. - [Install self-managed](https://docs.e6data.com/query/get-started/self-managed.md): Run Query Engine on infrastructure you manage yourself. ### Connect data - [Register and manage catalogs](https://docs.e6data.com/query/catalogs/register-and-manage-catalogs.md): Register a catalog to connect e6data to your metastore, then refresh, edit, schedule refreshes for, or delete it. - [Troubleshooting catalogs](https://docs.e6data.com/query/catalogs/troubleshooting.md): Resolve common catalog connection, cross-account, and refresh failures in e6data. #### Catalog types - [AWS Glue Catalog](https://docs.e6data.com/query/catalogs/aws-glue.md): Connect an AWS Glue Data Catalog to your e6data workspace to query data registered in Glue and stored in S3. - [Hive Metastore](https://docs.e6data.com/query/catalogs/hive-metastore.md): Connect a Hive Metastore catalog to your e6data workspace. e6data supports Hive Metastore's running in AWS and Azure, with or without cross-account access. - [Set up a Hive Metastore](https://docs.e6data.com/query/catalogs/set-up-hive-metastore.md): Step-by-step guide to setting up a Hive Metastore with Terraform if you don't already have one. - [Unity Catalog](https://docs.e6data.com/query/catalogs/unity-catalog.md): Connect a Databricks Unity Catalog to your e6data workspace. - [Apache Polaris](https://docs.e6data.com/query/catalogs/apache-polaris.md): Connect an Apache Polaris catalog to your e6data workspace to query Iceberg tables over the Iceberg REST protocol. - [Iceberg REST Catalog](https://docs.e6data.com/query/catalogs/iceberg-rest-catalog.md): Connect any spec-compliant Iceberg REST Catalog server, such as Lakekeeper, Nessie, or Gravitino, to your e6data workspace. - [Amazon S3 Tables](https://docs.e6data.com/query/catalogs/amazon-s3-tables.md): Connect Amazon S3 Tables buckets to your e6data workspace and query their Iceberg tables. - [Microsoft Fabric](https://docs.e6data.com/query/catalogs/microsoft-fabric.md): Connect e6data to Microsoft Fabric to query data stored in OneLake. e6data reads metadata from your Fabric workspace and accesses the underlying data directly from OneLake using your Azure credentials. #### Cross-account catalog access - [Cross-account access](https://docs.e6data.com/query/catalogs/cross-account/index.md): When your data and metastore live in a different cloud account from the one you're using e6data with, cross-account access lets a single workspace reach across accounts. This keeps you from having to maintain duplicate workspaces. - [Cross-account access to AWS Glue](https://docs.e6data.com/query/catalogs/cross-account/aws-glue.md): Connect an e6data workspace to an AWS Glue metastore and S3 data in a different AWS account. - [Cross-account access to a Hive Metastore (AWS)](https://docs.e6data.com/query/catalogs/cross-account/aws-hive-metastore.md): Connect an e6data workspace to a Hive Metastore and S3 data in a different AWS account. - [Cross-account access to Unity Catalog](https://docs.e6data.com/query/catalogs/cross-account/unity-catalog.md): Connect an e6data workspace to a Unity Catalog and S3 data in a different cloud account. #### Table formats - [Iceberg](https://docs.e6data.com/query/table-formats/iceberg.md): How e6data queries Apache Iceberg tables through external catalogs, and which Iceberg features are supported. - [Delta Lake](https://docs.e6data.com/query/table-formats/delta-lake.md): How e6data queries Delta Lake tables through external catalogs, what's supported, and how to connect. - [Hive tables](https://docs.e6data.com/query/table-formats/hive-tables.md): How e6data queries Hive tables through a Hive Metastore or compatible catalog. - [Apache Hudi](https://docs.e6data.com/query/table-formats/apache-hudi.md): How e6data queries Apache Hudi tables and which Hudi features are supported. ### Run clusters - [Create and manage clusters](https://docs.e6data.com/query/clusters/create-and-manage.md): Create a cluster, configure its settings, connect to it, and manage its version and lifecycle. - [Cluster sizing and scaling](https://docs.e6data.com/query/clusters/sizing-and-scaling.md): Choose a cluster sizing and scaling mode - fixed, autoscaling, QPS-based, or scale-to-zero - plus execution modes and result caching. - [Suspend and resume](https://docs.e6data.com/query/clusters/suspend-and-resume.md): How clusters suspend to save cost and resume automatically when a query arrives - auto-suspend, manual suspend, auto-resume, and what's preserved. - [Zero-downtime upgrades](https://docs.e6data.com/query/clusters/zero-downtime-upgrades.md): How e6data upgrades a cluster's version without interrupting queries, and how it recovers if the new version is unhealthy. - [CloudPrem cluster operations](https://docs.e6data.com/query/clusters/cloudprem-operations.md): Manage e6data clusters in an In-VPC deployment with Kubernetes CRDs, kubectl, and GitOps - create, configure, scale, suspend, upgrade, and inspect. - [Lifecycle states and error codes](https://docs.e6data.com/query/clusters/lifecycle-states.md): The cluster lifecycle states and the customer-facing error codes, with what each means and what to do. - [Troubleshooting clusters](https://docs.e6data.com/query/clusters/troubleshooting.md): Common cluster problems - stuck states, timeouts, degraded executors, and connection issues - with fixes. #### Configure cluster ingress - [Configure Cluster Ingress](https://docs.e6data.com/query/clusters/ingress/index.md): Securely enabling ingress to e6data clusters for external services - [ALB Ingress in Kubernetes](https://docs.e6data.com/query/clusters/ingress/alb.md): Configuring ALB Ingress in Kubernetes - [Ingress-Nginx in Kubernetes](https://docs.e6data.com/query/clusters/ingress/nginx.md): Configuring Ingress-Nginx in Kubernetes ### Query - [Query editor](https://docs.e6data.com/query/querying/query-editor.md): Write, format, and run SQL in the e6data Query Editor - tabs, the query action bar, the SQL editor, and the Schema Explorer. - [Run queries and view results](https://docs.e6data.com/query/querying/run-queries-and-view-results.md): Run SQL in the e6data Query Editor, track query status, view and export results, inspect execution details, and preview data. - [Query history and saved queries](https://docs.e6data.com/query/querying/query-history.md): Review every query run in a workspace in Run History - timing, status, user, and query text - and get query counts programmatically. - [Query across catalogs and schemas](https://docs.e6data.com/query/querying/cross-catalog-querying.md): Execute queries across multiple catalogs and schemas seamlessly. - [Query performance basics](https://docs.e6data.com/query/querying/performance-basics.md): Practical levers for faster, cheaper queries in e6data - sizing, caching, execution mode, the transpiler, and reading execution details. ### Connect your tools - [Connecting to the engine](https://docs.e6data.com/query/connect/index.md): Connect BI tools, SQL clients, drivers, and your own code to an e6data cluster - one endpoint that speaks three protocols. - [One-endpoint / three-protocols model](https://docs.e6data.com/query/connect/one-endpoint-three-protocols.md): How e6data exposes one authenticated endpoint speaking gRPC, HTTP REST, and the PostgreSQL wire protocol, with routing by cluster name. - [Query e6data from Python](https://docs.e6data.com/query/connect/python.md): Install the Python connector, connect to a cluster, and run SQL from your own code. - [JDBC](https://docs.e6data.com/query/connect/jdbc.md): Connect to e6data with the JDBC driver - connection URL, credentials, and SQL clients that use it. - [PostgreSQL protocol](https://docs.e6data.com/query/connect/postgresql-protocol.md): Connect a stock PostgreSQL client to e6data over the PostgreSQL wire protocol - no e6data driver required. - [REST API for SQL queries](https://docs.e6data.com/query/connect/rest-api-for-sql.md): Run SQL on e6data over the language-agnostic HTTP REST v2 API - authenticate, submit a statement, poll, and page through results. #### BI tools and notebooks - [Tableau](https://docs.e6data.com/query/connect/tableau.md): Connect Tableau Desktop and Tableau Cloud to an e6data cluster over JDBC. - [Power BI](https://docs.e6data.com/query/connect/power-bi.md): Connect Power BI to an e6data cluster using the Starburst ODBC driver, with optional on-premises data gateway setup. - [Metabase](https://docs.e6data.com/query/connect/metabase.md): Connect Metabase to the e6data query engine using the e6data driver. - [Superset](https://docs.e6data.com/query/connect/superset.md): Connect Apache Superset to an e6data cluster using the e6data Python package and a SQLAlchemy URI. - [DBeaver](https://docs.e6data.com/query/connect/dbeaver.md): Connect the DBeaver SQL client to an e6data cluster using the e6data JDBC driver. - [DbVisualizer](https://docs.e6data.com/query/connect/dbvisualizer.md): Connect the DbVisualizer SQL client to an e6data cluster using the e6data JDBC driver. - [Notebooks](https://docs.e6data.com/query/connect/notebooks.md): Connect Jupyter Notebook (via the Python connector) and Apache Zeppelin (via JDBC) to an e6data cluster. #### PySpark compatibility - [PySpark compatibility](https://docs.e6data.com/query/pyspark/index.md): Run existing PySpark and Apache Sedona code on e6data with a drop-in compatibility library - install, configure the connection, and run. - [Supported APIs and compatibility notes](https://docs.e6data.com/query/pyspark/supported-apis.md): The PySpark DataFrame operations, SQL functions, and read/write formats supported by the e6data compatibility layer, with end-to-end code samples. - [Code samples](https://docs.e6data.com/query/pyspark/code-samples.md): End-to-end code samples demonstrating common PySpark workflows on e6data. - [DataFrame operations](https://docs.e6data.com/query/pyspark/dataframe-operations.md): DataFrame transformations, actions, and read and write operations supported by the e6data PySpark compatibility layer. - [Limitations](https://docs.e6data.com/query/pyspark/limitations.md): What the e6data PySpark compatibility layer does not support, and how unsupported operations behave. ### Secure and govern - [Data governance overview](https://docs.e6data.com/query/governance/index.md): How e6data governs access to data within a catalog - catalog-level access control, column masking, and row filtering, enforced deny-by-default. - [Catalog-level access control](https://docs.e6data.com/query/governance/catalog-access-control.md): Grant or deny query access at the catalog, database, table, and column level with allow and deny privileges. - [Data access policies](https://docs.e6data.com/query/governance/data-access-policies.md): Apply column masking and row filtering to control which data users can see within a catalog. - [Mask columns](https://docs.e6data.com/query/governance/column-masking.md): Create, update, and delete column-masking privileges to obscure sensitive column values from users. - [Filter rows](https://docs.e6data.com/query/governance/row-filter.md): Create, update, and delete row-filter privileges to limit which rows a user can see. - [Relationship to platform RBAC](https://docs.e6data.com/query/governance/relationship-to-platform-rbac.md): How data governance and platform RBAC differ and work together - who can do what vs. which data they can see. - [Audit Log](https://docs.e6data.com/query/governance/audit-log.md): Audit Log feature of e6data , will help you navigate and utilise the Audit Logs effectively to track administrative actions related to workspaces, catalogs, and clusters. - [FAQs](https://docs.e6data.com/query/governance/faqs.md): Frequently asked questions about catalog privileges and data access policies in e6data. ### Troubleshoot #### Error codes - [Error codes](https://docs.e6data.com/query/errors/index.md): Error codes returned by e6data, organized by component. Each page lists codes, meanings, and fixes. - [General Errors](https://docs.e6data.com/query/errors/general.md): Identify and resolve common system and user-related issues. - [Catalog Errors](https://docs.e6data.com/query/errors/catalog.md): Address issues encountered while managing catalogs and metadata. - [Cluster Errors](https://docs.e6data.com/query/errors/cluster.md): Troubleshoot failures and performance issues in cluster operations. - [Connectivity Errors](https://docs.e6data.com/query/errors/connectivity.md): Troubleshoot network and connection-related issues. - [Data Governance Errors](https://docs.e6data.com/query/errors/data-governance.md): Resolve issues related to access control, policies, and compliance. - [Query Editor Errors](https://docs.e6data.com/query/errors/query-editor.md): Troubleshoot issues related to query execution and interface functionality. - [Query History Errors](https://docs.e6data.com/query/errors/query-history.md): Address issues with logging, tracking, and retrieving query history. - [REST API errors](https://docs.e6data.com/query/errors/rest-api.md): Error codes returned by the e6data REST API, what they mean, and how to fix them. - [User Account Errors](https://docs.e6data.com/query/errors/user-account.md): Troubleshoot authentication, access, and profile-related issues. - [Workspace Errors](https://docs.e6data.com/query/errors/workspace.md): Diagnose and resolve issues related to workspace setup and usage. #### Known limitations - [Known Limitations](https://docs.e6data.com/query/limitations/index.md): Identify current constraints and restrictions in the system. - [SQL Limitations](https://docs.e6data.com/query/limitations/sql.md): Understand constraints and unsupported features in SQL execution. - [Cloud provider](https://docs.e6data.com/query/limitations/cloud-provider.md): Cloud-provider-specific limits and constraints when running e6data. - [Restart Triggers](https://docs.e6data.com/query/limitations/restart-triggers.md): Manage and configure conditions for automatic process restarts. - [Other Limitations](https://docs.e6data.com/query/limitations/other.md): Recognize additional constraints affecting functionality and performance. ### Reference - [Query limits](https://docs.e6data.com/query/reference/query-limits.md): Query timeout, result-display, and session limits for queries in e6data. - [Cluster limits](https://docs.e6data.com/query/reference/cluster-limits.md): Naming rules, sizing bounds, and scaling/suspension limits for e6data clusters. #### SQL reference - [SQL reference](https://docs.e6data.com/query/sql/index.md): The SQL that Query Engine supports: data types, functions, statements and equivalents from other engines. - [Supported data types](https://docs.e6data.com/query/sql/data-types.md): The data types Query Engine supports, with examples. - [Equivalent functions and operators](https://docs.e6data.com/query/sql/function-mapping.md): Functions and operators in Athena, BigQuery, Databricks, Presto, Redshift and Snowflake, and their e6data equivalents. ##### SQL functions - [SQL functions](https://docs.e6data.com/query/sql/functions/index.md): Every SQL function Query Engine supports, grouped by category, with syntax, arguments, return values and examples. - [Geospatial functions](https://docs.e6data.com/query/sql/functions/geospatial/index.md): SQL geospatial and H3 functions for working with location data - points, coordinates, polygons, and spatial indexes. ###### Aggregate functions - [Aggregate functions](https://docs.e6data.com/query/sql/functions/aggregate/index.md): Compute one result from a set of rows, such as a sum, count, average or approximate distinct count. Most can also run as window functions. - [ANY_VALUE](https://docs.e6data.com/query/sql/functions/aggregate/any_value.md): Returns an arbitrary value from a group. - [APPROX_COUNT_DISTINCT](https://docs.e6data.com/query/sql/functions/aggregate/approx_count_distinct.md): Estimates the number of distinct non-NULL input values. - [APPROX_PERCENTILE](https://docs.e6data.com/query/sql/functions/aggregate/approx_percentile.md): Estimates one or more percentiles of non-NULL numeric values. - [APPROX_QUANTILES](https://docs.e6data.com/query/sql/functions/aggregate/approx_quantiles.md): APPROX_QUANTILES in Query Engine SQL. - [APPROX_TOP_K](https://docs.e6data.com/query/sql/functions/aggregate/approx_top_k.md): Returns the approximate most frequent input values. - [ARBITRARY](https://docs.e6data.com/query/sql/functions/aggregate/arbitrary.md): Returns an arbitrary value from a group. - [ARRAY_AGG](https://docs.e6data.com/query/sql/functions/aggregate/array_agg.md): Collects values into an array; non-DISTINCT calls skip NULLs, while grouped DISTINCT calls can retain one NULL. - [ARRAY_UNIQUE_AGG](https://docs.e6data.com/query/sql/functions/aggregate/array_unique_agg.md): Collects distinct non-NULL values into an array. - [AVG](https://docs.e6data.com/query/sql/functions/aggregate/avg.md): Returns the arithmetic mean of non-NULL numeric values. - [BIT_OR](https://docs.e6data.com/query/sql/functions/aggregate/bit_or.md): Returns the bitwise OR of non-NULL integer values. - [BIT_XOR](https://docs.e6data.com/query/sql/functions/aggregate/bit_xor.md): Returns the bitwise XOR of non-NULL integer values. - [BITORAGG](https://docs.e6data.com/query/sql/functions/aggregate/bitoragg.md): Returns the bitwise OR of non-NULL integer values. - [BOOL_OR](https://docs.e6data.com/query/sql/functions/aggregate/bool_or.md): Returns true if any non-NULL input is true. - [COLLECT_LIST](https://docs.e6data.com/query/sql/functions/aggregate/collect_list.md): Collects values into an array; non-DISTINCT calls skip NULLs, while grouped DISTINCT calls can retain one NULL. - [COLLECT_SET](https://docs.e6data.com/query/sql/functions/aggregate/collect_set.md): Collects distinct values into an array, including at most one NULL. - [CORR](https://docs.e6data.com/query/sql/functions/aggregate/corr.md): Returns the Pearson correlation coefficient. - [COUNT](https://docs.e6data.com/query/sql/functions/aggregate/count.md): Counts rows or non-NULL expression values. - [COUNT_IF](https://docs.e6data.com/query/sql/functions/aggregate/count_if.md): Counts rows whose condition is true. - [COUNTIF](https://docs.e6data.com/query/sql/functions/aggregate/countif.md): Counts rows whose condition is true. - [COVAR_POP](https://docs.e6data.com/query/sql/functions/aggregate/covar_pop.md): Returns the population covariance. - [COVAR_SAMP](https://docs.e6data.com/query/sql/functions/aggregate/covar_samp.md): Returns the sample covariance. - [DISTINCT](https://docs.e6data.com/query/sql/functions/aggregate/distinct.md): DISTINCT in Query Engine SQL. - [EVERY](https://docs.e6data.com/query/sql/functions/aggregate/every.md): Returns TRUE when every non-NULL Boolean input is TRUE; returns FALSE if any contributing input is FALSE. - [FIRST](https://docs.e6data.com/query/sql/functions/aggregate/first.md): Returns the first group/frame value. - [FIRST_VALUE](https://docs.e6data.com/query/sql/functions/aggregate/first_value.md): Returns the first group/frame value. - [GROUPING](https://docs.e6data.com/query/sql/functions/aggregate/grouping.md): Returns a number whose bits identify which GROUP BY expressions were omitted from the current grouping set. - [GROUPING_ID](https://docs.e6data.com/query/sql/functions/aggregate/grouping_id.md): Returns a number whose bits identify which GROUP BY expressions were omitted from the current grouping set. - [LAST](https://docs.e6data.com/query/sql/functions/aggregate/last.md): Returns the last group/frame value. - [LAST_VALUE](https://docs.e6data.com/query/sql/functions/aggregate/last_value.md): Returns the last group/frame value. - [LISTAGG](https://docs.e6data.com/query/sql/functions/aggregate/listagg.md): Concatenates non-NULL strings with a delimiter. - [MAX](https://docs.e6data.com/query/sql/functions/aggregate/max.md): Returns the maximum non-NULL value. - [MAX_BY](https://docs.e6data.com/query/sql/functions/aggregate/max_by.md): Returns the value associated with the greatest non-NULL ordering key. - [MEAN](https://docs.e6data.com/query/sql/functions/aggregate/mean.md): Returns the arithmetic mean of non-NULL numeric values. - [MEDIAN](https://docs.e6data.com/query/sql/functions/aggregate/median.md): Returns the interpolated 50th percentile. - [MIN](https://docs.e6data.com/query/sql/functions/aggregate/min.md): Returns the minimum non-NULL value. - [MODE](https://docs.e6data.com/query/sql/functions/aggregate/mode.md): Returns the most frequent non-NULL value. - [OBJECT_AGG](https://docs.e6data.com/query/sql/functions/aggregate/object_agg.md): Combines key/VARIANT pairs into an object. - [PERCENTILE](https://docs.e6data.com/query/sql/functions/aggregate/percentile.md): Returns exact interpolated quantiles of non-NULL numeric values. - [PERCENTILE_APPROX](https://docs.e6data.com/query/sql/functions/aggregate/percentile_approx.md): Estimates a percentile or an ordered array of percentiles, with accuracy controlled by the accuracy argument. - [PERCENTILE_CONT](https://docs.e6data.com/query/sql/functions/aggregate/percentile_cont.md): Returns exact interpolated quantiles of non-NULL numeric values. - [SOME](https://docs.e6data.com/query/sql/functions/aggregate/some.md): Returns TRUE when any non-NULL Boolean input is TRUE; returns FALSE when all contributing inputs are FALSE. - [STDDEV](https://docs.e6data.com/query/sql/functions/aggregate/stddev.md): Returns sample standard deviation. - [STDDEV_POP](https://docs.e6data.com/query/sql/functions/aggregate/stddev_pop.md): Returns population standard deviation. - [STDDEV_SAMP](https://docs.e6data.com/query/sql/functions/aggregate/stddev_samp.md): Returns sample standard deviation. - [STRING_AGG](https://docs.e6data.com/query/sql/functions/aggregate/string_agg.md): Concatenates non-NULL strings with a delimiter. - [SUM](https://docs.e6data.com/query/sql/functions/aggregate/sum.md): Returns the sum of non-NULL numeric values. - [VAR_SAMP](https://docs.e6data.com/query/sql/functions/aggregate/var_samp.md): Returns sample variance. - [VARIANCE](https://docs.e6data.com/query/sql/functions/aggregate/variance.md): Returns sample variance. ###### Window functions - [Window functions](https://docs.e6data.com/query/sql/functions/window/index.md): Rank rows and read values from neighbouring rows within a window. Aggregate functions can also run over windows. - [CUME_DIST](https://docs.e6data.com/query/sql/functions/window/cume_dist.md): Returns the fraction of rows in the group that come before or tie with the current row in the specified order. - [DENSE_RANK](https://docs.e6data.com/query/sql/functions/window/dense_rank.md): Returns consecutive ranks without gaps for equal ordering values. - [LAG](https://docs.e6data.com/query/sql/functions/window/lag.md): Returns a value from an earlier row in the same group defined by PARTITION BY. - [LEAD](https://docs.e6data.com/query/sql/functions/window/lead.md): Returns a value from a later row in the same group defined by PARTITION BY. - [NTILE](https://docs.e6data.com/query/sql/functions/window/ntile.md): Divides the ordered rows in each group into buckets as evenly as possible. - [RANK](https://docs.e6data.com/query/sql/functions/window/rank.md): Returns ranks with gaps after equal ordering values. - [ROW_NUMBER](https://docs.e6data.com/query/sql/functions/window/row_number.md): Assigns consecutive row numbers starting at 1 within each group defined by PARTITION BY. ###### Conditional and conversion functions - [Conditional and conversion functions](https://docs.e6data.com/query/sql/functions/conditional/index.md): Branch on conditions, handle NULLs, cast between types and read session context. - [CASE](https://docs.e6data.com/query/sql/functions/conditional/case.md): CASE in Query Engine SQL. - [CAST](https://docs.e6data.com/query/sql/functions/conditional/cast.md): Converts a value to a requested SQL type. - [COALESCE](https://docs.e6data.com/query/sql/functions/conditional/coalesce.md): Returns the first non-NULL value from its arguments. - [CURRENT_CATALOG](https://docs.e6data.com/query/sql/functions/conditional/current_catalog.md): Returns the query’s current default catalog name. - [CURRENT_SCHEMA](https://docs.e6data.com/query/sql/functions/conditional/current_schema.md): Returns the query’s current default schema name. - [DECODE](https://docs.e6data.com/query/sql/functions/conditional/decode.md): Performs NULL-safe value selection or decodes bytes using a character set. - [EQUAL_NULL](https://docs.e6data.com/query/sql/functions/conditional/equal_null.md): Compares two values with NULL-safe equality. - [GREATEST](https://docs.e6data.com/query/sql/functions/conditional/greatest.md): Returns the greatest value among compatible arguments. - [IF](https://docs.e6data.com/query/sql/functions/conditional/if.md): Returns one of two values according to a Boolean condition. - [IFF](https://docs.e6data.com/query/sql/functions/conditional/iff.md): Returns one of two values according to a Boolean condition. - [IFNULL](https://docs.e6data.com/query/sql/functions/conditional/ifnull.md): Returns the first value when it is not NULL, otherwise the replacement value. - [IN](https://docs.e6data.com/query/sql/functions/conditional/in.md): IN in Query Engine SQL. - [ISNULL](https://docs.e6data.com/query/sql/functions/conditional/isnull.md): Tests whether a value is SQL NULL. - [LEAST](https://docs.e6data.com/query/sql/functions/conditional/least.md): Returns the least value among compatible arguments. - [NOT](https://docs.e6data.com/query/sql/functions/conditional/not.md): NOT in Query Engine SQL. - [NULLIF](https://docs.e6data.com/query/sql/functions/conditional/nullif.md): Returns NULL when two values are equal, otherwise returns the first value. - [NVL](https://docs.e6data.com/query/sql/functions/conditional/nvl.md): Returns the first value when it is not NULL, otherwise the replacement value. - [NVL2](https://docs.e6data.com/query/sql/functions/conditional/nvl2.md): Returns one value for a non-NULL input and another for a NULL input. - [TO_BOOLEAN](https://docs.e6data.com/query/sql/functions/conditional/to_boolean.md): TO_BOOLEAN in Query Engine SQL. - [TRY_CAST](https://docs.e6data.com/query/sql/functions/conditional/try_cast.md): Converts a value to a requested SQL type and returns NULL for failed supported conversions. - [TRY_TO_NUMBER](https://docs.e6data.com/query/sql/functions/conditional/try_to_number.md): Parses a string as a number and returns NULL if parsing fails. - [TYPEOF](https://docs.e6data.com/query/sql/functions/conditional/typeof.md): Returns the SQL type name of an expression. - [ZEROIFNULL](https://docs.e6data.com/query/sql/functions/conditional/zeroifnull.md): Returns zero for NULL input and otherwise returns the input value. ###### String functions - [String functions](https://docs.e6data.com/query/sql/functions/string/index.md): Search, slice, combine, pad, format and transform text. - [ASCII](https://docs.e6data.com/query/sql/functions/string/ascii.md): Returns the Unicode code point of the first character in a string. - [BASE64](https://docs.e6data.com/query/sql/functions/string/base64.md): Encodes bytes as MIME Base64 text. - [CHAR](https://docs.e6data.com/query/sql/functions/string/char.md): Returns the character for the low eight bits of a nonnegative numeric value. - [CHAR_LENGTH](https://docs.e6data.com/query/sql/functions/string/char_length.md): Counts Unicode characters in a string. - [CHARACTER_LENGTH](https://docs.e6data.com/query/sql/functions/string/character_length.md): Counts Unicode characters in a string. - [CHARINDEX](https://docs.e6data.com/query/sql/functions/string/charindex.md): Returns a substring position. - [CHR](https://docs.e6data.com/query/sql/functions/string/chr.md): Returns the character for the low eight bits of a nonnegative numeric value. - [CONCAT](https://docs.e6data.com/query/sql/functions/string/concat.md): Concatenates strings in argument order. - [CONCAT_WS](https://docs.e6data.com/query/sql/functions/string/concat_ws.md): Joins strings or string-array elements using a separator. - [CONTAINS_SUBSTR](https://docs.e6data.com/query/sql/functions/string/contains_substr.md): Tests whether a string contains another string. - [ENCODE](https://docs.e6data.com/query/sql/functions/string/encode.md): Encodes text using a character encoding. - [ENDS_WITH](https://docs.e6data.com/query/sql/functions/string/ends_with.md): Tests whether a string ends with another string. - [ENDSWITH](https://docs.e6data.com/query/sql/functions/string/endswith.md): Tests whether a string ends with another string. - [FORMAT](https://docs.e6data.com/query/sql/functions/string/format.md): Formats values using a printf-style pattern. - [FORMAT_NUMBER](https://docs.e6data.com/query/sql/functions/string/format_number.md): Formats a number using digits or a decimal pattern. - [FORMAT_STRING](https://docs.e6data.com/query/sql/functions/string/format_string.md): Formats values using a printf-style pattern. - [FROM_BASE64](https://docs.e6data.com/query/sql/functions/string/from_base64.md): Decodes MIME Base64 text. - [ILIKE](https://docs.e6data.com/query/sql/functions/string/ilike.md): Tests whether a string matches a SQL wildcard pattern without case sensitivity. - [INITCAP](https://docs.e6data.com/query/sql/functions/string/initcap.md): Capitalizes each word and lowercases the rest. - [INSTR](https://docs.e6data.com/query/sql/functions/string/instr.md): Returns a substring position. - [LCASE](https://docs.e6data.com/query/sql/functions/string/lcase.md): Converts a string to lowercase. - [LEFT](https://docs.e6data.com/query/sql/functions/string/left.md): Returns characters from the start of a string. - [LEN](https://docs.e6data.com/query/sql/functions/string/len.md): Returns the number of Unicode characters in a string. - [LENGTH](https://docs.e6data.com/query/sql/functions/string/length.md): Returns the character count of a string or the byte count of binary data. - [LEVENSHTEIN](https://docs.e6data.com/query/sql/functions/string/levenshtein.md): Counts the edits needed to transform one string into another. - [LIKE](https://docs.e6data.com/query/sql/functions/string/like.md): Tests whether a string matches a SQL wildcard pattern. - [LOCATE](https://docs.e6data.com/query/sql/functions/string/locate.md): Returns a substring position. - [LOWER](https://docs.e6data.com/query/sql/functions/string/lower.md): Converts a string to lowercase. - [LOWER_CASE](https://docs.e6data.com/query/sql/functions/string/lower_case.md): Converts a string to lowercase. - [LPAD](https://docs.e6data.com/query/sql/functions/string/lpad.md): Pads or truncates a string to a requested character length. - [LTRIM](https://docs.e6data.com/query/sql/functions/string/ltrim.md): Removes leading characters from a string. - [MID](https://docs.e6data.com/query/sql/functions/string/mid.md): Extracts part of a string or binary value. - [OCTET_LENGTH](https://docs.e6data.com/query/sql/functions/string/octet_length.md): Counts the bytes in a string or binary value. - [OVERLAY](https://docs.e6data.com/query/sql/functions/string/overlay.md): Replaces a span of string characters with another string. - [PARSE_URL](https://docs.e6data.com/query/sql/functions/string/parse_url.md): Extracts a component or query parameter from a URL string. - [POSITION](https://docs.e6data.com/query/sql/functions/string/position.md): Returns a substring position. - [REPEAT](https://docs.e6data.com/query/sql/functions/string/repeat.md): Repeats a string a specified number of times. - [REPLACE](https://docs.e6data.com/query/sql/functions/string/replace.md): Replaces all literal occurrences of a substring. - [REVERSE](https://docs.e6data.com/query/sql/functions/string/reverse.md): Reverses the characters in a string or the elements in an array. - [RIGHT](https://docs.e6data.com/query/sql/functions/string/right.md): Returns characters from the end of a string. - [RPAD](https://docs.e6data.com/query/sql/functions/string/rpad.md): Pads or truncates a string to a requested character length. - [RTRIM](https://docs.e6data.com/query/sql/functions/string/rtrim.md): Removes trailing characters from a string. - [SOUNDEX](https://docs.e6data.com/query/sql/functions/string/soundex.md): SOUNDEX in Query Engine SQL. - [SPLIT](https://docs.e6data.com/query/sql/functions/string/split.md): Splits a string on a regular-expression delimiter. - [SPLIT_PART](https://docs.e6data.com/query/sql/functions/string/split_part.md): Returns a selected substring after splitting a string on a literal delimiter. - [STARTS_WITH](https://docs.e6data.com/query/sql/functions/string/starts_with.md): Tests whether a string starts with another string. - [STARTSWITH](https://docs.e6data.com/query/sql/functions/string/startswith.md): Tests whether a string starts with another string. - [STRPOS](https://docs.e6data.com/query/sql/functions/string/strpos.md): Returns a substring position. - [SUBSTR](https://docs.e6data.com/query/sql/functions/string/substr.md): Extracts part of a string or binary value. - [SUBSTRING](https://docs.e6data.com/query/sql/functions/string/substring.md): Extracts part of a string or binary value. - [SUBSTRING_INDEX](https://docs.e6data.com/query/sql/functions/string/substring_index.md): Returns a prefix or suffix selected by delimiter occurrence count. - [TO_BASE64](https://docs.e6data.com/query/sql/functions/string/to_base64.md): Encodes bytes as MIME Base64 text. - [TO_HEX](https://docs.e6data.com/query/sql/functions/string/to_hex.md): Returns uppercase hexadecimal text. - [TRANSLATE](https://docs.e6data.com/query/sql/functions/string/translate.md): Replaces or removes individual characters according to corresponding character lists. - [TRIM](https://docs.e6data.com/query/sql/functions/string/trim.md): Removes characters from the beginning, end or both ends of a string. - [TRY_URL_DECODE](https://docs.e6data.com/query/sql/functions/string/try_url_decode.md): Decodes form URL encoding, returning NULL for invalid input. - [UCASE](https://docs.e6data.com/query/sql/functions/string/ucase.md): Converts a string to uppercase. - [UNBASE64](https://docs.e6data.com/query/sql/functions/string/unbase64.md): Decodes MIME Base64 text. - [UPPER](https://docs.e6data.com/query/sql/functions/string/upper.md): Converts a string to uppercase. - [UPPER_CASE](https://docs.e6data.com/query/sql/functions/string/upper_case.md): Converts a string to uppercase. - [URL_DECODE](https://docs.e6data.com/query/sql/functions/string/url_decode.md): Decodes form URL encoding into a UTF-8 string. - [URL_ENCODE](https://docs.e6data.com/query/sql/functions/string/url_encode.md): Encodes a string using application/x-www-form-urlencoded rules. - [UUID](https://docs.e6data.com/query/sql/functions/string/uuid.md): Returns a randomly generated UUID version 4 string. ###### Date and time functions - [Date and time functions](https://docs.e6data.com/query/sql/functions/date-time/index.md): Build, convert, format, extract from and do arithmetic on dates, times and timestamps. - [ADD_MONTHS](https://docs.e6data.com/query/sql/functions/date-time/add_months.md): Adds signed calendar months and clamps to month end. - [CONVERT_TIMEZONE](https://docs.e6data.com/query/sql/functions/date-time/convert_timezone.md): Converts a timestamp to another time zone or converts a local time between time zones. - [CURDATE](https://docs.e6data.com/query/sql/functions/date-time/curdate.md): Returns the current date in the session timezone, falling back to UTC. - [CURRENT_DATE](https://docs.e6data.com/query/sql/functions/date-time/current_date.md): Returns the current date in the session timezone, falling back to UTC. - [CURRENT_TIMESTAMP](https://docs.e6data.com/query/sql/functions/date-time/current_timestamp.md): Returns the query-start timestamp with microsecond precision. - [CURRENT_TIMEZONE](https://docs.e6data.com/query/sql/functions/date-time/current_timezone.md): Returns the session timezone string, using UTC when unset. - [DATE](https://docs.e6data.com/query/sql/functions/date-time/date.md): Converts a value to DATE, with the same behavior as CAST(value AS DATE). - [DATE_ADD](https://docs.e6data.com/query/sql/functions/date-time/date_add.md): Adds calendar days or specified temporal units. - [DATE_DIFF](https://docs.e6data.com/query/sql/functions/date-time/date_diff.md): Returns local date boundaries with two arguments or complete elapsed units with three arguments. - [DATE_FORMAT](https://docs.e6data.com/query/sql/functions/date-time/date_format.md): Formats a date or timestamp as a string. - [DATE_PART](https://docs.e6data.com/query/sql/functions/date-time/date_part.md): Extracts a requested temporal component. - [DATE_SUB](https://docs.e6data.com/query/sql/functions/date-time/date_sub.md): Subtracts a signed number of days from a date. - [DATE_TRUNC](https://docs.e6data.com/query/sql/functions/date-time/date_trunc.md): Truncates a timestamp to a chosen granularity. - [DATEADD](https://docs.e6data.com/query/sql/functions/date-time/dateadd.md): Adds a specified number of units to a date or timestamp. - [DATEDIFF](https://docs.e6data.com/query/sql/functions/date-time/datediff.md): Returns local date boundaries with two arguments or complete elapsed units with three arguments. - [DATEPART](https://docs.e6data.com/query/sql/functions/date-time/datepart.md): Extracts a requested temporal component. - [DATETIME](https://docs.e6data.com/query/sql/functions/date-time/datetime.md): Sets a timestamp’s time zone without changing the instant it represents. - [DAY](https://docs.e6data.com/query/sql/functions/date-time/day.md): Extracts the day-of-month component. - [DAYNAME](https://docs.e6data.com/query/sql/functions/date-time/dayname.md): Returns the three-letter English weekday name. - [DAYOFWEEK](https://docs.e6data.com/query/sql/functions/date-time/dayofweek.md): Extracts the Sunday-based weekday number from a date or timestamp. - [DAYOFWEEKISO](https://docs.e6data.com/query/sql/functions/date-time/dayofweekiso.md): DAYOFWEEKISO in Query Engine SQL. - [DAYS](https://docs.e6data.com/query/sql/functions/date-time/days.md): Extracts the day-of-month component. - [EXTRACT](https://docs.e6data.com/query/sql/functions/date-time/extract.md): Extracts an applicable calendar or clock component from a temporal value. - [FORMAT_DATE](https://docs.e6data.com/query/sql/functions/date-time/format_date.md): Formats a date as a string. - [FORMAT_TIMESTAMP](https://docs.e6data.com/query/sql/functions/date-time/format_timestamp.md): Formats a timestamp as a string. - [FROM_UNIXTIME](https://docs.e6data.com/query/sql/functions/date-time/from_unixtime.md): Converts epoch seconds to a UTC timestamp or formatted string. - [FROM_UNIXTIME_WITHUNIT](https://docs.e6data.com/query/sql/functions/date-time/from_unixtime_withunit.md): Converts an epoch value in seconds or milliseconds to a UTC timestamp. - [FROM_UTC_TIMESTAMP](https://docs.e6data.com/query/sql/functions/date-time/from_utc_timestamp.md): Converts UTC wall time to the requested local wall time. - [GENERATE_DATE_ARRAY](https://docs.e6data.com/query/sql/functions/date-time/generate_date_array.md): Generates an inclusive stepped array of dates. - [GENERATE_TIMESTAMP_ARRAY](https://docs.e6data.com/query/sql/functions/date-time/generate_timestamp_array.md): Generates an inclusive stepped array of timestamps. - [GETDATE](https://docs.e6data.com/query/sql/functions/date-time/getdate.md): Returns the query-start timestamp with microsecond precision. - [GETUTCDATE](https://docs.e6data.com/query/sql/functions/date-time/getutcdate.md): Returns the current UTC date. - [HOUR](https://docs.e6data.com/query/sql/functions/date-time/hour.md): Extracts the hour component. - [LAST_DAY](https://docs.e6data.com/query/sql/functions/date-time/last_day.md): Returns the last calendar date of the input month. - [LAST_DAY_OF_MONTH](https://docs.e6data.com/query/sql/functions/date-time/last_day_of_month.md): Returns the last calendar date of the input month. - [MAKE_DATE](https://docs.e6data.com/query/sql/functions/date-time/make_date.md): Constructs a date from year, month and day. - [MAKE_TIME](https://docs.e6data.com/query/sql/functions/date-time/make_time.md): Constructs a time with fractional-second precision. - [MAKE_TIMESTAMP](https://docs.e6data.com/query/sql/functions/date-time/make_timestamp.md): Constructs a UTC timestamp from calendar and time components. - [MINUTE](https://docs.e6data.com/query/sql/functions/date-time/minute.md): Extracts the minute component. - [MONTH](https://docs.e6data.com/query/sql/functions/date-time/month.md): Extracts the month component. - [MONTHNAME](https://docs.e6data.com/query/sql/functions/date-time/monthname.md): Returns the three-letter English month name. - [MONTHS_BETWEEN](https://docs.e6data.com/query/sql/functions/date-time/months_between.md): Returns a signed fractional month difference, first minus second. - [NEXT_DAY](https://docs.e6data.com/query/sql/functions/date-time/next_day.md): Returns the next matching weekday strictly after the input date. - [NOW](https://docs.e6data.com/query/sql/functions/date-time/now.md): Returns the query-start timestamp with microsecond precision. - [Parse functions](https://docs.e6data.com/query/sql/functions/date-time/parse.md): Parse functions in Query Engine SQL. - [PARSE_DATE](https://docs.e6data.com/query/sql/functions/date-time/parse_date.md): PARSE_DATE in Query Engine SQL. - [PARSE_DATETIME](https://docs.e6data.com/query/sql/functions/date-time/parse_datetime.md): PARSE_DATETIME in Query Engine SQL. - [PARSE_TIMESTAMP](https://docs.e6data.com/query/sql/functions/date-time/parse_timestamp.md): Parses a formatted timestamp string and returns a UTC timestamp. - [QUARTER](https://docs.e6data.com/query/sql/functions/date-time/quarter.md): Extracts the calendar quarter from a date or timestamp. - [SECOND](https://docs.e6data.com/query/sql/functions/date-time/second.md): Extracts the second component. - [TIMESTAMP](https://docs.e6data.com/query/sql/functions/date-time/timestamp.md): Constructs a UTC timestamp from string, date or timestamp input. - [TIMESTAMP_ADD](https://docs.e6data.com/query/sql/functions/date-time/timestamp_add.md): Adds a signed duration or calendar interval to a timestamp. - [TIMESTAMP_DIFF](https://docs.e6data.com/query/sql/functions/date-time/timestamp_diff.md): Returns complete elapsed units from start to end. - [TIMESTAMP_MICROS](https://docs.e6data.com/query/sql/functions/date-time/timestamp_micros.md): Converts Unix epoch microseconds to a UTC timestamp. - [TIMESTAMP_MILLIS](https://docs.e6data.com/query/sql/functions/date-time/timestamp_millis.md): Converts Unix epoch milliseconds to a UTC timestamp. - [TIMESTAMP_SECONDS](https://docs.e6data.com/query/sql/functions/date-time/timestamp_seconds.md): Converts Unix epoch seconds to a UTC timestamp. - [TIMESTAMPADD](https://docs.e6data.com/query/sql/functions/date-time/timestampadd.md): Adds a signed duration or calendar interval to a timestamp. - [TIMESTAMPDIFF](https://docs.e6data.com/query/sql/functions/date-time/timestampdiff.md): Returns complete elapsed units from start to end. - [TO_CHAR](https://docs.e6data.com/query/sql/functions/date-time/to_char.md): Formats a temporal, numeric, binary or string value as text. - [TO_DATE](https://docs.e6data.com/query/sql/functions/date-time/to_date.md): Converts a value to a date. - [TO_TIME](https://docs.e6data.com/query/sql/functions/date-time/to_time.md): Converts time text to a TIME value using a Spark-style format supplied for each row. - [TO_TIMESTAMP](https://docs.e6data.com/query/sql/functions/date-time/to_timestamp.md): Converts a value to a timezone-bearing timestamp. - [TO_TIMESTAMP_NTZ](https://docs.e6data.com/query/sql/functions/date-time/to_timestamp_ntz.md): Converts a value to a timezone-free timestamp. - [TO_TIMESTAMP_TZ](https://docs.e6data.com/query/sql/functions/date-time/to_timestamp_tz.md): Converts a value to a timezone-bearing timestamp. - [TO_UNIX_TIMESTAMP](https://docs.e6data.com/query/sql/functions/date-time/to_unix_timestamp.md): Returns epoch seconds from a timestamp or explicitly formatted string. - [TO_UNIXTIME](https://docs.e6data.com/query/sql/functions/date-time/to_unixtime.md): Returns the number of seconds since the Unix epoch for a timestamp. - [TO_UTC_TIMESTAMP](https://docs.e6data.com/query/sql/functions/date-time/to_utc_timestamp.md): Converts local wall time in a timezone to UTC wall time. - [TO_VARCHAR](https://docs.e6data.com/query/sql/functions/date-time/to_varchar.md): Formats a temporal, numeric, binary or string value as text. - [TRUNC](https://docs.e6data.com/query/sql/functions/date-time/trunc.md): Truncates a date or timestamp to the specified unit and returns a DATE. - [TRY_TO_DATE](https://docs.e6data.com/query/sql/functions/date-time/try_to_date.md): Converts a date representation, returning NULL on parse failure. - [TRY_TO_TIMESTAMP](https://docs.e6data.com/query/sql/functions/date-time/try_to_timestamp.md): Parses a value as a timestamp without a timezone, returning NULL on a failed supported conversion. - [TRY_TO_TIMESTAMP_NTZ](https://docs.e6data.com/query/sql/functions/date-time/try_to_timestamp_ntz.md): Parses a value as a timestamp without a timezone, returning NULL on a failed supported conversion. - [UNIX_TIMESTAMP](https://docs.e6data.com/query/sql/functions/date-time/unix_timestamp.md): Returns epoch seconds from a timestamp or explicitly formatted string. - [WEEK](https://docs.e6data.com/query/sql/functions/date-time/week.md): WEEK in Query Engine SQL. - [WEEKDAY](https://docs.e6data.com/query/sql/functions/date-time/weekday.md): Returns the weekday number with Monday numbered zero. - [WEEKISO](https://docs.e6data.com/query/sql/functions/date-time/weekiso.md): WEEKISO in Query Engine SQL. - [WEEKOFYEAR](https://docs.e6data.com/query/sql/functions/date-time/weekofyear.md): Extracts the ISO 8601 week number component. - [YEAR](https://docs.e6data.com/query/sql/functions/date-time/year.md): Extracts the year component. ###### Math functions - [Math functions](https://docs.e6data.com/query/sql/functions/math/index.md): Arithmetic, rounding, logarithmic, trigonometric and other numeric functions. - [ABS](https://docs.e6data.com/query/sql/functions/math/abs.md): Returns the absolute value of a number. - [ACOS](https://docs.e6data.com/query/sql/functions/math/acos.md): Returns the inverse cosine of a number. - [ACOSH](https://docs.e6data.com/query/sql/functions/math/acosh.md): Returns the inverse hyperbolic cosine of a number. - [ASIN](https://docs.e6data.com/query/sql/functions/math/asin.md): Returns the inverse sine of a number. - [ASINH](https://docs.e6data.com/query/sql/functions/math/asinh.md): Returns the inverse hyperbolic sine of a number. - [ATAN](https://docs.e6data.com/query/sql/functions/math/atan.md): Returns the inverse tangent of a number. - [ATAN2](https://docs.e6data.com/query/sql/functions/math/atan2.md): Returns the angle of the point (x, y) measured from the positive x axis. - [ATANH](https://docs.e6data.com/query/sql/functions/math/atanh.md): Returns the inverse hyperbolic tangent of a number. - [CBRT](https://docs.e6data.com/query/sql/functions/math/cbrt.md): Returns the cube root of a number. - [CEIL](https://docs.e6data.com/query/sql/functions/math/ceil.md): Rounds a number upward to an integral value. - [CEILING](https://docs.e6data.com/query/sql/functions/math/ceiling.md): Rounds a number upward to an integral value. - [CONV](https://docs.e6data.com/query/sql/functions/math/conv.md): Converts an integer represented as text from one base to another. - [COS](https://docs.e6data.com/query/sql/functions/math/cos.md): Returns the cosine of an angle. - [COSEC](https://docs.e6data.com/query/sql/functions/math/cosec.md): Returns the cosecant of an angle. - [COSH](https://docs.e6data.com/query/sql/functions/math/cosh.md): Returns the hyperbolic cosine of a number. - [COT](https://docs.e6data.com/query/sql/functions/math/cot.md): Returns the cotangent of an angle. - [CSC](https://docs.e6data.com/query/sql/functions/math/csc.md): Returns the cosecant of an angle. - [DEGREES](https://docs.e6data.com/query/sql/functions/math/degrees.md): Converts radians to degrees. - [EXP](https://docs.e6data.com/query/sql/functions/math/exp.md): Returns e raised to the power of a number. - [FACTORIAL](https://docs.e6data.com/query/sql/functions/math/factorial.md): Returns the factorial of an integer. - [FLOOR](https://docs.e6data.com/query/sql/functions/math/floor.md): Rounds a number downward to an integral value. - [HEX](https://docs.e6data.com/query/sql/functions/math/hex.md): Returns the hexadecimal representation of a number, string or binary value. - [ISNAN](https://docs.e6data.com/query/sql/functions/math/isnan.md): Tests whether a numeric value is NaN. - [LN](https://docs.e6data.com/query/sql/functions/math/ln.md): Returns the natural logarithm of a number. - [LOG](https://docs.e6data.com/query/sql/functions/math/log.md): Returns a logarithm in the specified base. - [LOG10](https://docs.e6data.com/query/sql/functions/math/log10.md): Returns the base-ten logarithm of a number. - [LOG1P](https://docs.e6data.com/query/sql/functions/math/log1p.md): Returns the natural logarithm of one plus the input. - [LOG2](https://docs.e6data.com/query/sql/functions/math/log2.md): Returns the base-two logarithm of a number. - [MOD](https://docs.e6data.com/query/sql/functions/math/mod.md): Returns the remainder of division. - [PI](https://docs.e6data.com/query/sql/functions/math/pi.md): Returns a floating-point approximation of pi. - [PMOD](https://docs.e6data.com/query/sql/functions/math/pmod.md): Returns the remainder adjusted using ((value % divisor) + divisor) % divisor. - [POW](https://docs.e6data.com/query/sql/functions/math/pow.md): Raises a base to an exponent. - [POWER](https://docs.e6data.com/query/sql/functions/math/power.md): Raises a base to an exponent. - [RADIANS](https://docs.e6data.com/query/sql/functions/math/radians.md): Converts degrees to radians. - [RAND](https://docs.e6data.com/query/sql/functions/math/rand.md): Returns a pseudorandom number whose type depends on the source dialect. - [RANDOM](https://docs.e6data.com/query/sql/functions/math/random.md): Returns a pseudorandom number whose type depends on the source dialect. - [RINT](https://docs.e6data.com/query/sql/functions/math/rint.md): Rounds a number to the nearest integer, resolving halfway values to the even integer. - [ROUND](https://docs.e6data.com/query/sql/functions/math/round.md): Rounds a number to the requested decimal position, resolving halfway values away from zero. - [SEC](https://docs.e6data.com/query/sql/functions/math/sec.md): Returns the secant of an angle. - [SEQ1](https://docs.e6data.com/query/sql/functions/math/seq1.md): Produces a sequence of BIGINT values for each query, wrapping at the 8-bit boundary according to the sign option. - [SEQ2](https://docs.e6data.com/query/sql/functions/math/seq2.md): Produces a sequence of BIGINT values for each query, wrapping at the 16-bit boundary according to the sign option. - [SEQ4](https://docs.e6data.com/query/sql/functions/math/seq4.md): Produces a sequence of BIGINT values for each query, wrapping at the 32-bit boundary according to the sign option. - [SEQ8](https://docs.e6data.com/query/sql/functions/math/seq8.md): Produces a sequence of BIGINT values for each query, wrapping at the 64-bit boundary according to the sign option. - [SIGN](https://docs.e6data.com/query/sql/functions/math/sign.md): Returns the sign of a number or interval. - [SIGNUM](https://docs.e6data.com/query/sql/functions/math/signum.md): Returns the sign of a number or interval. - [SIN](https://docs.e6data.com/query/sql/functions/math/sin.md): Returns the sine of an angle. - [SINH](https://docs.e6data.com/query/sql/functions/math/sinh.md): Returns the hyperbolic sine of a number. - [SQRT](https://docs.e6data.com/query/sql/functions/math/sqrt.md): Returns the square root of a number. - [TAN](https://docs.e6data.com/query/sql/functions/math/tan.md): Returns the tangent of an angle. - [TANH](https://docs.e6data.com/query/sql/functions/math/tanh.md): Returns the hyperbolic tangent of a number. - [TRY_DIVIDE](https://docs.e6data.com/query/sql/functions/math/try_divide.md): Divides two numbers, returning NULL for a zero divisor. - [TRY_MULTIPLY](https://docs.e6data.com/query/sql/functions/math/try_multiply.md): Multiplies two numbers, returning NULL on integer or decimal overflow. - [WIDTH_BUCKET](https://docs.e6data.com/query/sql/functions/math/width_bucket.md): Returns the bucket containing a value within an equal-width range. ###### JSON functions - [JSON functions](https://docs.e6data.com/query/sql/functions/json/index.md): Parse JSON, extract values from it and build JSON output. - [FROM_JSON](https://docs.e6data.com/query/sql/functions/json/from_json.md): Parses JSON text according to a literal SQL schema. - [GET_JSON_OBJECT](https://docs.e6data.com/query/sql/functions/json/get_json_object.md): Extracts a JSON value from text using a path. - [GET_PATH](https://docs.e6data.com/query/sql/functions/json/get_path.md): Extracts a value from a VARIANT using a path and returns it as VARIANT. - [JSON_EXTRACT](https://docs.e6data.com/query/sql/functions/json/json_extract.md): Extracts a JSON value from text using a path. - [JSON_EXTRACT_SCALAR](https://docs.e6data.com/query/sql/functions/json/json_extract_scalar.md): Extracts a scalar value from JSON text as a string. - [JSON_FORMAT](https://docs.e6data.com/query/sql/functions/json/json_format.md): Compacts and normalizes valid JSON text. - [JSON_VALUE](https://docs.e6data.com/query/sql/functions/json/json_value.md): Extracts a scalar value from JSON text as a string. - [PARSE_JSON](https://docs.e6data.com/query/sql/functions/json/parse_json.md): Parses JSON text into a VARIANT value. - [TO_JSON](https://docs.e6data.com/query/sql/functions/json/to_json.md): Serializes a SQL struct, array or map value to JSON text. - [TRY_PARSE_JSON](https://docs.e6data.com/query/sql/functions/json/try_parse_json.md): Parses JSON text into a VARIANT value and returns NULL for per-row parse failures. - [TRY_VARIANT_GET](https://docs.e6data.com/query/sql/functions/json/try_variant_get.md): Extracts a VARIANT value at a path and converts it to a requested SQL type. - [VARIANT_GET](https://docs.e6data.com/query/sql/functions/json/variant_get.md): Extracts a VARIANT value at a path and converts it to a requested SQL type. ###### Array functions - [Array functions](https://docs.e6data.com/query/sql/functions/array/index.md): Build, inspect, transform and flatten arrays. - [AGGREGATE](https://docs.e6data.com/query/sql/functions/array/aggregate.md): Combines array elements into a running value, with an optional final transformation. - [ARRAY](https://docs.e6data.com/query/sql/functions/array/array.md): Constructs an array from expressions. - [ARRAY_APPEND](https://docs.e6data.com/query/sql/functions/array/array_append.md): Adds an element to the end of an array. - [ARRAY_COMPACT](https://docs.e6data.com/query/sql/functions/array/array_compact.md): Removes NULL elements from an array. - [ARRAY_CONCAT](https://docs.e6data.com/query/sql/functions/array/array_concat.md): Concatenates arrays in argument order. - [ARRAY_CONTAINS](https://docs.e6data.com/query/sql/functions/array/array_contains.md): Returns TRUE when the array contains the search value. - [ARRAY_DISTINCT](https://docs.e6data.com/query/sql/functions/array/array_distinct.md): Removes duplicate elements, keeping their first occurrence. - [ARRAY_INTERSECT](https://docs.e6data.com/query/sql/functions/array/array_intersect.md): Returns distinct elements that occur in both arrays. - [ARRAY_INTERSECTION](https://docs.e6data.com/query/sql/functions/array/array_intersection.md): Returns distinct elements that occur in both arrays. - [ARRAY_JOIN](https://docs.e6data.com/query/sql/functions/array/array_join.md): Joins array elements as text. - [ARRAY_MAX](https://docs.e6data.com/query/sql/functions/array/array_max.md): Returns the largest non-NULL element of an array. - [ARRAY_MIN](https://docs.e6data.com/query/sql/functions/array/array_min.md): Returns the smallest non-NULL element of an array. - [ARRAY_POSITION](https://docs.e6data.com/query/sql/functions/array/array_position.md): Returns the first 1-based position of an element in an array. - [ARRAY_PREPEND](https://docs.e6data.com/query/sql/functions/array/array_prepend.md): Adds an element to the start of an array. - [ARRAY_SIZE](https://docs.e6data.com/query/sql/functions/array/array_size.md): Counts the elements in an array. - [ARRAY_SLICE](https://docs.e6data.com/query/sql/functions/array/array_slice.md): Returns an inclusive slice using 1-based bounds. - [ARRAY_SORT](https://docs.e6data.com/query/sql/functions/array/array_sort.md): Sorts an array naturally or with a comparator lambda. - [ARRAY_TO_STRING](https://docs.e6data.com/query/sql/functions/array/array_to_string.md): Joins array elements as text. - [ARRAYS_OVERLAP](https://docs.e6data.com/query/sql/functions/array/arrays_overlap.md): Tests whether arrays share an element. - [CARDINALITY](https://docs.e6data.com/query/sql/functions/array/cardinality.md): Counts the elements in an array or entries in a map. - [ELEMENT_AT](https://docs.e6data.com/query/sql/functions/array/element_at.md): Returns an array element by position or a map value by key. - [FILTER](https://docs.e6data.com/query/sql/functions/array/filter.md): Keeps array elements whose lambda returns TRUE. - [FILTER_ARRAY](https://docs.e6data.com/query/sql/functions/array/filter_array.md): Keeps array elements whose lambda returns TRUE. - [FLATTEN](https://docs.e6data.com/query/sql/functions/array/flatten.md): Flattens one array nesting level in Databricks scalar context, or expands a collection as a table in Snowflake-style context. - [GET](https://docs.e6data.com/query/sql/functions/array/get.md): Returns the element at a zero-based array index. - [REDUCE](https://docs.e6data.com/query/sql/functions/array/reduce.md): Combines array elements into a running value, with an optional final transformation. - [SEQUENCE](https://docs.e6data.com/query/sql/functions/array/sequence.md): Builds an inclusive integer, date or timestamp sequence. - [SIZE](https://docs.e6data.com/query/sql/functions/array/size.md): Counts the elements in an array or entries in a map. - [SLICE](https://docs.e6data.com/query/sql/functions/array/slice.md): Returns an inclusive slice using 1-based bounds. - [SORT_ARRAY](https://docs.e6data.com/query/sql/functions/array/sort_array.md): Sorts array elements. - [Subscript operator [ ]](https://docs.e6data.com/query/sql/functions/array/subscript.md): Subscript operator [ ] in Query Engine SQL. - [TRANSFORM](https://docs.e6data.com/query/sql/functions/array/transform.md): Applies a lambda to array elements. - [TRY_ELEMENT_AT](https://docs.e6data.com/query/sql/functions/array/try_element_at.md): Returns an array element by position or a map value by key. - [UNNEST](https://docs.e6data.com/query/sql/functions/array/unnest.md): UNNEST in Query Engine SQL. ###### Map functions - [Map functions](https://docs.e6data.com/query/sql/functions/map/index.md): Build maps and read their keys, values and entries. - [MAP](https://docs.e6data.com/query/sql/functions/map/map.md): Constructs a map from alternating keys and values, or from parallel arrays of keys and values. - [MAP_COALESCE_EXTRACT](https://docs.e6data.com/query/sql/functions/map/map_coalesce_extract.md): Returns the first non-NULL matching map value according to map and key priority. - [MAP_ENTRIES](https://docs.e6data.com/query/sql/functions/map/map_entries.md): Returns map entries as an array of key/value structs. - [MAP_FROM_ARRAYS](https://docs.e6data.com/query/sql/functions/map/map_from_arrays.md): Builds a map by pairing corresponding keys and values. - [MAP_FROM_ENTRIES](https://docs.e6data.com/query/sql/functions/map/map_from_entries.md): Builds a map from an array of two-field structs. - [MAP_KEYS](https://docs.e6data.com/query/sql/functions/map/map_keys.md): Returns the keys of a map as an array. - [MAP_VALUES](https://docs.e6data.com/query/sql/functions/map/map_values.md): Returns the values of a map as an array. ###### Struct functions - [Struct functions](https://docs.e6data.com/query/sql/functions/struct/index.md): Build structs (records with named fields). - [NAMED_STRUCT](https://docs.e6data.com/query/sql/functions/struct/named_struct.md): Builds a struct from pairs of field names and values. - [ROW](https://docs.e6data.com/query/sql/functions/struct/row.md): Constructs a STRUCT containing one field for each supplied value. ###### Table functions - [Table functions](https://docs.e6data.com/query/sql/functions/table/index.md): Functions that return rows instead of a single value, such as exploding arrays or generating ranges. - [EXPLODE](https://docs.e6data.com/query/sql/functions/table/explode.md): Expands each ARRAY element or MAP entry into a row. - [EXPLODE_OUTER](https://docs.e6data.com/query/sql/functions/table/explode_outer.md): Expands each ARRAY element or MAP entry into a row, preserving empty/NULL inputs as one NULL row. - [GENERATOR](https://docs.e6data.com/query/sql/functions/table/generator.md): Produces the specified number of rows with zero visible columns. - [INLINE](https://docs.e6data.com/query/sql/functions/table/inline.md): Expands ARRAY<STRUCT> elements into rows with one output column per struct field. - [INLINE_OUTER](https://docs.e6data.com/query/sql/functions/table/inline_outer.md): Expands ARRAY<STRUCT> elements into rows with one output column per struct field. - [JSON_TUPLE](https://docs.e6data.com/query/sql/functions/table/json_tuple.md): Extracts JSON paths into generated STRING columns. - [POSEXPLODE](https://docs.e6data.com/query/sql/functions/table/posexplode.md): Expands each ARRAY element or MAP entry into a row. - [RANGE](https://docs.e6data.com/query/sql/functions/table/range.md): Generates an exclusive-end sequence of BIGINT values. - [STACK](https://docs.e6data.com/query/sql/functions/table/stack.md): Splits row-major values into a fixed number of generated rows. ###### Regular expression functions - [Regular expression functions](https://docs.e6data.com/query/sql/functions/regex/index.md): Match, extract and replace text with regular expressions. - [REGEXP_CONTAINS](https://docs.e6data.com/query/sql/functions/regex/regexp_contains.md): Tests whether a regular expression matches any part of a string. - [REGEXP_COUNT](https://docs.e6data.com/query/sql/functions/regex/regexp_count.md): Counts nonoverlapping matches of a regular expression in a string. - [REGEXP_EXTRACT](https://docs.e6data.com/query/sql/functions/regex/regexp_extract.md): Returns the selected capture group from the first regular-expression match. - [REGEXP_EXTRACT_ALL](https://docs.e6data.com/query/sql/functions/regex/regexp_extract_all.md): Returns the selected capture group from each regular-expression match. - [REGEXP_LIKE](https://docs.e6data.com/query/sql/functions/regex/regexp_like.md): Tests whether a regular expression matches any part of a string. - [REGEXP_REPLACE](https://docs.e6data.com/query/sql/functions/regex/regexp_replace.md): Replaces every regular-expression match in a string. - [REGEXP_SUBSTR](https://docs.e6data.com/query/sql/functions/regex/regexp_substr.md): Returns the first substring matching a regular expression. - [RLIKE](https://docs.e6data.com/query/sql/functions/regex/rlike.md): Tests whether a regular expression matches any part of a string. ###### Hash functions - [Hash functions](https://docs.e6data.com/query/sql/functions/hash/index.md): Compute checksums and cryptographic digests. - [CRC32](https://docs.e6data.com/query/sql/functions/hash/crc32.md): Returns the CRC-32 checksum of a string or binary value. - [MD5](https://docs.e6data.com/query/sql/functions/hash/md5.md): MD5 in Query Engine SQL. - [SHA](https://docs.e6data.com/query/sql/functions/hash/sha.md): Computes the SHA-1 digest of a string or binary value. - [SHA1](https://docs.e6data.com/query/sql/functions/hash/sha1.md): Computes the SHA-1 digest of a string or binary value. - [SHA2](https://docs.e6data.com/query/sql/functions/hash/sha2.md): Computes a SHA-2 digest using the selected bit length. ###### Bitwise functions - [Bitwise functions](https://docs.e6data.com/query/sql/functions/bitwise/index.md): Operate on the individual bits of integers. - [BIT_COUNT](https://docs.e6data.com/query/sql/functions/bitwise/bit_count.md): Counts the set bits in an integer. - [BIT_GET](https://docs.e6data.com/query/sql/functions/bitwise/bit_get.md): Returns the bit at a zero-based position in an integer. - [BITAND](https://docs.e6data.com/query/sql/functions/bitwise/bitand.md): Computes the bitwise AND of two integers or two binary values. - [BITWISE_AND](https://docs.e6data.com/query/sql/functions/bitwise/bitwise_and.md): Computes the bitwise AND of two numeric values. - [BITWISE_ARITHMETIC_SHIFT_RIGHT](https://docs.e6data.com/query/sql/functions/bitwise/bitwise_arithmetic_shift_right.md): Shifts an integer right while preserving its sign. - [BITWISE_LOGICAL_SHIFT_RIGHT](https://docs.e6data.com/query/sql/functions/bitwise/bitwise_logical_shift_right.md): Shifts an integer right while filling high positions with zero. - [BITWISE_NOT](https://docs.e6data.com/query/sql/functions/bitwise/bitwise_not.md): Inverts every bit of a signed integer. - [BITWISE_OR](https://docs.e6data.com/query/sql/functions/bitwise/bitwise_or.md): BITWISE_OR in Query Engine SQL. - [BITWISE_SHIFT_LEFT](https://docs.e6data.com/query/sql/functions/bitwise/bitwise_shift_left.md): Shifts an integer left by a number of bit positions. - [BITWISE_XOR](https://docs.e6data.com/query/sql/functions/bitwise/bitwise_xor.md): BITWISE_XOR in Query Engine SQL. - [GETBIT](https://docs.e6data.com/query/sql/functions/bitwise/getbit.md): Returns the bit at a zero-based position in an integer. - [SHIFTLEFT](https://docs.e6data.com/query/sql/functions/bitwise/shiftleft.md): Shifts an integer left by a number of bit positions. - [SHIFTRIGHT](https://docs.e6data.com/query/sql/functions/bitwise/shiftright.md): Shifts an integer right while preserving its sign. ###### Bitmap functions - [Bitmap functions](https://docs.e6data.com/query/sql/functions/bitmap/index.md): Work with bitmaps. - [BITMAP_COUNT](https://docs.e6data.com/query/sql/functions/bitmap/bitmap_count.md): Counts the set bits in binary bitmap data. ###### Statements and clauses - [Statements and clauses](https://docs.e6data.com/query/sql/functions/statements/index.md): Statements and clauses that aren't functions: unloading results to object storage, grouping at several levels, and excluding columns or rows. - [COPY INTO](https://docs.e6data.com/query/sql/functions/statements/copy-into.md): Unload a query's results to a CSV file in cloud object storage. - [EXCEPT](https://docs.e6data.com/query/sql/functions/statements/except.md): Leave columns out of SELECT *, or remove the rows of one query from another. - [GROUPING SETS, ROLLUP and CUBE](https://docs.e6data.com/query/sql/functions/statements/grouping-sets.md): Compute several levels of aggregation, such as subtotals and grand totals, in one GROUP BY. #### Connectivity reference - [Connectivity reference](https://docs.e6data.com/query/connectivity-reference/index.md): Reference pages for connecting to e6data over JDBC, the PostgreSQL protocol, REST v2, and the Python connector. - [JDBC parameters](https://docs.e6data.com/query/connectivity-reference/jdbc-parameters.md): Reference for the e6data JDBC connection URL and its parameters. - [JDBC API support](https://docs.e6data.com/query/connectivity-reference/jdbc-api-support.md): The JDBC interfaces and methods supported by the e6data JDBC driver. - [PostgreSQL protocol parameters](https://docs.e6data.com/query/connectivity-reference/postgresql-protocol-parameters.md): Reference for connecting to e6data over the PostgreSQL wire protocol - host, port, database encoding, and SSL. - [Python connector reference](https://docs.e6data.com/query/connectivity-reference/python-connector.md): Connection parameters and the cursor API of the e6data Python connector. - [REST v2 endpoints](https://docs.e6data.com/query/connectivity-reference/rest-v2-endpoints.md): Reference for the e6data HTTP REST v2 SQL endpoints, headers, and statement states. #### Cluster reference - [Cluster states](https://docs.e6data.com/query/cluster-reference/cluster-states.md): The lifecycle states an e6data cluster can be in, and what each means. - [Scaling modes](https://docs.e6data.com/query/cluster-reference/scaling-modes.md): The cluster scaling modes in e6data - fixed, autoscaling, QPS-based, and scale-to-zero - at a glance. - [Upgrade states](https://docs.e6data.com/query/cluster-reference/upgrade-states.md): The states a cluster or platform upgrade moves through, and the cluster upgrade deployment phases. ### Concepts - [How Query Engine works](https://docs.e6data.com/query/concepts/how-query-engine-works.md): How e6data runs a query - from your SQL through planning and distributed execution, reading your data in place without moving it. - [Architecture overview](https://docs.e6data.com/query/concepts/architecture.md): Overview pages for the Query Engine architecture, its components, and how a query runs. - [High-level Architecture](https://docs.e6data.com/query/concepts/high-level-architecture.md): This page provides a high-level overview of e6 query engine architecture. It introduces the key constructs of e6data query engine and describes the deployment models we support. - [Hybrid Data Lakehouse](https://docs.e6data.com/query/concepts/hybrid-data-lakehouse.md): Query data across clouds, regions, and on-premises without migrating it, using a main cluster and ancillary clusters. #### Detailed architecture walkthrough - [Detailed architecture walkthrough](https://docs.e6data.com/query/concepts/walkthrough/index.md): A walkthrough of the e6data disaggregated SQL engine architecture for the open lakehouse. - [Key Characteristics](https://docs.e6data.com/query/concepts/walkthrough/key-characteristics.md): The architectural characteristics that define the e6data engine - Kubernetes-native, planner-executor model, multi-dialect, and more. - [The components](https://docs.e6data.com/query/concepts/walkthrough/components.md): Each component is an independent service with a narrow contract, communicating over gRPC and Thrift. This is what lets the engine scale — and be operated — one piece at a time. - [How the engine plans and runs a query](https://docs.e6data.com/query/concepts/walkthrough/what-happens-when-you-run-a-query.md): The stages a query goes through in e6data, from connect and submit to streamed results. - [How the architecture compares](https://docs.e6data.com/query/concepts/walkthrough/how-the-architecture-compares.md): e6data combines the compute–storage separation of cloud warehouses with the open formats of lakehouse platforms, and adds a compute plane that is stateless, granular, and protocol-compatible with existing tools.