---
title: input_file_block_start function
description: Learn the syntax of the input\_file\_block\_start 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_start
---

# `input_file_block_start` 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 start offset 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\_start](https://docs.databricks.com/aws/en/ingestion/file-metadata-column.md).

## Syntax

```
input_file_block_start()
```

## 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_start();
 -1
```

## Related functions

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