<cell> Miscellaneous
<cell> <span class="notranslate"> CAST </span>
<cell> Cast field or expression into TYPE. Aggregated fields are not allowed inside CAST.
TYPE can be
<span class="notranslate">
NUMBER </span>
, <span class="notranslate">
<span class="notranslate">
TEXT </span>
, or
<span class="notranslate">
DATETIME </span>
</span>.\
[Learn more.](/looker/docs/studio/cast)
<cell>
<span class="notranslate">
CAST </span>
( field_expression <span class="notranslate">
AS </span>
TYPE )
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-12-19 UTC.