A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.databricks.com/aws/en/sql/language-manual/functions/schema_of_csv below:

schema_of_csv function | Databricks Documentation

schema_of_csv function

Applies to: Databricks SQL Databricks Runtime

Returns the schema of a CSV string in DDL format.

Syntax​
schema_of_csv(csv [, options] )
Arguments​ Returns​

A STRING composing a struct. The field names are derived by position as _Cn. The values hold the derived formatted SQL types. For details on options see from_csv function.

Examples​

SQL

> DESCRIBE SELECT schema_of_csv('1,abc');
STRUCT<`_c0`: INT, `_c1`: STRING>
Related functions​

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4