question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Should maximum/minimum have the same fmt/pattern?

See original GitHub issue

I suppose it’s correct:

type: date
format: fmt:%Y
constraints:
  minimum: 2015

And it’s not correct:

type: date
format: fmt:%Y
constraints:
  minimum: 2015-12-12 # bad format

Should be clarified in spec (which one is correct).

For implementations the same format for both is much more preferable way (because minimum/maximum could be cast using the same approach as value). And for now python version acts based on snippet #1 workflow.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:18 (18 by maintainers)

github_iconTop GitHub Comments

1reaction
pwalshcommented, Dec 19, 2016

@roll could you please help me out here, and go through the list of constraints, and not here what is before/after (just to ensure I don’t miss any concerns from implementation perspective). I will then update specs accordingly.

1reaction
pwalshcommented, Dec 5, 2016

@rgrp @roll @akariv @frictionlessdata/specs-working-group

I think we should be explicit about constraints applying to the value before parsing. Implementing code could handle the cases where it is dealing with an already cast value or not.

So, constraints like enum should be arrays of strings, each parsable as the type/format of the field.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Support "missing" values · Issue #97 · frictionlessdata/specs
Fields should have a way how to specify the missing values, if relevant. It is go... ... Should maximum/minimum have the same fmt/pattern?...
Read more >
Local and Absolute Maximum and Minimum from a Graph
In this video, we are given a graph and have to determine the relative (local) maximum and minimums as well as the absolute...
Read more >
Calculus: Maximum-Minimum Problems With Two Variables
This video discusses how to find maximum and minimum values of a function of two variables using the second derivative test ("D-test").
Read more >
Absolute & Local Minimum and Maximum Values - YouTube
This calculus video tutorial explains how to find the absolute minimum and maximum values as well as the local max and local min....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found