br1ghtyang / asterixdb

Automatically exported from code.google.com/p/asterixdb
0 stars 0 forks source link

Need better type-conversion facilities for ADM objects in AQL #602

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Two examples:

1) Most ADM instances have a string-based constructor (e.g. int32("1"), 
datetime("..."), etc.)
It would be nice to have the inverse of these:

let $x = string(int32("1")) // == "1"

A "toString()"-like function I suppose...

2) Given an int32 $x. How do I form an int64 with the number represented by $x? 
I don't think this is possible right now.

Original issue reported on code.google.com by zheilb...@gmail.com on 5 Aug 2013 at 4:45

GoogleCodeExporter commented 8 years ago

Original comment by zheilb...@gmail.com on 8 Nov 2013 at 5:27

GoogleCodeExporter commented 8 years ago
The string(...) constructor now works for the following types:
int8, int16, int32, int64, double, float, boolean, string, null

The rest of the type still need implementations, but this should solve a 
majority of the issues.

Keeping the bug open but de-escalating from MSRBlocker status.

Original comment by zheilb...@gmail.com on 6 Dec 2013 at 10:16

GoogleCodeExporter commented 8 years ago
Issue 682 has been merged into this issue.

Original comment by zheilb...@gmail.com on 6 Dec 2013 at 10:41