agentm / project-m36

Project: M36 Relational Algebra Engine
The Unlicense
895 stars 48 forks source link

fix declaring Interval type #205

Closed agentm closed 6 years ago

agentm commented 6 years ago

Interval x is currently consumed in the primitive type parser as Int. I should probably just unify the type parser and perform post-processing to detect primitive data types.

diogob commented 6 years ago

Hi there, I'm also having problems with DateTime when trying something like:

TutorialD (master/main): :showexpr relation{email Text, started_at DateTime}
ERR: NoSuchTypeConstructorError "DateTime"

Am I doing anything wrong?

agentm commented 6 years ago

@diogob, no, you're not doing anything wrong. The data type is not declared and parsed properly. However, if you create a relation with one tuple using fromGregorian, then the DateTime type can be used. I'll fix this as part of the type parsing overhaul.

diogob commented 6 years ago

Thanks for the quick response 😄