Skip to content

Commit 47f6e69

Browse files
committed
docs: Add a link to column type mapping source code for cube_dbt
1 parent 553b408 commit 47f6e69

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

docs/pages/reference/python/cube_dbt.mdx

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -400,16 +400,10 @@ print(column.type)
400400
# For example, 'string'
401401
```
402402

403-
Column types should match [dimension types][ref-dimension-types] or a few
404-
supported aliases:
405-
406-
| Column types | Dimension type |
407-
| --------------------------------------- | -------------- |
408-
| `time`, `date`, `datetime`, `timestamp` | `time` |
409-
| `string` | `string` |
410-
| `number`, `numeric` | `number` |
411-
| `boolean`, `bool` | `boolean` |
412-
| `geo`, `geography` | `geo` |
403+
`cube_dbt` package applies a set of heuristics to map database-specific
404+
types to [dimension types][ref-dimension-types]. You can check the [source
405+
code](https://github.com/cube-js/cube_dbt/blob/main/src/cube_dbt/column.py#L217-L233)
406+
for implementation details.
413407

414408
If a column type is not defined in the metadata of a dbt project, `string`
415409
is used by default.

0 commit comments

Comments
 (0)