@@ -1434,7 +1434,7 @@ fn recursive_ctes_disabled() {
1434
1434
state. config_options . execution . enable_recursive_ctes = false ;
1435
1435
let context = MockContextProvider { state } ;
1436
1436
1437
- let planner = SqlToRel :: new_with_options ( & context, ParserOptions :: new ( ) ) ;
1437
+ let planner = SqlToRel :: new_with_options ( & context, ParserOptions :: default ( ) ) ;
1438
1438
let result = DFParser :: parse_sql_with_dialect ( sql, & GenericDialect { } ) ;
1439
1439
let mut ast = result. unwrap ( ) ;
1440
1440
@@ -2593,7 +2593,7 @@ fn select_groupby_orderby() {
2593
2593
}
2594
2594
2595
2595
fn logical_plan ( sql : & str ) -> Result < LogicalPlan > {
2596
- logical_plan_with_options ( sql, ParserOptions :: new ( ) )
2596
+ logical_plan_with_options ( sql, ParserOptions :: default ( ) )
2597
2597
}
2598
2598
2599
2599
fn logical_plan_with_options ( sql : & str , options : ParserOptions ) -> Result < LogicalPlan > {
@@ -2702,7 +2702,7 @@ impl ScalarUDFImpl for DummyUDF {
2702
2702
2703
2703
/// Create logical plan, write with formatter, compare to expected output
2704
2704
fn quick_test ( sql : & str , expected : & str ) {
2705
- quick_test_with_options ( sql, expected, ParserOptions :: new ( ) )
2705
+ quick_test_with_options ( sql, expected, ParserOptions :: default ( ) )
2706
2706
}
2707
2707
2708
2708
fn quick_test_with_options ( sql : & str , expected : & str , options : ParserOptions ) {
@@ -4453,7 +4453,7 @@ fn test_parse_escaped_string_literal_value() {
4453
4453
fn plan_create_index ( ) {
4454
4454
let sql =
4455
4455
"CREATE UNIQUE INDEX IF NOT EXISTS idx_name ON test USING btree (name, age DESC)" ;
4456
- let plan = logical_plan_with_options ( sql, ParserOptions :: new ( ) ) . unwrap ( ) ;
4456
+ let plan = logical_plan_with_options ( sql, ParserOptions :: default ( ) ) . unwrap ( ) ;
4457
4457
match plan {
4458
4458
LogicalPlan :: Ddl ( DdlStatement :: CreateIndex ( CreateIndex {
4459
4459
name,
@@ -4513,7 +4513,7 @@ fn init() {
4513
4513
fn test_no_functions_registered ( ) {
4514
4514
let sql = "SELECT foo()" ;
4515
4515
4516
- let options = ParserOptions :: new ( ) ;
4516
+ let options = ParserOptions :: default ( ) ;
4517
4517
let dialect = & GenericDialect { } ;
4518
4518
let state = MockSessionState :: default ( ) ;
4519
4519
let context = MockContextProvider { state } ;
@@ -4534,7 +4534,7 @@ fn test_custom_type_plan() -> Result<()> {
4534
4534
let sql = "SELECT DATETIME '2001-01-01 18:00:00'" ;
4535
4535
4536
4536
// test the default behavior
4537
- let options = ParserOptions :: new ( ) ;
4537
+ let options = ParserOptions :: default ( ) ;
4538
4538
let dialect = & GenericDialect { } ;
4539
4539
let state = MockSessionState :: default ( ) ;
4540
4540
let context = MockContextProvider { state } ;
@@ -4548,7 +4548,7 @@ fn test_custom_type_plan() -> Result<()> {
4548
4548
) ;
4549
4549
4550
4550
fn plan_sql ( sql : & str ) -> LogicalPlan {
4551
- let options = ParserOptions :: new ( ) ;
4551
+ let options = ParserOptions :: default ( ) ;
4552
4552
let dialect = & GenericDialect { } ;
4553
4553
let state = MockSessionState :: default ( )
4554
4554
. with_scalar_function ( make_array_udf ( ) )
0 commit comments