Fixup (I've hit send by mistake):

1) You implement a function that maps input String to a
TranslatableTable like here
https://github.com/apache/incubator-calcite/blob/5cb95e644f38da1a13d6def96eeec935b650289c/core/src/test/java/org/apache/calcite/test/JdbcTest.java#L6507-L6509
You probably do not need "view" or "viewmacro"

2) Your implementation of TranslatableTable just deserializes the
string in respond to toRel. Well,

3) Profit.
It would work similar to org.apache.calcite.test.JdbcTest#testTableMacro.

Well, you might want using something like ViewTable, however I do not
find it immediately useful for "deserializing" case.

Does that make sense?

Vladimir

Reply via email to