Package org.apache.arrow.datafusion
Class SqlParserOptions
java.lang.Object
org.apache.arrow.datafusion.SqlParserOptions
Configures options specific to parsing SQL queries
-
Method Summary
Modifier and TypeMethodDescriptiondialect()Get the SQL dialect usedbooleanGet whether to convert identifiers to lowercase when not quotedbooleanGet whether to parse floats as decimal typewithDialect(String dialect) Set the SQL dialect to usewithEnableIdentNormalization(boolean enabled) Set whether to convert identifiers to lowercase when not quotedwithParseFloatAsDecimal(boolean enabled) Set whether to parse floats as decimal type
-
Method Details
-
parseFloatAsDecimal
public boolean parseFloatAsDecimal()Get whether to parse floats as decimal type- Returns:
- whether to parse floats as decimal
-
withParseFloatAsDecimal
Set whether to parse floats as decimal type- Parameters:
enabled- whether to parse floats as decimal- Returns:
- the modified
SqlParserOptionsinstance
-
enableIdentNormalization
public boolean enableIdentNormalization()Get whether to convert identifiers to lowercase when not quoted- Returns:
- whether ident normalization is enabled
-
withEnableIdentNormalization
Set whether to convert identifiers to lowercase when not quoted- Parameters:
enabled- whether ident normalization is enabled- Returns:
- the modified
SqlParserOptionsinstance
-
dialect
Get the SQL dialect used- Returns:
- the SQL dialect used
-
withDialect
Set the SQL dialect to use- Parameters:
dialect- the SQL dialect to use- Returns:
- the modified
SqlParserOptionsinstance
-