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.

Feature request: number of records constraints

See original GitHub issue

Overview

Hi, below you have one of the official documentation yaml file. There some constraints fields related.

A lot of time I know that I know that a resource is valid only if it is made up of at least 365 rows (some annual dataset including leap years). Or that the rows shouldn’t be more than 10.

I think it should be a great validate and check feature to have.

Thank you

dialect:
  delimiter: ;
encoding: utf-8
format: csv
hashing: md5
layout:
  headerRows:
    - 2
name: country-2
path: country-2.csv
profile: tabular-data-resource
schema:
  fields:
    - name: id
      title: Identifier
      type: integer
    - name: neighbor_id
      title: Identifier of the neighbor
      type: integer
    - name: name
      title: Name of the country
      type: string
    - constraints:
        minimum: 0
      description: According to the year 2020's data
      name: population
      title: Population
      type: integer
  foreignKeys:
    - fields:
        - neighbor_id
      reference:
        fields:
          - id
        resource: ''
scheme: file

Please preserve this line to notify @roll (lead of this repository)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:14 (14 by maintainers)

github_iconTop GitHub Comments

2reactions
aborrusocommented, May 14, 2022

I’ve created a feature request for it - #1078 - we will be on it soon

WOW, really great

1reaction
rollcommented, May 14, 2022

Hi @aborruso,

I’ve created a feature request for it - https://github.com/frictionlessdata/frictionless-py/issues/1078 - we will be on it soon

Read more comments on GitHub >

github_iconTop Results From Across the Web

Quotas - Amazon Timestream
Default quotas; Supported data types; Naming constraints; Reserved keywords ... The maximum number of records in a WriteRecords API request. 100.
Read more >
Number of rows removed from this list by security constraints
Solved: So I moved some itil users to business stakeholder , assuing business stakeholder role has read access to all modules But when...
Read more >
Dolt Now Supports Check Constraints | DoltHub Blog
Check constraints are a data validation mechanism for table rows ... 1-to-1 porting MySQL features, and check constraints are no exception.
Read more >
"extends oneof" generic constraint; allows for narrowing type ...
Feature Request : "extends oneof" generic constraint; allows for narrowing type parameters #27808. Open. 4 tasks done.
Read more >
Capabilities, constraints, and settings - Web APIs | MDN
This article discusses the twin concepts of constraints and capabilities, as well as media settings, and includes an example we call the ...
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