[jira] [Created] (CALCITE-2653) Correct the description of String Function SUBSTRING in reference.md
winifredtang created CALCITE-2653:
Summary: Correct the description of String Function SUBSTRING in reference.md
Issue Type: Improvement
Affects Versions: 1.17.0
Assignee: Julian Hyde
I wonder if we can change the operator syntax of String Function SUBSTRING from SUBSTRING(string FROM integer) to SUBSTRING(string, integet). Since it might be a bit of missleading.
Executing a SQL statement like 'select substring(name FROM 2) from sales.depts;' would throw a exception :
Caused by: org.apache.calcite.sql.parser.impl.ParseException: Encountered "select" at line 2, column 1.
The correct SQL statement is 'select substring(NAME,2) from sales.depts;'
SUBSTRING(string FROM integer FOR integer) has the same promble.
If necessary, I'd like to modify it.
This message was sent by Atlassian JIRA