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.

Units and scales (and currency) in Table Schema

See original GitHub issue

STATUS:


Excellent discussion with @dr-shorthair today led me to consider importance of units and scales (and currency) in JSON Table Schema.

Suggest we could specific at MAY level:

unit: simple-string-descriptor e.g. m/s
unitSemantic: pointer-to-a-url-describing that unit - could be RDF uri
currency:      # could be part of units but think probably better separate
factor: a scaling factor (e.g. 1000 would mean to scale by 1000

References

Issue Analytics

  • State:open
  • Created 8 years ago
  • Reactions:2
  • Comments:30 (21 by maintainers)

github_iconTop GitHub Comments

2reactions
yohanbonifacecommented, Dec 19, 2022

Hey, is there still interest in this feature ? We (for French administration) would use it (basically, tools consuming table schema would infer some behavior according to the unit, when defined). Any way we could help it land in the spec ?

2reactions
rgiesekecommented, Jun 12, 2017

How about something like

"unit": "EUR",
"unitSystem": "ISO-4217"
Read more comments on GitHub >

github_iconTop Results From Across the Web

SAP Currency Unit Tables - TCode Search
# TABLE Table Type 1 EKPO Transparent Table 2 VBAK Transparent Table 3 BSEG Cluster Table
Read more >
money and smallmoney (Transact-SQL) - Microsoft Learn
The money and smallmoney data types are accurate to a ten-thousandth of the monetary units that they represent. For Informatica, the money and ......
Read more >
5 Database Design Schema Example: Critical Practices ...
This blog talks about the Database Schemas & their types, Database Design Schema Example followed by the best practices to attain high ...
Read more >
Table Schema: Currency pattern - Frictionless Data
The data type chosen for the numeric field SHOULD reflect if the currency has a minor unit. Implementations. None known. 2 Likes. Table ......
Read more >
Storing money in a decimal column - what precision and scale?
Store the conversion rates (when applicable) in the transaction table itself, as a float · Store the currency in the account table ·...
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