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

Method new

datafusion/sql/src/planner.rs:73–85  ·  view source on GitHub ↗

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); ```

()

Source from the content-addressed store, hash-verified

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 ///

Callers

nothing calls this directly

Calls 2

newFunction · 0.85
optionsMethod · 0.45

Tested by

no test coverage detected