I'm using SQLFluff to lint my queries and am getting Found unparsable section
errors whenever a query contains IF NOT EXISTS
.
I've tried several different dialects with no success. Is it possible for SQLFluff to accept these types of queries without throwing errors?
For example:
CREATE TABLE IF NOT EXISTS Core.Test (
Id INT AUTO_INCREMENT NOT NULL,
name VARCHAR(128) NOT NULL UNIQUE,
PRIMARY KEY (id)
);
Throws:
L: 4 | P: 1 | PRS | Line 4, Position 1: Found unparsable section: 'CREATE TABLE IF NOT EXISTS Core.Test'
WARNING: Parsing errors found and dialect is set