Skip to main content
atoti.AutoMultiColumnArrayConversion(
    *,
    separator: str = '',
    threshold: int = 50,
)
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.
In the external database, external_table has this content: It has 5 QUANTITY{separator}{index} columns (where 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:

Attributes

separator

The characters separating the array column name and the element index.

threshold

The minimum number of columns with the same prefix required to trigger the automatic conversion.