Skip to content

Commit 4188200

Browse files
authored
Merge pull request #51 from keboola/PST-631_SNFLK-add-missing-types
PST-631 CM-472 SNFLK add missing types
2 parents 6239a7b + 8b5e6f4 commit 4188200

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

src/Definition/Snowflake.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ class Snowflake extends Common
4343
public const TYPE_VARIANT = 'VARIANT';
4444
public const TYPE_BINARY = 'BINARY';
4545
public const TYPE_VARBINARY = 'VARBINARY';
46+
public const TYPE_OBJECT = 'OBJECT';
47+
public const TYPE_ARRAY = 'ARRAY';
48+
public const TYPE_GEOGRAPHY = 'GEOGRAPHY';
49+
public const TYPE_GEOMETRY = 'GEOMETRY';
50+
4651
public const TYPES = [
4752
self::TYPE_NUMBER,
4853
self::TYPE_DECIMAL,
@@ -75,6 +80,10 @@ class Snowflake extends Common
7580
self::TYPE_VARIANT,
7681
self::TYPE_BINARY,
7782
self::TYPE_VARBINARY,
83+
self::TYPE_OBJECT,
84+
self::TYPE_ARRAY,
85+
self::TYPE_GEOGRAPHY,
86+
self::TYPE_GEOMETRY,
7887
];
7988

8089
public const MAX_VARCHAR_LENGTH = 16777216;

tests/SnowflakeDatatypeTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ public function testValidBinaryLengths(): void
9898
new Snowflake('binary');
9999
new Snowflake('varbinary');
100100
new Snowflake('VARBINARY');
101+
new Snowflake('OBJECT');
102+
new Snowflake('ARRAY');
103+
new Snowflake('GEOGRAPHY');
104+
new Snowflake('GEOMETRY');
101105
new Snowflake('BINARY', ['length' => '']);
102106
new Snowflake('VARBINARY', ['length' => '']);
103107
new Snowflake('BINARY', ['length' => '1']);

0 commit comments

Comments
 (0)