MCPcopy Create free account
hub / github.com/apache/datafusion / get_parser_options

Method get_parser_options

datafusion/core/src/execution/session_state.rs:554–570  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

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

Callers 4

statement_to_planMethod · 0.80
sql_to_exprFunction · 0.80

Calls 3

optionsMethod · 0.45
intoMethod · 0.45
as_strMethod · 0.45

Tested by 1