Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion engine/src/Multicorn
2 changes: 1 addition & 1 deletion engine/src/postgres-elasticsearch-fdw
13 changes: 10 additions & 3 deletions splitgraph/ingestion/snowflake/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ class SnowflakeDataSource(ForeignDataWrapperDataSource):
},
},
],
"description": "A password or a private key to be used for authentication",
},
"account": {
"type": "string",
Expand Down Expand Up @@ -132,18 +133,24 @@ class SnowflakeDataSource(ForeignDataWrapperDataSource):
$ sgr mount snowflake test_snowflake -o@- <<EOF
{
"username": "username",
"password": "password",
"secret": {
"secret_type": "password",
"password": "password"
},
"account": "acc-id.west-europe.azure",
"database": "SNOWFLAKE_SAMPLE_DATA",
"schema": "TPCH_SF100"
"schema": "TPCH_SF100",
"envvars": {"HTTPS_PROXY": "http://proxy.company.com"}
}
EOF
\b
$ sgr mount snowflake test_snowflake_subquery -o@- <<EOF
{
"username": "username",
"private_key": "MIIEvQIBAD...",
"secret": {
"secret_type": "private_key",
"private_key": "MIIEvQIBAD..."
},
"account": "acc-id.west-europe.azure",
"database": "SNOWFLAKE_SAMPLE_DATA",
"tables": {
Expand Down
1,001 changes: 1,001 additions & 0 deletions test/architecture/data/pgorigin/accounts.csv

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions test/architecture/data/pgorigin/load_account_data.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
DROP TABLE IF EXISTS account;
CREATE TABLE account (
account_number integer,
balance integer,
firstname character varying(20),
lastname character varying(20),
age integer,
gender character varying(1),
address text,
employer character varying(20),
email text,
city character varying(20),
state character varying(5)
);

COPY account from '/src/accounts.csv' DELIMITER ',' CSV HEADER;
1 change: 0 additions & 1 deletion test/architecture/data/pgorigin/setup.sql
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,3 @@ INSERT INTO fruits (name) VALUES ('orange');

INSERT INTO vegetables (name) VALUES ('potato');
INSERT INTO vegetables (name) VALUES ('carrot');

1 change: 1 addition & 0 deletions test/architecture/src/pgorigin/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ if [ ! -e '/done_setup' ]; then

if [ -e '/src/setup.sql' ]; then
${SU} "psql ${ORIGIN_PG_DB} < /src/setup.sql"
${SU} "psql ${ORIGIN_PG_DB} < /src/load_account_data.sql"
fi

echo 1 > /done_setup
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
- !!python/tuple
- 20
- 49568
- 1650
- !!python/tuple
- 21
- 49433
- 2213
- !!python/tuple
- 22
- 49404
- 1133
- !!python/tuple
- 23
- 49587
- 1464
- !!python/tuple
- 24
- 48745
- 1011
- !!python/tuple
- 25
- 49795
- 1956
- !!python/tuple
- 26
- 48466
- 1447
- !!python/tuple
- 27
- 46868
- 1110
- !!python/tuple
- 28
- 49222
- 2889
- !!python/tuple
- 29
- 49119
- 3596
- !!python/tuple
- 30
- 49334
- 2726
- !!python/tuple
- 31
- 48758
- 2384
- !!python/tuple
- 32
- 48294
- 1031
- !!python/tuple
- 33
- 48734
- 1314
- !!python/tuple
- 34
- 48997
- 3001
- !!python/tuple
- 35
- 49741
- 1481
- !!python/tuple
- 36
- 49989
- 1249
- !!python/tuple
- 37
- 47546
- 1360
- !!python/tuple
- 38
- 49339
- 3022
- !!python/tuple
- 39
- 47257
- 3589
- !!python/tuple
- 40
- 49671
- 1932
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
- !!python/tuple
- 40
- 45
- 1932
- !!python/tuple
- 39
- 60
- 3589
- !!python/tuple
- 38
- 39
- 3022
- !!python/tuple
- 37
- 42
- 1360
- !!python/tuple
- 36
- 52
- 1249
- !!python/tuple
- 35
- 52
- 1481
- !!python/tuple
- 34
- 49
- 3001
- !!python/tuple
- 33
- 50
- 1314
- !!python/tuple
- 32
- 52
- 1031
- !!python/tuple
- 31
- 61
- 2384
- !!python/tuple
- 30
- 47
- 2726
- !!python/tuple
- 29
- 35
- 3596
- !!python/tuple
- 28
- 51
- 2889
- !!python/tuple
- 27
- 39
- 1110
- !!python/tuple
- 26
- 59
- 1447
- !!python/tuple
- 25
- 42
- 1956
- !!python/tuple
- 24
- 42
- 1011
- !!python/tuple
- 23
- 42
- 1464
- !!python/tuple
- 22
- 51
- 1133
- !!python/tuple
- 21
- 46
- 2213
- !!python/tuple
- 20
- 44
- 1650
Loading