Skip to main content

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

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:

separator : str = ”

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

threshold : int = 50

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