From 572eaf58d8b268559687185fd543da0a777e956a Mon Sep 17 00:00:00 2001 From: Oliver Mannion <125105+tekumara@users.noreply.github.com> Date: Fri, 9 Aug 2024 21:42:28 +1000 Subject: [PATCH] fix: column types for DESCRIBE --- fakesnow/transforms.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/fakesnow/transforms.py b/fakesnow/transforms.py index 98165af..7916872 100644 --- a/fakesnow/transforms.py +++ b/fakesnow/transforms.py @@ -159,11 +159,11 @@ def create_database(expression: exp.Expression, db_path: Path | None = None) -> column_default AS "default", 'N' AS "primary key", 'N' AS "unique key", - NULL AS "check", - NULL AS "expression", - NULL AS "comment", - NULL AS "policy name", - NULL AS "privacy domain", + NULL::VARCHAR AS "check", + NULL::VARCHAR AS "expression", + NULL::VARCHAR AS "comment", + NULL::VARCHAR AS "policy name", + NULL::JSON AS "privacy domain", FROM information_schema._fs_columns_snowflake WHERE table_catalog = '${catalog}' AND table_schema = '${schema}' AND table_name = '${table}' ORDER BY ordinal_position