If you know the schema after reading a single row and it's relatively cheap to do so, have you considered just reading one row to get the schema in getRowType?
-- Michael Mior [email protected] Le lun. 25 juin 2018 à 17:32, rahul challapalli <[email protected]> a écrit : > Hi, > > I am looking to implement an adapter for a custom backend. Below are a few > questions I have > 1. Schema for a table is not known upfront : Looks like I have to > use DynamicRecordTypeImpl > in "getRowType" method. But I keep getting the "Type 'RecordType()' has no > field 'ATTR2'" error. > 2. I can infer the schema after reading the first record from the > backend. I am not sure how and when to make calcite aware of the newly > detected schema. > > Any pointers are much appreciated. > > -Rahul >
