---
title: input_file_block_length function
description: Learn the syntax of the input\_file\_block\_length function of the SQL language in Databricks SQL and Databricks Runtime.
canonical_url: https://docs.databricks.com/aws/en/sql/language-manual/functions/input_file_block_length
---

# `input_file_block_length` function

**Applies to:** ![check marked yes](https://docs.databricks.com/aws/en/images/icons/check.png) Databricks SQL ![check marked yes](https://docs.databricks.com/aws/en/images/icons/check.png) Databricks Runtime

Returns the length in bytes of the block being read.

This function is not available on Unity Catalog.

In Databricks SQL and Databricks Runtime 13.3 LTS and above this function is deprecated. Please use [\_metadata.file\_block\_length](https://docs.databricks.com/aws/en/ingestion/file-metadata-column.md).

## Syntax

```
input_file_block_length()
```

## Arguments

This function takes no arguments.

## Returns

A BIGINT.

If the information is not available -1 is returned.

The function is non-deterministic.

## Examples

```sql
> SELECT input_file_block_length();
 -1
```

## Related functions

* [\_metadata](https://docs.databricks.com/aws/en/ingestion/file-metadata-column.md)
