@@ -129,6 +129,19 @@ case class JDBCScanBuilder(
129
129
// Also, we need to check if join is done on 2 tables from 2 different databases within same
130
130
// host. These shouldn't be allowed.
131
131
override def isOtherSideCompatibleForJoin (other : SupportsPushDownJoin ): Boolean = {
132
+ log.info(" [find-me] isOtherSideCompatible jdbcOptions.pushDownJoin: " +
133
+ jdbcOptions.pushDownJoin)
134
+ println(" [find-me] isOtherSideCompatible jdbcOptions.pushDownJoin: " +
135
+ jdbcOptions.pushDownJoin)
136
+ log.info(" [find-me] isOtherSideCompatible dialect.supportsJoin: " +
137
+ dialect.supportsJoin)
138
+ println(" [find-me] isOtherSideCompatible dialect.supportsJoin: " +
139
+ dialect.supportsJoin)
140
+ log.info(" [find-me] other.isInstanceOf[JDBCScanBuilder]: " +
141
+ other.isInstanceOf [JDBCScanBuilder ])
142
+ println(" [find-me] dialect: " + dialect.getClass.getSimpleName)
143
+ println(" [find-me] url: " + jdbcOptions.url)
144
+
132
145
if (! jdbcOptions.pushDownJoin ||
133
146
! dialect.supportsJoin ||
134
147
! other.isInstanceOf [JDBCScanBuilder ]) {
@@ -178,6 +191,10 @@ case class JDBCScanBuilder(
178
191
leftSideRequiredColumnsWithAliases : Array [SupportsPushDownJoin .ColumnWithAlias ],
179
192
rightSideRequiredColumnsWithAliases : Array [SupportsPushDownJoin .ColumnWithAlias ],
180
193
condition : Predicate ): Boolean = {
194
+ log.info(" [find-me] jdbcOptions.pushDownJoin: " + jdbcOptions.pushDownJoin)
195
+ println(" [find-me] jdbcOptions.pushDownJoin: " + jdbcOptions.pushDownJoin)
196
+ log.info(" [find-me] dialect.supportsJoin: " + dialect.supportsJoin)
197
+ println(" [find-me] dialect.supportsJoin: " + dialect.supportsJoin)
181
198
if (! jdbcOptions.pushDownJoin || ! dialect.supportsJoin) {
182
199
return false
183
200
}
@@ -186,11 +203,16 @@ case class JDBCScanBuilder(
186
203
case JoinType .INNER_JOIN => Some (" INNER JOIN" )
187
204
case _ => None
188
205
}
206
+
207
+ log.info(" [find-me] joinTypeStringOption: " + joinTypeStringOption)
208
+ println(" [find-me] joinTypeStringOption: " + joinTypeStringOption)
189
209
if (! joinTypeStringOption.isDefined) {
190
210
return false
191
211
}
192
212
193
213
val compiledCondition = dialect.compileExpression(condition)
214
+ log.info(" [find-me] compiledCondition: " + compiledCondition)
215
+ println(" [find-me] compiledCondition: " + compiledCondition)
194
216
if (! compiledCondition.isDefined) {
195
217
return false
196
218
}
0 commit comments