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

cannot change column from type NUMBER to VARCHAR #276

Open
sebastianswms opened this issue Oct 21, 2024 · 2 comments
Open

cannot change column from type NUMBER to VARCHAR #276

sebastianswms opened this issue Oct 21, 2024 · 2 comments

Comments

@sebastianswms
Copy link

sebastianswms commented Oct 21, 2024

Running on Arch, tap-distributor-srs target-snowflake, error:

{"consumer": true, "producer": false, "string_id": "target-snowflake", "cmd_type": "elb", "run_id": "2c975dcb-7ea3-48f4-8db1-e292c2b0511d", "job_name": "dev:tap-distributor-srs-to-target-snowflake:pipeline-ZGxyhvN8", "stdio": "stderr", "name": "target-snowflake", "event": "snowflake.connector.errors.ProgrammingError: 002108 (22000): 01b7d359-0204-e3d8-0001-6b5a013e0b62: SQL compilation error: cannot change column _SDC_ORDER_NUMBER from type NUMBER(38,0) to VARCHAR(16777216)", "level": "info", "timestamp": "2024-10-20T22:49:51.964977Z"}
[...]
{"consumer": true, "producer": false, "string_id": "target-snowflake", "cmd_type": "elb", "run_id": "2c975dcb-7ea3-48f4-8db1-e292c2b0511d", "job_name": "dev:tap-distributor-srs-to-target-snowflake:pipeline-ZGxyhvN8", "stdio": "stderr", "name": "target-snowflake", "event": "[SQL: ALTER TABLE \"ARCH_RAW\".\"[distributor name goes here]\".\"ORDER\" ALTER COLUMN _sdc_order_number SET DATA TYPE VARCHAR]", "level": "info", "timestamp": "2024-10-20T22:49:51.978192Z"}

Coercion from NUMBER to VARCHAR should be a fairly simple process, I would think. Not sure what's going on and I didn't dive in.

@edgarrmondragon
Copy link
Member

edgarrmondragon commented Oct 21, 2024

By looking at the error message, it seems like a limitation on Snowflake itself.

@visch
Copy link
Member

visch commented Oct 21, 2024

image
Looks like you're right edgar, probably have to do a different series of sql commands in snowflake to make this happen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

3 participants