Vladimir Sitnikov created CALCITE-4612:
------------------------------------------

             Summary: Fuzzer for RelBuilder
                 Key: CALCITE-4612
                 URL: https://issues.apache.org/jira/browse/CALCITE-4612
             Project: Calcite
          Issue Type: Test
          Components: core
            Reporter: Vladimir Sitnikov


A generator of random rels would be useful for testing:
a) Generate rel, write it down as SQL (ensures "Rel to SQL" does not fail), 
parse it back (ensures parser works OK), plans the tree (ensures the rules do 
not throw exceptions)

b) Generate rel, serialize with one of the adapters (e.g. serialize to 
ElasticSearch).  

c) Generate rel, and execute it with https://github.com/sqlancer/sqlancer (or 
alike) approach to verify the results of the query. It might surface 
**correctness** bugs in optimizer, not just NPEs



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to