cube-js/cube

`chartPivot` and `tablePivot` methods of `ResultSet` don't throw error for un-decomposed datasets of `compareDateRange` type queries

开放

#8,050 创建于 2024年3月28日

 (2 条评论) (0 个反应) (0 位负责人)Rust (1,965 个派生)batch import
client:coregood first issuehelp wanted

仓库指标

星标
 (19,563 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Describe the bug If you run a compareDateRange query, you will get a result set that needs to be "decomposed" first using the decompose method of the client library. Calling the rawData method on it would correctly emit this error:

Error: Method is not supported for a 'compareDateRangeQuery' query type. Please use decompose

However, calling tablePivot and chartPivot would not emit any errors—which is quite confusing for someone who doesn't know about decompose and quirks of compareDateRange.

Expected behavior Calling tablePivot and chartPivot on compareDateRange result set should emit the same error as shown above.

Version: 0.35.4

贡献者指南