Skip to content

Getting a MySQL error "Data too long for column 'event' at row 1" #18313

Answered by prha
prha asked this question in Q&A
Discussion options

You must be logged in to vote

This occurs because the event_logs table in MySQL stores the event metadata in a column of type TEXT instead of LONGTEXT.

Starting in 1.5.10, new Dagster instances on MySQL should use LONGTEXT instead of TEXT, but existing instances will have to manually migrate. This is to allow existing instances who aren't running into this to avoid a schema migration that could potentially incur a long downtime.

To migrate manually, you should run the following ALTER statements:
ALTER TABLE event_logs MODIFY event LONGTEXT;;
ALTER TABLE asset_keys MODIFY last_materialization LONGTEXT;

Replies: 1 comment 2 replies

Comment options

prha
Nov 27, 2023
Maintainer Author

You must be logged in to vote
2 replies
@zee-mel-2022
Comment options

@Marmikiih
Comment options

Answer selected by prha
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
type: troubleshooting Related to debugging and error messages
3 participants