Skip to content

A list of unusual queries that only work with Analyzer #56337

Closed

Description

@alexey-milovidov

We will add them to functional tests.

SELECT *, ngramMinHash(*) AS minhash, mortonEncode(untuple(ngramMinHash(*))) AS z FROM symbols ORDER BY z LIMIT 100
WITH
    4096 AS w, 4096 AS h, w * h AS pixels,
    arrayJoin(coverage) AS num,
    num DIV (32768 * 32768 DIV pixels) AS idx,
    mortonDecode(2, idx) AS coord,
    255 AS b,
    least(255, uniq(test_name)) AS r,
    255 * uniq(test_name) / (max(uniq(test_name)) OVER ()) AS g
SELECT r::UInt8, g::UInt8, b::UInt8
FROM system.coverage_
GROUP BY coord
ORDER BY coord.2 * w + coord.1
WITH FILL FROM 0 TO 4096*2048

Activity

  1. added
    development
    on Nov 5, 2023
  2. Algunenano commented on Nov 6, 2023

    @Algunenano
    Member

    Using CTE results inside table functions:

    WITH (Select min(number), max(number) from seq) as range Select * from numbers (range.1, range.2)
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    development

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions