Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Constraints and pre-post cast #428

Closed
pwalsh opened this issue May 25, 2017 · 0 comments
Closed

Constraints and pre-post cast #428

pwalsh opened this issue May 25, 2017 · 0 comments
Assignees
Milestone

Comments

@pwalsh
Copy link
Member

pwalsh commented May 25, 2017

From @roll

It’s really critical for simplicity of implementations and we had an extensive discussion on it with @pwalsh and @akariv

Having pre-cast constraint really complicates simple data flow for implementations - null value, cast value, check constraints. With pre-cast pattern now we have a special case.

It also creates at lot of friction on conceptual level. Consider JSON data - it’s already typed and has never been a string so how to apply the pattern constraint on it?

So my main suggestion to Table Schema spec:

Please write that pattern constraint applied only to string type

It’s already implemented in Python/JavaScript and I’m not sure there is any user interest in having pattern for other types. So no reason to complicate our life)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

2 participants