PySpark codegen fails on unrecognized regex patterns

Open
#632 0 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@sethfitz is already working on this.

Since Aug 12, 2026.

Assessment

This issue has not been assessed yet.

Description

PySpark test generation requires valid and invalid example strings for every constraint. Regex patterns are looked up in a hand-curated table in pyspark/test_data/constraint_values.py; patterns and third-party (or missing known) PatternConstraint types absent from that table cause generation to fail.

Because generate_pyspark_modules always generates tests, one unknown pattern breaks the entire overture-codegen generate --format pyspark run, including runtime source generation.

Dominant language
Python
Stars
219
Forks
20
Avg merge
1d 21h
Merged PRs (30d)
37

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from OvertureMaps/schema

All issues in OvertureMaps/schema

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.