Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SNOW-1926861: Run lob tests with 128 MB limit #1007

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
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
6 changes: 2 additions & 4 deletions test/integration/testMaxLobSize.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,17 @@
return buffer.toString('hex').slice(0, sizeInBytes);
}

if (process.env.RUN_MANUAL_TESTS_ONLY === 'true'){
describe.only('Max LOB test', function () {
describe('Max LOB test', function () {

Check failure on line 19 in test/integration/testMaxLobSize.js

View workflow job for this annotation

GitHub Actions / Run lint

Expected indentation of 0 spaces but found 2
let connection;

Check failure on line 20 in test/integration/testMaxLobSize.js

View workflow job for this annotation

GitHub Actions / Run lint

Expected indentation of 2 spaces but found 4
// This size cannot be tested on our env. The snowflake team should test internally.

Check failure on line 21 in test/integration/testMaxLobSize.js

View workflow job for this annotation

GitHub Actions / Run lint

Expected indentation of 2 spaces but found 4
const MAX_LOB_SIZE = 128 * 1024 * 1024;

Check failure on line 22 in test/integration/testMaxLobSize.js

View workflow job for this annotation

GitHub Actions / Run lint

Expected indentation of 2 spaces but found 4
const LARGE_SIZE = MAX_LOB_SIZE / 2;

Check failure on line 23 in test/integration/testMaxLobSize.js

View workflow job for this annotation

GitHub Actions / Run lint

Expected indentation of 2 spaces but found 4
const MEDIUM_SIZE = LARGE_SIZE / 2;

Check failure on line 24 in test/integration/testMaxLobSize.js

View workflow job for this annotation

GitHub Actions / Run lint

Expected indentation of 2 spaces but found 4
const ORIGIN_SIZE = MEDIUM_SIZE / 2;

Check failure on line 25 in test/integration/testMaxLobSize.js

View workflow job for this annotation

GitHub Actions / Run lint

Expected indentation of 2 spaces but found 4
const SMALL_SIZE = 16;

Check failure on line 26 in test/integration/testMaxLobSize.js

View workflow job for this annotation

GitHub Actions / Run lint

Expected indentation of 2 spaces but found 4

const tableName = 'my_lob_test';

Check failure on line 28 in test/integration/testMaxLobSize.js

View workflow job for this annotation

GitHub Actions / Run lint

Expected indentation of 2 spaces but found 4
const createTable = `create or replace table ${tableName} (c1 varchar, c2 varchar, c3 int)`;
const createTable = `create or replace table ${tableName} (c1 varchar(134217728), c2 varchar(134217728), c3 int)`;

Check failure on line 29 in test/integration/testMaxLobSize.js

View workflow job for this annotation

GitHub Actions / Run lint

Expected indentation of 2 spaces but found 4
const allowLobExternalScan = 'alter session set ALLOW_LARGE_LOBS_IN_EXTERNAL_SCAN = true';
const stageName = `@${DATABASE_NAME}.${SCHEMA_NAME}.%${tableName}`;
const copyIntoTable = `copy into ${tableName}`;
Expand Down Expand Up @@ -341,5 +340,4 @@
});
});
});
}

Loading