| 552 | |
| 553 | #[cfg(feature = "sql")] |
| 554 | fn get_parser_options(&self) -> ParserOptions { |
| 555 | let sql_parser_options = &self.config.options().sql_parser; |
| 556 | |
| 557 | ParserOptions { |
| 558 | parse_float_as_decimal: sql_parser_options.parse_float_as_decimal, |
| 559 | enable_ident_normalization: sql_parser_options.enable_ident_normalization, |
| 560 | enable_options_value_normalization: sql_parser_options |
| 561 | .enable_options_value_normalization, |
| 562 | support_varchar_with_length: sql_parser_options.support_varchar_with_length, |
| 563 | map_string_types_to_utf8view: sql_parser_options.map_string_types_to_utf8view, |
| 564 | collect_spans: sql_parser_options.collect_spans, |
| 565 | default_null_ordering: sql_parser_options |
| 566 | .default_null_ordering |
| 567 | .as_str() |
| 568 | .into(), |
| 569 | } |
| 570 | } |
| 571 | |
| 572 | /// Creates a [`LogicalPlan`] from the provided SQL string. This |
| 573 | /// interface will plan any SQL DataFusion supports, including DML |