collins
collins copied to clipboard
Create new types for attribute values
For better input validation and making writing CQL easier, we should create 3 new datatypes that are currently awkwardly included in the String and Double types:
- IP Address - IP Addresses are currently treated as strings, but we can apply better validation if they're their own type
- Dates - Dates are also currently treated in CQL as strings, but are their own type in Solr, which has a strict adherence to ISO 8601. We should make dates their own type so we can parse values like "09/19/2012" and "yesterday at 5:30pm"
- Bytesize - Allow parsing of human readable values lik e "42GB" instead of forcing values in bytes.