sidshas03 opened a new pull request, #55750:
URL: https://github.com/apache/airflow/pull/55750

   ### Problem
   Issue #55693 reported confusion about DAG tag length limits. Users thought 
there was a "combined length of all tags" limit, but the actual database 
constraint is **100 characters per individual tag** (`dag_tag.name 
VARCHAR(100)`). The error surfaced late and wasn't clearly documented.
   
   ### Changes
   - Add early tag-length validation in DAG creation paths (SDK DAG)
   - Raise `AirflowException` with clear error messages naming the offending 
tag and its actual length
   - Add documentation clarifying the per-tag limit (not combined length)
   - Preview long tags in error messages for readability
   
   ### Why safe
   - Aligns with existing database schema (`dag_tag.name VARCHAR(100)`)
   - No migrations or behavior changes beyond clearer, earlier validation
   - Clarifies the actual constraint vs. user misconception
   
   ### Tests
   - Tag of exactly 100 chars → allowed
   - Tag of 101 chars → raises `AirflowException` (message includes actual 
length and limit)
   - Multiple tags with one too long → raises; message identifies the 
problematic tag via preview
   
   ### Docs
   - Added "Tag limitations" subsection clarifying per-tag 100-character limit
   
   Resolves #55693


-- 
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]

Reply via email to