Skip to content

Commit

Permalink
Fix for Scan OneRowRelation
Browse files Browse the repository at this point in the history
Signed-off-by: Niranjan Artal <[email protected]>
  • Loading branch information
nartal1 committed Dec 4, 2024
1 parent 1b3f5dd commit eb919da
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ case class ReadMetaData(schema: String, location: String, format: String,
object ReadParser extends Logging {
// It was found that some eventlogs could have "NativeScan" instead of "Scan"
val SCAN_NODE_PREFIXES = Seq("Scan", "NativeScan")
// Do not include OneRowRelation in the scan nodes, consider it as regular Exec
val SCAN_ONE_ROW_RELATION = "Scan OneRowRelation"
// DatasourceV2 node names that exactly match the following labels
val DATASOURCE_V2_NODE_EXACT_PREF = Set(
"BatchScan")
Expand All @@ -66,7 +68,7 @@ object ReadParser extends Logging {
)

def isScanNode(nodeName: String): Boolean = {
SCAN_NODE_PREFIXES.exists(nodeName.startsWith(_))
SCAN_NODE_PREFIXES.exists(nodeName.startsWith(_)) && !nodeName.startsWith(SCAN_ONE_ROW_RELATION)
}

def isScanNode(node: SparkPlanGraphNode): Boolean = {
Expand Down

0 comments on commit eb919da

Please sign in to comment.