Taragolis commented on issue #37654: URL: https://github.com/apache/airflow/issues/37654#issuecomment-1970129857
I guess it might be use something like hash instead, md5, sha1 or similar. E.g. n Amazon Provider exists simple helper for generate deterministic identifiers: https://github.com/apache/airflow/blob/main/airflow/providers/amazon/aws/utils/identifiers.py https://github.com/apache/airflow/blob/390490fdd4e72960a7cdac2dd09ebd503a8e30df/airflow/providers/amazon/aws/operators/ecs.py#L528-L531 If it shouldn't be a deterministic it could use [`slugify`](https://github.com/un33k/python-slugify) to truncate and fit to a limits Pretty much different solutions for someone who might want to fix it. BTW, postgres identifiers limited by 63 bytes, not 64 characters: https://www.postgresql.org/docs/current/sql-syntax-lexical.html#SQL-SYNTAX-IDENTIFIERS -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
