Skip to content

Stats throwing errors #122

@nineinchnick

Description

@nineinchnick

Some more complex queries (like check_suites sync queries) makes the planner fetch table stats, which throws errors like this:

2021-11-22T14:12:36.014Z	ERROR	Query-20211122_141235_00080_e59kh-455	io.trino.cost.CachingStatsProvider	Error occurred when computing stats for query 20211122_141235_00080_e59kh
java.lang.IllegalStateException: Domain is not a single value
	at io.trino.spi.predicate.Domain.getSingleValue(Domain.java:159)
	at pl.net.was.rest.filter.FilterApplier.getFilter(FilterApplier.java:193)
	at pl.net.was.rest.filter.FilterApplier.getFilter(FilterApplier.java:172)
	at pl.net.was.rest.github.GithubRest.getCheckSuitesFilters(GithubRest.java:1884)
	at pl.net.was.rest.github.GithubRest.getCheckSuitesCount(GithubRest.java:1867)
	at pl.net.was.rest.github.GithubRest.getTableStatistics(GithubRest.java:2394)
	at pl.net.was.rest.RestMetadata.getTableStatistics(RestMetadata.java:185)
	at io.trino.metadata.MetadataManager.getTableStatistics(MetadataManager.java:642)

Figure out the root cause and make it stop, since it's flooding logs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions