// ifPreferAsLocalInBCJoin checks if there is a data source specified as local read by hint
ifPreferAsLocalInBCJoin checks if there is a data source specified as local read by hint
// ifPreferAsLocalInBCJoin checks if there is a data source specified as local read by hint
func (info *tableHintInfo) ifPreferAsLocalInBCJoin(p LogicalPlan, blockOffset int) bool {
	alias := extractTableAlias(p, blockOffset)
	if alias != nil {
		tableNames := make([]*hintTableInfo, 1)
		tableNames[0] = alias
		return info.matchTableName(tableNames, info.broadcastJoinPreferredLocal)
	}
	for _, c := range p.Children() {
		if info.ifPreferAsLocalInBCJoin(c, blockOffset) {
			return true
		}
	}
	return false
}
func ( info * tableHintInfo ) ifPreferAsLocalInBCJoin ( p LogicalPlan , blockOffset int ) bool { alias := extractTableAlias ( p , blockOffset ) if alias != nil { tableNames := make ( [ ] * hintTableInfo , 1 ) tableNames [ 0 ] = alias return info . matchTableName ( tableNames , info . broadcastJoinPreferredLocal ) } for _ , c := range p . Children ( ) { if info . ifPreferAsLocalInBCJoin ( c , blockOffset ) { return true } } return false }
ifPreferAsLocalInBCJoin checks if there is a data source specified as local read by hint
ifPreferAsLocalInBCJoin checks if there is a data source specified as local read by hint