---
source_url: https://docs.dolphindb.cn/zh/error_codes/S02015_0.html
fetched_at: 2026-05-19T09:09:29Z
category: error_codes
title: S02015
sha1: c41c4aedf9dccc3091b95921003727f7bbf6868d
---

# S02015

## 错误代码

S02015

## 报错信息

The table object must be a DFS table. RefId: S02015

## 错误原因

在 `pivot by` 查询中，对查询列应用 `asis`
函数展示所有查询结果（包含重复数据）时，要求查询的表必须是分布式分区表。若不是分布式分区表，则会出现这个报错，如下例：

```dolphindb
time = [10:20:44,10:20:44,10:20:44,10:20:45,10:20:45,10:20:45,10:20:46,10:20:46,10:20:46,10:20:46,10:20:46,10:20:46]
sym = ["A","B","C","A","B","C","A","B","C","A","B","C"]
value = [510,434,999,837,402,615,495,885,745,968,975,165]
t = table(time,sym,value)

select asis(value) from t pivot by time,sym
```

## 解决办法

根据 [pivot by](../progr/sql/pivotBy.html) 中关于结合使用 `asis` 和
`pivot by` 的要求，检查所写的查询语句是否满足这些要求。
