Skip to content

Commit c9950e6

Browse files
committed
feat: Increase maximum VARCHAR size in Snowflake to 128MB, according to 2025_02 Bundle
https://docs.snowflake.com/en/release-notes/bcr-bundles/2025_02/bcr-1942
1 parent 1ac21e9 commit c9950e6

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/Definition/Snowflake.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ class Snowflake extends Common
106106
self::TYPE_GEOMETRY,
107107
self::TYPE_VECTOR,
108108
];
109-
public const MAX_VARCHAR_LENGTH = 16777216;
109+
public const MAX_VARCHAR_LENGTH = 134217728;
110110
public const MAX_VARBINARY_LENGTH = 8388608;
111111

112112
/**

tests/SnowflakeDatatypeTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,10 +216,10 @@ public function testValidCharacterLengths(): void
216216
new Snowflake('STRING');
217217
new Snowflake('STRING', ['length' => '']);
218218
new Snowflake('STRING', ['length' => '1']);
219-
new Snowflake('STRING', ['length' => '16777216']);
219+
new Snowflake('STRING', ['length' => '134217728']);
220220
new Snowflake('STRING', [
221221
'length' => [
222-
'character_maximum' => '16777216',
222+
'character_maximum' => '134217728',
223223
],
224224
]);
225225
new Snowflake('STRING', [
@@ -444,7 +444,7 @@ public function invalidCharacterLengths(): array
444444
return [
445445
['a'],
446446
['0'],
447-
['16777217'],
447+
['134217729'],
448448
['-1'],
449449
];
450450
}

0 commit comments

Comments
 (0)