Consider Supporting Size() engine function for Complex Types
See original GitHub issueDynamically sizing HDD & SDD sizes is a great feature about WDL + Cromwell that gives you cost savings in certain cloud environments. A current limitation is that you cannot call size
on an Array[File]
type or Array[Array[....[File]..]]
Types, which forces you to either guess the required disk size, or build logic into your workflow upstream for determining file sizes.
Some practical considerations:
- Arrays can have an arbitrary size causing a large number of calls to an engine function / API
- Would an Iterator function be a more generalizable solution?
- Would we restrict this to Arrays or should it be callable on all
File
Types, ieMap[String,File]
,Pair[File,File]
etc
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:8 (6 by maintainers)
Top Results From Across the Web
Data types | BigQuery - Google Cloud
Use the following table to see the size in logical bytes for each supported data type. Data type, Size. ARRAY, The sum of...
Read more >11.7 Data Type Storage Requirements
The LENGTH() function returns the space in bytes required for value storage. For descriptions of WKB and internal storage formats for spatial values,...
Read more >Data types in Power BI Desktop - Microsoft Learn
In this article. Determine and specify a column's data type; Implicit and explicit data type conversion in DAX formulas; Next steps.
Read more >JavaScript data types and data structures - MDN Web Docs
This technique should only be considered when it is the last measure that can be taken to optimize size. BigInt type. The BigInt...
Read more >Data Types - Alteryx Help
Alteryx processes values based on the data type. Alteryx supports string, numeric, date-time, and boolean data types, as well as, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@dheiman
ceil
was recently added as a standard engine function. see documentation here: https://github.com/openwdl/wdl/blob/master/versions/draft-2/SPEC.md#int-floorfloat-int-ceilfloat-and-int-roundfloatI believe this was addressed in https://github.com/openwdl/wdl/pull/169 - can we close this issue?