[
https://issues.apache.org/jira/browse/DRILL-7696?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17082166#comment-17082166
]
ASF GitHub Bot commented on DRILL-7696:
---------------------------------------
arina-ielchiieva commented on pull request #2051: DRILL-7696: EVF v2 scan
schema resolution
URL: https://github.com/apache/drill/pull/2051#discussion_r407386905
##########
File path:
exec/java-exec/src/main/java/org/apache/drill/exec/physical/impl/scan/v3/schema/ScanSchemaResolver.java
##########
@@ -78,44 +78,47 @@
public class ScanSchemaResolver {
private static final Logger logger =
LoggerFactory.getLogger(ScanSchemaResolver.class);
- public enum Mode {
- STRICT_PROVIDED_SCHEMA,
- LENIENT_PROVIDED_SCHEMA,
- EARLY_READER_SCHEMA,
- READER_SCHEMA,
- MISSING_COLS
+ /**
+ * Indicates the source of the schema to be analyzed.
+ * Each schema type has subtly different rules. The
+ * schema type allows us to inject those differences inline
+ * within the resolution process. Also, each schema caries
+ * a tag used for error reporting.
+ */
+ public enum SchemaType {
+ STRICT_PROVIDED_SCHEMA("Provided"),
+ LENIENT_PROVIDED_SCHEMA("Provided"),
+ EARLY_READER_SCHEMA("Reader"),
+ READER_SCHEMA("Reader"),
+ MISSING_COLS("Missing columns");
+
+ private final String source;
+
+ SchemaType(String source) {
+ this.source = source;
+ }
+
+ public String source() {
+ return source;
Review comment:
Please fix indention.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> EVF v2 Scan Schema Resolution
> -----------------------------
>
> Key: DRILL-7696
> URL: https://issues.apache.org/jira/browse/DRILL-7696
> Project: Apache Drill
> Issue Type: Improvement
> Affects Versions: 1.18.0
> Reporter: Paul Rogers
> Assignee: Paul Rogers
> Priority: Major
> Fix For: 1.18.0
>
>
> Revises the mechanism EVF uses to resolve the schema for a scan. See PR for
> details.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)