[SQL: INSERT INTO dag_code (fileloc_hash, fileloc, last_updated, source_code) VALUES (%s, %s, %s, %s)]
When debugging, I found the metadata DB schema difference for source_code field in the dag_code table.
It works where data type for source_code field is mediumtext. (Max length : 16 MB)
Create Table dag_code,"CREATE TABLE `dag_code` ( `fileloc_hash` bigint(20) NOT NULL, `fileloc` varchar(2000) NOT NULL, `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `source_code` mediumtext CHARACTER SET ucs2 NOT NULL, PRIMARY KEY (`fileloc_hash`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8"
It doesn't work where data type for source_code field is text. (Max length : 64KB)
So, the question is why this inconsistency in schema?
The later version (Composer 1.13.3 Airflow 1.10.12) also has text data type. Why is the future versions are more restrictive.
Also, limit of 64KB sounds too bad in 2021.
Any help and guidance will help.
--
You received this message because you are subscribed to the Google Groups "cloud-composer-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-composer-di...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloud-composer-discuss/3bbd3b32-6523-4b12-8c84-3f7fa99b6f9bn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloud-composer-discuss/1db6054e-9339-437a-8a2a-1215d2205864n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloud-composer-discuss/CAHZ91DTgJVJp91AaEa6Na7R-%2BssmTF9Gik5B8tbk_igeMM%2BKAw%40mail.gmail.com.