Creates a new `ParserOptions` instance with default values. # Examples ``` use datafusion_sql::planner::ParserOptions; let opts = ParserOptions::new(); assert_eq!(opts.parse_float_as_decimal, false); assert_eq!(opts.enable_ident_normalization, true); ```
()
| 71 | /// assert_eq!(opts.enable_ident_normalization, true); |
| 72 | /// ``` |
| 73 | pub fn new() -> Self { |
| 74 | Self { |
| 75 | parse_float_as_decimal: false, |
| 76 | enable_ident_normalization: true, |
| 77 | support_varchar_with_length: true, |
| 78 | map_string_types_to_utf8view: true, |
| 79 | enable_options_value_normalization: false, |
| 80 | collect_spans: false, |
| 81 | // By default, `nulls_max` is used to follow Postgres's behavior. |
| 82 | // postgres rule: https://www.postgresql.org/docs/current/queries-order.html |
| 83 | default_null_ordering: NullOrdering::NullsMax, |
| 84 | } |
| 85 | } |
| 86 | |
| 87 | /// Sets the `parse_float_as_decimal` option. |
| 88 | /// |