Skip to main content

PutDatabricksSQL

Description

Submit a SQL Execution using Databricks REST API then write the JSON response to FlowFile Content. For high performance SELECT or INSERT queries use ExecuteSQL instead.

Tags

databricks, sql

Properties

In the list below required Properties are shown with an asterisk (*). Other properties are considered optional. The table also indicates any default values, and whether a property supports the NiFi Expression Language.

Display NameAPI NameDefault ValueAllowable ValuesDescription
Databricks Client *Databricks ClientController Service:
DatabricksWorkspaceClientService

Implementations:
StandardDatabricksWorkspaceClientService
Databricks Client Service.
Statement *StatementSQL statement to execute

Supports Expression Language, using FlowFile attributes and Environment variables.
Default CatalogDefault CatalogDefault table catalog, some SQL statements such as 'COPY INTO' do not support using a default catalog

Supports Expression Language, using FlowFile attributes and Environment variables.
Default SchemaDefault SchemaDefault table schema, some SQL statements such as 'COPY INTO' do not support using a default schema

Supports Expression Language, using FlowFile attributes and Environment variables.
SQL Warehouse IDSQL Warehouse IDWarehouse ID used to execute SQL
SQL Warehouse NameSQL Warehouse NameSQL Warehouse Name used to execute SQL, will search through all SQL Warehouses to find matching name.
Record WriterRecord WriterController Service:
RecordSetWriterFactory

Implementations:
AvroRecordSetWriter
CSVRecordSetWriter
FreeFormTextRecordSetWriter
JsonRecordSetWriter
RecordSetWriterLookup
ScriptedRecordSetWriter
XMLRecordSetWriter
Specifies the Controller Service to use for writing results to a FlowFile. The Record Writer may use Inherit Schema to emulate the inferred schema behavior, i.e. an explicit schema need not be defined in the writer, and will be supplied by the same logic used to infer the schema from the column types.

Dynamic Properties

This component does not support dynamic properties.

Relationships

NameDescription
failureDatabricks failure relationship
http.responseHTTP Response to SQL API Request
originalThe original FlowFile is routed to this relationship when processing is successful.
recordsSerialized SQL Records

Reads Attributes

This processor does not read attributes.

Writes Attributes

NameDescription
error.codeThe error code for the SQL statement if an error occurred.
error.messageThe error message for the SQL statement if an error occurred.
statement.stateThe final state of the executed SQL statement

State Management

This component does not store state.

Restricted

This component is not restricted.

Input Requirement

Input requirements are not specified for this component.

System Resource Considerations

This component does not specify system resource considerations.

See Also