We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84d57e9 commit 76fcf8fCopy full SHA for 76fcf8f
1 file changed
src/Query/Schema/ClickHouse.php
@@ -51,13 +51,13 @@ protected function compileColumnType(Column $column): string
51
throw new UnsupportedException('LowCardinality is not supported inside Array(...). Wrap the element type instead.');
52
}
53
54
- $inner = $this->compileNestedElementType($column->arrayElementType, $column);
55
- $type = 'Array(' . $inner . ')';
56
-
57
if ($column->isNullable) {
58
- $type = 'Nullable(' . $type . ')';
+ throw new UnsupportedException('Nullable(Array(...)) is not supported in ClickHouse. Use an empty array [] to represent a missing value instead.');
59
60
+ $inner = $this->compileNestedElementType($column->arrayElementType, $column);
+ $type = 'Array(' . $inner . ')';
+
61
return $type;
62
63
0 commit comments