> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-mintlify-8c05c8a2.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> One 格式文档

# One

| 输入 | 输出 | 别名 |
| -- | -- | -- |
| ✔  | ✗  |    |

<div id="description">
  ## 描述
</div>

`One` 格式是一种特殊的输入格式，不会从文件中读取任何数据，而只会返回一行，该行包含一个类型为 [`UInt8`](/zh/reference/data-types/int-uint)、名称为 `dummy`、值为 `0` 的列 (类似于 `system.one` 表) 。
它可与虚拟列 \`\_file/\_path\`\` 配合使用，以便在不读取实际数据的情况下列出所有文件。

<div id="example-usage">
  ## 使用示例
</div>

示例：

```sql title="Query" theme={null}
SELECT _file FROM file('path/to/files/data*', One);
```

```text title="Response" theme={null}
┌─_file────┐
│ data.csv │
└──────────┘
┌─_file──────┐
│ data.jsonl │
└────────────┘
┌─_file────┐
│ data.tsv │
└──────────┘
┌─_file────────┐
│ data.parquet │
└──────────────┘
```

<div id="format-settings">
  ## 格式设置
</div>
