Get started
Load & manage data
Work with data
Administration
Reference & resources
Updated Mar 22, 2023
Send us feedback
input_file_name
Applies to: Databricks SQL Databricks Runtime
Returns the name of the file being read, or empty string if not available.
input_file_name()
This function takes no arguments.
A STRING.
If the information is not available an empty string is returned.
The function is non-deterministic.
> SELECT input_file_name();
input_file_block_length function
input_file_block_start function