Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion docs/pages/product/apis-integrations/core-data-apis/queries.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,21 @@ option][ref-conf-allow-ungrouped] to override this.
Additionally, note that ungrouped queries have additional requirements for
[pre-aggregation matching][ref-matching-preaggs-ungrouped].

## Troubleshooting

### No `count` measure

You might encounter the following error when running an [ungrouped query](#ungrouped-query)
that includes `HAVING COUNT(1) > 0` (or a similar expression) against a cube or a view that
have no measure called `count`. [Tableau][ref-tableau] is knows to generate such queries.

```
Failed to deserialize: invalid type: unit value, expected struct JoinDefinitionStatic
```

The rrot cause is that Cube needs to know how to calculate `COUNT(1)` and it expects a measure
called `count` to be defined in the cube or view. Please add one to resolve this issue.


[wiki-utc-time-zone]: https://en.wikipedia.org/wiki/Coordinated_Universal_Time
[ref-data-model]: /product/data-modeling/overview
Expand All @@ -395,4 +410,5 @@ Additionally, note that ungrouped queries have additional requirements for
[ref-caching]: /product/caching
[ref-query-rewrite]: /product/configuration/reference/config#query_rewrite
[blog-compare-date-range]: https://cube.dev/blog/comparing-data-over-different-time-periods
[ref-sql-api-streaming]: /product/apis-integrations/sql-api#streaming
[ref-sql-api-streaming]: /product/apis-integrations/sql-api#streaming
[ref-tableau]: /product/configuration/visualization-tools/tableau