Class ImplicitColumnManager.ImplicitColumnOptions

java.lang.Object
org.apache.drill.exec.physical.impl.scan.file.ImplicitColumnManager.ImplicitColumnOptions
Enclosing class:
ImplicitColumnManager

public static class ImplicitColumnManager.ImplicitColumnOptions extends Object
  • Field Details

    • useLegacyWildcardExpansion

      protected boolean useLegacyWildcardExpansion
      Historically Drill will expand partition columns (dir0, dir1, ...) when the project list includes a wildcard.
  • Constructor Details

    • ImplicitColumnOptions

      public ImplicitColumnOptions()
  • Method Details

    • setSelectionRoot

      public void setSelectionRoot(org.apache.hadoop.fs.Path rootPath)
      Specify the selection root for a directory scan, if any. Used to populate partition columns. Also, specify the maximum partition depth.
      Parameters:
      rootPath - Hadoop file path for the directory
    • setPartitionDepth

      public void setPartitionDepth(int partitionDepth)
    • setFiles

      public void setFiles(List<org.apache.hadoop.fs.Path> files)
    • useLegacyWildcardExpansion

      public void useLegacyWildcardExpansion(boolean flag)
      Indicates whether to expand partition columns when the query contains a wildcard. Supports queries such as the following:
       select * from dfs.`partitioned-dir`
      In which the output columns will be (columns, dir0) if the partitioned directory has one level of nesting.

      See TestImplicitFileColumns#testImplicitColumns