final class atoti.AutoMultiColumnArrayConversion
Pass it to a DirectQuery*ConnectionConfig class to automatically convert all external tables with array values stored with one element per column to tables with array columns.
Example
external_table has this content:
| PRODUCT | QUANTITY_0 | QUANTITY_1 | QUANTITY_2 | QUANTITY_3 | QUANTITY_4 |
|---|---|---|---|---|---|
| product_1 | 10 | 20 | 15 | 25 | 10 |
| product_2 | 50 | 65 | 55 | 30 | 80 |
separator is "_").
Since 5 is greater than the threshold passed above, the automatic conversion will activate and these 5 columns will be merged into an array column:
See also:
MultiColumnArrayConversion.