Skip to content

Commit 528dcd2

Browse files
authored
docs: Add CUBEJS_DB_FETCH_COLUMNS_BY_ORDINAL_POSITIONS
1 parent cab90c8 commit 528dcd2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/pages/reference/configuration/environment-variables.mdx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,16 @@ The timeout value for any queries made to the database by Cube.
550550
| ---------------------------------------- | ---------------------- | --------------------- |
551551
| A number in seconds or a duration string | `10m` | `10m` |
552552

553+
## `CUBEJS_DB_FETCH_COLUMNS_BY_ORDINAL_POSITION`
554+
555+
Force fetching of columns by ordinal positions. Certain data-providers (e.g., Redshift) do not guarantee columns in the
556+
same order on each request (e.g., `SELECT * FROM foo`). This flag ensures that columns will be fetched in proper order
557+
for pre-aggregation generation.
558+
559+
| Possible Values | Default in Development | Default in Production |
560+
| -------------------------------------------------- | ---------------------- | --------------------- |
561+
| Whether to force fetch columns in ordinal position | `true` | `true` |
562+
553563
## `CUBEJS_DB_SNOWFLAKE_ACCOUNT`
554564

555565
The Snowflake account identifier to use when connecting to the database.

0 commit comments

Comments
 (0)