### Question:
SqlParser { public SqlNode parseStmt() throws SqlParseException { return parseQuery(); } private  SqlParser( SqlAbstractParserImpl parser, SqlParserConfig sqlParserConfig ); static SqlParser create( String s ); static SqlParser create( String sql, SqlParserConfig sqlParserConfig ); static SqlParser create( Reader reader, SqlParserConfig sqlParserConfig ); SqlNode parseExpression(); SqlNode parseQuery(); SqlNode parseQuery( String sql ); SqlNode parseStmt(); SqlAbstractParserImpl.Metadata getMetadata(); static ConfigBuilder configBuilder(); static ConfigBuilder configBuilder( SqlParserConfig sqlParserConfig ); static final int DEFAULT_IDENTIFIER_MAX_LENGTH; }### Answer:
@Test public void testSqlOptions() throws SqlParseException { SqlNode node = getSqlParser( "alter system set schema = true" ).parseStmt(); SqlSetOption opt = (SqlSetOption) node; assertThat( opt.getScope(), equalTo( "SYSTEM" ) ); SqlPrettyWriter writer = new SqlPrettyWriter( PolyphenyDbSqlDialect.DEFAULT ); assertThat( writer.format( opt.getName() ), equalTo( "\"SCHEMA\"" ) ); writer = new SqlPrettyWriter( PolyphenyDbSqlDialect.DEFAULT ); assertThat( writer.format( opt.getValue() ), equalTo( "TRUE" ) ); writer = new SqlPrettyWriter( PolyphenyDbSqlDialect.DEFAULT ); assertThat( writer.format( opt ), equalTo( "ALTER SYSTEM SET \"SCHEMA\" = TRUE" ) ); sql( "alter system set \"a number\" = 1" ) .ok( "ALTER SYSTEM SET `a number` = 1" ) .node( isDdl() ); check( "alter system set flag = false", "ALTER SYSTEM SET `FLAG` = FALSE" ); check( "alter system set approx = -12.3450", "ALTER SYSTEM SET `APPROX` = -12.3450" ); check( "alter system set onOff = on", "ALTER SYSTEM SET `ONOFF` = `ON`" ); check( "alter system set onOff = off", "ALTER SYSTEM SET `ONOFF` = `OFF`" ); check( "alter system set baz = foo", "ALTER SYSTEM SET `BAZ` = `FOO`" ); check( "alter system set \"a\".\"number\" = 1", "ALTER SYSTEM SET `a`.`number` = 1" ); check( "alter system RESET flag", "ALTER SYSTEM RESET `FLAG`" ); check( "alter system reset all", "ALTER SYSTEM RESET `ALL`" ); checkFails( "alter system set aString = 'abc' ^||^ 'def' ", "(?s)Encountered \"\\|\\|\" at line 1, column 34\\..*" ); checkFails( "alter system set x = 1^,^ y = 2", "(?s)Encountered \",\" at line 1, column 23\\..*" ); }