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/from_csv below:

from_csv function | Databricks Documentation

from_csv function

Applies to: Databricks SQL Databricks Runtime

Returns a struct value with the csvStr and schema.

Syntax​
from_csv(csvStr, schema [, options])
Arguments​ Returns​

A STRUCT with field names and types matching the schema definition.

csvStr should be well formed with respect to the schema and options. schema must be defined as comma-separated column name and data type pairs as used in for example CREATE TABLE.

options, if provided, can be any of the following:

Examples​

SQL

> SELECT from_csv('1, 0.8', 'a INT, b DOUBLE');
{1,0.8}
> SELECT from_csv('26/08/2015', 'time Timestamp', map('timestampFormat', 'dd/MM/yyyy'));
{"time":2015-08-26 00:00:00}
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