Skip to content

What's new in 0.36.0 for Metabase driver authors

flamber edited this page Feb 17, 2021 · 1 revision

Metabase 0.36 introduced reorderable table columns in the Data Model. As part of this change, we now take into account the order of fields as they exist in the database. For JDBC-based drivers, you probably won't need to change anything.

If you're developing a custom Metabase driver that uses a custom describe-table-fields method, you will need to include a new field in the method response (database-position) that indicates the order of the field in the database.

If your database does not support field ordering, you can set the value to 0 for all fields and Metabase will fall back alphabetical sorting if database sort order is selected. You can see more details on how we sort database fields in the table:update_field_positions! method.

Clone this wiki locally