You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@calcite.apache.org by "Qingyang Feng (Jira)" <ji...@apache.org> on 2021/08/23 06:39:00 UTC

[jira] [Created] (CALCITE-4750) derive the table structurt

Qingyang Feng created CALCITE-4750:
--------------------------------------

             Summary: derive the table structurt
                 Key: CALCITE-4750
                 URL: https://issues.apache.org/jira/browse/CALCITE-4750
             Project: Calcite
          Issue Type: Wish
          Components: core
    Affects Versions: 1.20.0
            Reporter: Qingyang Feng


I want to derive the table structure from the insert statement. 
For example,
 insert into table2 select field1, field2 from table1;
Derive the table structure of table2 from table1.
The performUnconditionalRewrites method in SqlValidatorImpl can obtain the table structure from the insert statement when verifying SQL statements. However, the method is a private method. Therefore, I have to obtain the table structure through reflection. Is there a more convenient way to do that?



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