cloudflare / workers-sdk

⛅️ Home to Wrangler, the CLI for Cloudflare Workers®
https://developers.cloudflare.com/workers/
Apache License 2.0
2.41k stars 590 forks source link

🐛 BUG: [ERROR] statement too long #6146

Open jonathangreensted opened 5 days ago

jonathangreensted commented 5 days ago

Which Cloudflare product(s) does this pertain to?

D1

What version(s) of the tool(s) are you using?

wrangler 3.62.0

What version of Node are you using?

v21.6.2

What operating system and version are you using?

Mac Sonoma 14.5 (23F79)

Describe the Bug

Observed behavior

Errors with "statement too long" when running an export file created using:

wrangler d1 export dev-rentiful --remote --output webhooks.sql --table Webhooks

Then executed against --local using:

npx wrangler d1 execute dev-rentiful --local --file=webhooks.sql --env dev

Expected behavior

Complete succcessfully and have a copy of the --remote table --local for development.

Steps to reproduce

The above steps are sufficient to recreate.

There is a large amount of JSON data in a single column in the Webhook table but it really shouldn't error with something that was exported successfully.

webhooks.sql attached.

webhooks.sql.zip

Please provide a link to a minimal reproduction

No response

Please provide any relevant error logs

No response