@@ -1806,7 +1806,7 @@ public void testExplainPlan() throws KeyManagementException, NoSuchAlgorithmExce
1806
1806
.select (
1807
1807
p .as ("MasterName" , p .schemaCol ("opticFunctionalTest" , "master" , "name" )),
1808
1808
p .schemaCol ("opticFunctionalTest" , "master" , "date" ),
1809
- p .as ("DetailName" , p .col ( "name" )),
1809
+ p .as ("DetailName" , p .schemaCol ( "opticFunctionalTest" , "detail" , "name" )),
1810
1810
p .col ("amount" ),
1811
1811
p .col ("color" ),
1812
1812
fIdCol1 ,
@@ -1825,18 +1825,18 @@ public void testExplainPlan() throws KeyManagementException, NoSuchAlgorithmExce
1825
1825
ModifyPlan plan3 = p .fromView ("opticFunctionalTest" , "master" )
1826
1826
.orderBy (p .schemaCol ("opticFunctionalTest" , "master" , "id" ));
1827
1827
ModifyPlan plan4 = p .fromView ("opticFunctionalTest" , "detail" )
1828
- .orderBy (p .col ( "id" ));
1828
+ .orderBy (p .schemaCol ( "opticFunctionalTest" , "detail" , "id" ));
1829
1829
// intersect with different number of columns
1830
1830
JsonNode explainNodeInv = null ;
1831
1831
try {
1832
1832
ModifyPlan outputInv = plan3 .select (p .schemaCol ("opticFunctionalTest" , "master" , "id" ))
1833
1833
.intersect (
1834
1834
plan4 .select (
1835
- p .col ( "id" ),
1835
+ p .schemaCol ( "opticFunctionalTest" , "detail" , "id" ),
1836
1836
p .col ("masterId" )
1837
1837
)
1838
1838
)
1839
- .orderBy (p .asc (p .col ( "id" )));
1839
+ .orderBy (p .asc (p .schemaCol ( "opticFunctionalTest" , "detail" , "id" )));
1840
1840
1841
1841
explainNodeInv = rowMgr .explain (outputInv , new JacksonHandle ()).get ();
1842
1842
assertEquals ("Explain of Invalid plan incorrect" , explainNodeInv .path ("node" ).asText (), "plan" );
@@ -3160,8 +3160,8 @@ public void testColInfoWithSysCols() throws KeyManagementException, NoSuchAlgori
3160
3160
assertTrue ("Element 3 DetailName value incorrect" , colInfo .contains ("{\" schema\" :\" \" , \" view\" :\" \" , \" column\" :\" DetailName\" , \" type\" :\" string\" , \" nullable\" :false}" ));
3161
3161
assertTrue ("Element 4 detail-double value incorrect" , colInfo .contains ("{\" schema\" :\" opticFunctionalTest\" , \" view\" :\" detail\" , \" column\" :\" amount\" , \" type\" :\" double\" , \" nullable\" :false}" ));
3162
3162
assertTrue ("Element 5 detail-string value incorrect" , colInfo .contains ("{\" schema\" :\" opticFunctionalTest\" , \" view\" :\" detail\" , \" column\" :\" color\" , \" type\" :\" string\" , \" nullable\" :false}" ));
3163
- assertTrue ("Element 6 detail-unknown value incorrect" , colInfo .contains ("{\" schema\" :\" opticFunctionalTest\" , \" view\" :\" detail\" , \" column\" :\" fragIdCol1\" , \" type\" :\" unknown \" , \" nullable\" :false}" ));
3164
- assertTrue ("Element 7 master-unknown value incorrect" , colInfo .contains ("{\" schema\" :\" opticFunctionalTest\" , \" view\" :\" master\" , \" column\" :\" fragIdCol2\" , \" type\" :\" unknown \" , \" nullable\" :false}" ));
3163
+ assertTrue ("Element 6 detail-unknown value incorrect" , colInfo .contains ("{\" schema\" :\" opticFunctionalTest\" , \" view\" :\" detail\" , \" column\" :\" fragIdCol1\" , \" type\" :\" fraghint \" , \" nullable\" :false}" ));
3164
+ assertTrue ("Element 7 master-unknown value incorrect" , colInfo .contains ("{\" schema\" :\" opticFunctionalTest\" , \" view\" :\" master\" , \" column\" :\" fragIdCol2\" , \" type\" :\" fraghint \" , \" nullable\" :false}" ));
3165
3165
}
3166
3166
3167
3167
@ AfterClass
0 commit comments