File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/main/java/io/cdap/plugin/spark/dynamic Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -279,10 +279,9 @@ public List<DatasetJoinInfo> getDatasetsToJoin() {
279
279
*/
280
280
public boolean canCalculateOutputSchema () {
281
281
for (int i = 0 ; i < numJoins ; i ++) {
282
- String pathName = getPropertyName ("path" , i );
283
282
String schemaName = getPropertyName ("datasetSchema" , i );
284
283
String joinOnName = getPropertyName ("joinOn" , i );
285
- if (containsMacro (pathName ) || containsMacro ( schemaName ) || containsMacro (joinOnName )) {
284
+ if (containsMacro (schemaName ) || containsMacro (joinOnName )) {
286
285
return false ;
287
286
}
288
287
}
@@ -291,8 +290,9 @@ public boolean canCalculateOutputSchema() {
291
290
292
291
private DatasetJoinInfo getJoinInfo (int datasetNum ) {
293
292
Map <String , String > rawProperties = getProperties ().getProperties ();
294
- String path = rawProperties .get (getPropertyName ("path" , datasetNum ));
295
- if (path == null ) {
293
+ String pathNameStr = getPropertyName ("path" , datasetNum );
294
+ String path = rawProperties .get (pathNameStr );
295
+ if (!containsMacro (pathNameStr ) && path == null ) {
296
296
throw new IllegalArgumentException ("Path for Dataset " + datasetNum + " must be specified." );
297
297
}
298
298
You can’t perform that action at this time.
0 commit comments