add left function
This commit is contained in:
parent
a486270ab1
commit
6eda025e39
File diff suppressed because one or more lines are too long
@ -3312,6 +3312,7 @@ ArbitraryFunctionName
|
||||
| 'MAP'
|
||||
| '<impala>REPLACE'
|
||||
| 'TRUNCATE'
|
||||
| 'LEFT'
|
||||
;
|
||||
|
||||
OptionalFunctionSquareBracket
|
||||
|
@ -53,6 +53,11 @@ describe('syntax test', () => {
|
||||
const result = parser.parseSyntax([sql, ''], dtSqlParser.parser.sqlType.Impala);
|
||||
expect(result).toBe(false);
|
||||
})
|
||||
test('left function', () => {
|
||||
const sql = `select left(a) from sa;`
|
||||
const result = parser.parseSyntax([sql, ''], dtSqlParser.parser.sqlType.Impala);
|
||||
expect(result).toBe(false);
|
||||
})
|
||||
});
|
||||
describe('hive', () => {
|
||||
test('no error', () => {
|
||||
|
Loading…
Reference in New Issue
Block a user