diff --git a/packages/datalib/src/PerspectiveDataLoader.ts b/packages/datalib/src/PerspectiveDataLoader.ts index be5fd7c4..20f13ab7 100644 --- a/packages/datalib/src/PerspectiveDataLoader.ts +++ b/packages/datalib/src/PerspectiveDataLoader.ts @@ -96,6 +96,10 @@ export class PerspectiveDataLoader { async loadData(props: PerspectiveDataLoadProps) { const { schemaName, pureName, bindingColumns, bindingValues, dataColumns, orderBy, condition } = props; + if (dataColumns?.length == 0) { + return []; + } + const select: Select = { commandType: 'select', from: {