Class ImplicitColumnManager.ImplicitColumnOptions
java.lang.Object
org.apache.drill.exec.physical.impl.scan.file.ImplicitColumnManager.ImplicitColumnOptions
- Enclosing class:
- ImplicitColumnManager
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
Historically Drill will expand partition columns (dir0, dir1, ...) when the project list includes a wildcard. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
setPartitionDepth
(int partitionDepth) void
setSelectionRoot
(org.apache.hadoop.fs.Path rootPath) Specify the selection root for a directory scan, if any.void
useLegacyWildcardExpansion
(boolean flag) Indicates whether to expand partition columns when the query contains a wildcard.
-
Field Details
-
useLegacyWildcardExpansion
protected boolean useLegacyWildcardExpansionHistorically 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
-
useLegacyWildcardExpansion
public void useLegacyWildcardExpansion(boolean flag) Indicates whether to expand partition columns when the query contains a wildcard. Supports queries such as the following:
In which the output columns will be (columns, dir0) if the partitioned directory has one level of nesting.select * from dfs.`partitioned-dir`
See
TestImplicitFileColumns#testImplicitColumns
-