redash icon indicating copy to clipboard operation
redash copied to clipboard

auto limit for trino

Open paragor opened this issue 10 months ago • 0 comments

Issue Summary

trino class inherits from BaseQueryRunner (not from BaseSQLQueryRunner) https://github.com/getredash/redash/blob/2776992101a93ef205daee4cc6bc68c42d77f114/redash/query_runner/trino.py#L46

so there is no "apply_auto_limit" feature for Trino Datasouce. But it could be supported from the box - just need replace BaseQueryRunner to BaseSQLQueryRunner in Trino declaration classs.

Steps to Reproduce

  1. Go to query that use trino
  2. "LIMIT 1000" checkbox is disabled

Technical details:

  • Redash Version: latest
  • Browser/OS: any
  • How did you install Redash: self hosted

paragor avatar Feb 04 '25 10:02 paragor