- 
                Notifications
    You must be signed in to change notification settings 
- Fork 247
wip - CometNativeScan #1076
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wip - CometNativeScan #1076
Conversation
| val COMET_FULL_NATIVE_SCAN_ENABLED: ConfigEntry[Boolean] = conf( | ||
| "spark.comet.native.scan.enabled") | ||
| .doc( | ||
| "Whether to enable the fully native scan. When this is turned on, Spark will use Comet to " + | ||
| "read supported data sources (currently only Parquet is supported natively)." + | ||
| " By default, this config is true.") | ||
| .booleanConf | ||
| .createWithDefault(true) | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a similar config locally. 🙂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it was was something related, you can merge it here. This is an experimental branch. If it is for something different, then we can change our name.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, I meant I tried to do similar native scan change into this branch. I was trying to enable DataFusion native Parquet scan yesterday. I found this branch this morning so tried to apply initial change onto this branch.
I will see if any difference can be merged.
| _, | ||
| _, | ||
| _) | ||
| if CometNativeScanExec.isSchemaSupported(requiredSchema) | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we could also fall back for bucketed scans and other unsupported cases (can be a separate PR)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks @parthchandra
This reverts commit 38e32f7.
Replaces hacked
CometScanwithCometNativeScanso we can switch between original and experimental without rebuilding.I tried removing a lot of the functions in CometNativeScan but too many test in CometExecSuite fail and I ended up including almost everything back.
Three tests in CometExecScan are still failing.