@@ -1806,7 +1806,7 @@ public void testExplainPlan() throws KeyManagementException, NoSuchAlgorithmExce
18061806 .select (
18071807 p .as ("MasterName" , p .schemaCol ("opticFunctionalTest" , "master" , "name" )),
18081808 p .schemaCol ("opticFunctionalTest" , "master" , "date" ),
1809- p .as ("DetailName" , p .col ( "name" )),
1809+ p .as ("DetailName" , p .schemaCol ( "opticFunctionalTest" , "detail" , "name" )),
18101810 p .col ("amount" ),
18111811 p .col ("color" ),
18121812 fIdCol1 ,
@@ -1825,18 +1825,18 @@ public void testExplainPlan() throws KeyManagementException, NoSuchAlgorithmExce
18251825 ModifyPlan plan3 = p .fromView ("opticFunctionalTest" , "master" )
18261826 .orderBy (p .schemaCol ("opticFunctionalTest" , "master" , "id" ));
18271827 ModifyPlan plan4 = p .fromView ("opticFunctionalTest" , "detail" )
1828- .orderBy (p .col ( "id" ));
1828+ .orderBy (p .schemaCol ( "opticFunctionalTest" , "detail" , "id" ));
18291829 // intersect with different number of columns
18301830 JsonNode explainNodeInv = null ;
18311831 try {
18321832 ModifyPlan outputInv = plan3 .select (p .schemaCol ("opticFunctionalTest" , "master" , "id" ))
18331833 .intersect (
18341834 plan4 .select (
1835- p .col ( "id" ),
1835+ p .schemaCol ( "opticFunctionalTest" , "detail" , "id" ),
18361836 p .col ("masterId" )
18371837 )
18381838 )
1839- .orderBy (p .asc (p .col ( "id" )));
1839+ .orderBy (p .asc (p .schemaCol ( "opticFunctionalTest" , "detail" , "id" )));
18401840
18411841 explainNodeInv = rowMgr .explain (outputInv , new JacksonHandle ()).get ();
18421842 assertEquals ("Explain of Invalid plan incorrect" , explainNodeInv .path ("node" ).asText (), "plan" );
@@ -3160,8 +3160,8 @@ public void testColInfoWithSysCols() throws KeyManagementException, NoSuchAlgori
31603160 assertTrue ("Element 3 DetailName value incorrect" , colInfo .contains ("{\" schema\" :\" \" , \" view\" :\" \" , \" column\" :\" DetailName\" , \" type\" :\" string\" , \" nullable\" :false}" ));
31613161 assertTrue ("Element 4 detail-double value incorrect" , colInfo .contains ("{\" schema\" :\" opticFunctionalTest\" , \" view\" :\" detail\" , \" column\" :\" amount\" , \" type\" :\" double\" , \" nullable\" :false}" ));
31623162 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}" ));
31653165 }
31663166
31673167 @ AfterClass
0 commit comments