[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Custom adapter with an unknown schema

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

Michael Mior

Le lun. 25 juin 2018 à 17:32, rahul challapalli <challapallirahul@xxxxxxxxx>
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