Skip to content

Commit

Permalink
Adding experimental integration test for large lobs feature (#1534)
Browse files Browse the repository at this point in the history
Add test with large lobs in memory enabled
  • Loading branch information
sfc-gh-jvasquezrojas committed Sep 17, 2024
1 parent e659fb3 commit b9f4afc
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tests_integration/test_sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@

import pytest

from tests_integration.testing_utils import ObjectNameProvider


@pytest.mark.integration
def test_query_parameter(runner, snowflake_session):
Expand Down Expand Up @@ -158,3 +160,21 @@ def test_sql_execute_query_prints_query(runner):
assert result.exit_code == 0, result.output
assert "select 1 as A" in result.output
assert "select 2 as B" in result.output


@pytest.mark.integration_experimental
def test_sql_large_lobs_in_memory_tables(runner):
table_name = ObjectNameProvider(
"table_with_default"
).create_and_get_next_object_name()
result = runner.invoke_with_connection(
[
"sql",
"-q",
f"create or replace table {table_name}(x int, v text default x::varchar);"
f"select get_ddl('table', '{table_name}');"
f"drop table {table_name};",
]
)

assert "VARCHAR(134217728)" in result.output

0 comments on commit b9f4afc

Please sign in to comment.