@@ -51,21 +51,20 @@ public class ParserJoinField {
5151 */
5252 public static List <FieldInfo > getRowTypeInfo (SqlNode sqlNode , JoinScope scope , boolean getAll ){
5353
54- if (sqlNode .getKind () != SqlKind .SELECT ){
55- throw new RuntimeException ("------not select node--------\n " + sqlNode .toString ());
56- }
57-
5854 List <FieldInfo > fieldInfoList = Lists .newArrayList ();
5955 if (getAll ){
6056 return getAllField (scope );
6157 }
6258
59+ if (sqlNode .getKind () != SqlKind .SELECT ){
60+ throw new RuntimeException ("------not select node--------\n " + sqlNode .toString ());
61+ }
62+
6363 SqlSelect sqlSelect = (SqlSelect )sqlNode ;
6464 SqlNodeList sqlNodeList = sqlSelect .getSelectList ();
6565 for (SqlNode fieldNode : sqlNodeList .getList ()){
6666 SqlIdentifier identifier = (SqlIdentifier )fieldNode ;
6767 if (!identifier .isStar ()) {
68- System .out .println (identifier );
6968 String tableName = identifier .getComponent (0 ).getSimple ();
7069 String fieldName = identifier .getComponent (1 ).getSimple ();
7170 TypeInformation <?> type = scope .getFieldType (tableName , fieldName );
@@ -76,7 +75,6 @@ public static List<FieldInfo> getRowTypeInfo(SqlNode sqlNode, JoinScope scope, b
7675 fieldInfoList .add (fieldInfo );
7776 } else {
7877 //处理
79- System .out .println ("----------" );
8078 int identifierSize = identifier .names .size ();
8179
8280 switch (identifierSize ) {
@@ -108,6 +106,7 @@ public static List<FieldInfo> getRowTypeInfo(SqlNode sqlNode, JoinScope scope, b
108106 return fieldInfoList ;
109107 }
110108
109+ //TODO 丢弃多余的PROCTIME
111110 private static List <FieldInfo > getAllField (JoinScope scope ){
112111 Iterator prefixId = scope .getChildren ().iterator ();
113112 List <FieldInfo > fieldInfoList = Lists .newArrayList ();
0 commit comments