Skip to content
Snippets Groups Projects
Unverified Commit e09397ca authored by Alex Yarosh's avatar Alex Yarosh Committed by GitHub
Browse files

cast (#42064)

parent 7329a9d8
No related branches found
No related tags found
No related merge requests found
......@@ -122,6 +122,8 @@ If you're an administrator, you can edit field types using the [Table Metadata p
While data types themselves can't be edited in Metabase, admins can manually [cast data types](./metadata-editing.md#casting-to-a-specific-data-type) to be read differently, like interpreting a numerical data type as a date format.
> Metabase currently supports only casting to a datetime type in Metadata settings.
### JSON unfolding
See [Working with JSON](./json-unfolding.md).
......
......@@ -85,7 +85,6 @@ To add a description, click into the box below the column name. Descriptions are
**Do not include** columns won't show up in the query builder or data reference. You can set "do not include" on sensitive columns (such as PII) or irrelevant columns. But this visibility option is a simple omit/hide option; it's not a security feature. These columns are still accessible for people with native query privileges; they can write `SELECT hidden_column FROM table` or `SELECT * from table` in the [SQL editor](../questions/native-editor/writing-sql.md) and they'll be able to view these fields and their values. To prevent people from viewing certain columns, see [data sandboxing](../permissions/data-sandboxes.md).
### Column order
Metabase defaults to the column order defined in your database schema. To reorder the column display order in question results and menus **manually**, click on the grab bar to the right of each column, and drag the column to a new position.
......@@ -111,6 +110,8 @@ If you want Metabase to treat a text or number column as a datetime column:
4. Scroll to **Cast to a specific data type**
5. Select a casting option.
> Metabase currently supports only casting to a datetime type in **Cast to a specific data type**. If you need to cast to a different type (like float), you can [create a SQL question](../questions/native-editor/writing-sql.md#starting-a-new-sql-query) that casts the data and [save it as a model](./models.md#create-a-model-from-a-saved-question), or create a view directly in your database.
**Text to datetime casting options**:
- ISO8601->Date
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment