CastExpression represents CAST(expr AS type) or TRY_CAST(expr AS type). Try is set when the expression originated from TRY_CAST (Snowflake / SQL Server / BigQuery), which returns NULL on conversion failure instead of raising an error.
| 1118 | // Server / BigQuery), which returns NULL on conversion failure instead of |
| 1119 | // raising an error. |
| 1120 | type CastExpression struct { |
| 1121 | Expr Expression |
| 1122 | Type string |
| 1123 | Try bool |
| 1124 | } |
| 1125 | |
| 1126 | func (c *CastExpression) expressionNode() {} |
| 1127 | func (c CastExpression) TokenLiteral() string { |
nothing calls this directly
no outgoing calls
no test coverage detected