simlaudato / asterixdb

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

Allow functions to provide types for parameters #926

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Functions currently don't allow you to specify types for input parameters.

Original issue reported on code.google.com by sjaco...@ucr.edu on 10 Aug 2015 at 5:29

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I might be missing something here, but aren't the functions statically typed 
right now? Why you would need to provide types for parameters?

Original comment by ildar.absalyamov on 10 Aug 2015 at 7:16

GoogleCodeExporter commented 9 years ago
I'm not sure exactly what you mean exactly by statically typed. Can you be more 
specific?

Original comment by sjaco...@ucr.edu on 10 Aug 2015 at 7:20

GoogleCodeExporter commented 9 years ago
Right now functions have RESULT types but the parameters are named but NOT 
typed.  This issue is saying that the input parameters should also be type-able 
- and then you'd want/expect/need the AQL compiler to make sure (like it does 
before doing an insert into a typed dataset) that the call is valid and any 
converting of data that would be appropriate/needed has happened.

Original comment by dtab...@gmail.com on 11 Aug 2015 at 8:03