couchbaselabs/tuqtng — pull request #6 by maniktaneja (2013-12-02 13:17:35+00:00)
Title: Separate xxxLength() functions for different types

LENGTH() only operates on strings
ARRAY_LENGTH() for arrays
OBJECT_LENGTH() for maps
POLY_LENGTH() for string, arrays or maps (generic when the type of the argument is not known)