From 2dc71c7874e77a62ba5d2597626a4483d53fed0b Mon Sep 17 00:00:00 2001
From: 317brian <53799971+317brian@users.noreply.github.com>
Date: Tue, 6 Feb 2024 07:18:43 -0800
Subject: [PATCH] docs: fix rendering (#15835)
---
docs/querying/sql-data-types.md | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/docs/querying/sql-data-types.md b/docs/querying/sql-data-types.md
index 6ef91a6b9fda..e4b94c92a8d8 100644
--- a/docs/querying/sql-data-types.md
+++ b/docs/querying/sql-data-types.md
@@ -66,11 +66,14 @@ The following table describes how Druid maps SQL types onto native types when ru
|ARRAY|ARRAY|`NULL`|Druid native array types work as SQL arrays, and multi-value strings can be converted to arrays. See [Arrays](#arrays) for more information.|
|OTHER|COMPLEX|none|May represent various Druid column types such as hyperUnique, approxHistogram, etc.|
-* The default value is `NULL` for all types, except in legacy mode (`druid.generic.useDefaultValueForNull = true`) which initialize a default value.
+*
+The default value is NULL
for all types, except in legacy mode (druid.generic.useDefaultValueForNull = true
) which initialize a default value.
+
+For casts between two SQL types, the behavior depends on the runtime type:
-Casts between two SQL types with the same Druid runtime type have no effect other than the exceptions noted in the table.
+* Casts between two SQL types with the same Druid runtime type have no effect other than the exceptions noted in the table.
-Casts between two SQL types that have different Druid runtime types generate a runtime cast in Druid.
+* Casts between two SQL types that have different Druid runtime types generate a runtime cast in Druid.
If a value cannot be cast to the target type, as in `CAST('foo' AS BIGINT)`, Druid a substitutes [NULL](#null-values).
When `druid.generic.useDefaultValueForNull = true` (legacy mode), Druid instead substitutes a default value, including when NULL values cast to non-nullable types. For example, if `druid.generic.useDefaultValueForNull = true`, a null VARCHAR cast to BIGINT is converted to a zero.