Class SqlParserOptions

java.lang.Object
org.apache.arrow.datafusion.SqlParserOptions

public class SqlParserOptions extends Object
Configures options specific to parsing SQL queries
  • Method Details

    • parseFloatAsDecimal

      public boolean parseFloatAsDecimal()
      Get whether to parse floats as decimal type
      Returns:
      whether to parse floats as decimal
    • withParseFloatAsDecimal

      public SqlParserOptions withParseFloatAsDecimal(boolean enabled)
      Set whether to parse floats as decimal type
      Parameters:
      enabled - whether to parse floats as decimal
      Returns:
      the modified SqlParserOptions instance
    • enableIdentNormalization

      public boolean enableIdentNormalization()
      Get whether to convert identifiers to lowercase when not quoted
      Returns:
      whether ident normalization is enabled
    • withEnableIdentNormalization

      public SqlParserOptions withEnableIdentNormalization(boolean enabled)
      Set whether to convert identifiers to lowercase when not quoted
      Parameters:
      enabled - whether ident normalization is enabled
      Returns:
      the modified SqlParserOptions instance
    • dialect

      public String dialect()
      Get the SQL dialect used
      Returns:
      the SQL dialect used
    • withDialect

      public SqlParserOptions withDialect(String dialect)
      Set the SQL dialect to use
      Parameters:
      dialect - the SQL dialect to use
      Returns:
      the modified SqlParserOptions instance