Skip to content

Commit 76fcf8f

Browse files
Apply suggestion from @greptile-apps[bot]
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
1 parent 84d57e9 commit 76fcf8f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/Query/Schema/ClickHouse.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,13 @@ protected function compileColumnType(Column $column): string
5151
throw new UnsupportedException('LowCardinality is not supported inside Array(...). Wrap the element type instead.');
5252
}
5353

54-
$inner = $this->compileNestedElementType($column->arrayElementType, $column);
55-
$type = 'Array(' . $inner . ')';
56-
5754
if ($column->isNullable) {
58-
$type = 'Nullable(' . $type . ')';
55+
throw new UnsupportedException('Nullable(Array(...)) is not supported in ClickHouse. Use an empty array [] to represent a missing value instead.');
5956
}
6057

58+
$inner = $this->compileNestedElementType($column->arrayElementType, $column);
59+
$type = 'Array(' . $inner . ')';
60+
6161
return $type;
6262
}
6363

0 commit comments

Comments
 (0)