Teiid's SQL function SUBSTRING(x,y [, z]) is translated to N1QL substring(x,y [, z]) function, but correct N1QL function is called SUBSTR. See TEIID-4975