METHOD_0 ( ) { java . lang . String sql = STRING_0 4 + ( ( ( ( ( ( ( ( ( ( ( STRING_0 2 + STRING_1 ) + STRING_0 ) + STRING_0 5 ) + STRING_0 3 ) + STRING_2 ) + STRING_3 ) + STRING_4 ) + STRING_5 ) + STRING_6 ) + STRING_7 ) + STRING_8 ) ; java . lang . String IDENT_0 = STRING_0 4 + ( ( ( ( ( ( ( ( ( ( ( STRING_0 2 + STRING_1 ) + STRING_0 0 ) + STRING_0 5 ) + STRING_0 3 ) + STRING_2 ) + STRING_3 ) + STRING_4 ) + STRING_9 ) + STRING_6 ) + STRING_7 ) + STRING_8 ) ; "<AssertPlaceHolder>" ; } METHOD_1 ( java . lang . String , java . lang . String ) { if ( ( IDENT_1 == null ) || ( IDENT_1 . equals ( "" ) ) ) { return "" ; } org . apache . calcite . sql . IDENT_2 node = org . apache . IDENT_3 . metadata . model . IDENT_4 . IDENT_5 . parse ( IDENT_1 ) ; org . apache . IDENT_3 . query . util . IDENT_6 . IDENT_7 IDENT_8 = new org . apache . IDENT_3 . query . util . IDENT_6 . METHOD_2 ( ) ; node . accept ( IDENT_8 ) ; java . util . List < org . apache . calcite . sql . IDENT_2 > IDENT_9 = IDENT_8 . METHOD_3 ( ) ; if ( IDENT_9 . isEmpty ( ) ) { return IDENT_1 ; } java . util . List < org . apache . IDENT_3 . common . util . IDENT_10 < java . lang . Integer , java . lang . Integer > > IDENT_11 = new java . util . ArrayList ( ) ; for ( org . apache . calcite . sql . IDENT_2 IDENT_12 : IDENT_9 ) { IDENT_11 . add ( org . apache . IDENT_3 . metadata . model . IDENT_4 . IDENT_5 . METHOD_4 ( IDENT_12 , IDENT_1 ) ) ; } java . util . Collections . METHOD_5 ( IDENT_11 , new java . util . IDENT_13 < org . apache . IDENT_3 . common . util . IDENT_10 < java . lang . Integer , java . lang . Integer > > ( ) { @ org . apache . IDENT_3 . query . util . Override public int compare ( org . apache . IDENT_3 . common . util . IDENT_10 < java . lang . Integer , java . lang . Integer > IDENT_14 , org . apache . IDENT_3 . common . util . IDENT_10 < java . lang . Integer , java . lang . Integer > IDENT_15 ) { int r = ( IDENT_15 . METHOD_6 ( ) ) - ( IDENT_14 . METHOD_6 ( ) ) ; return r == 0 ? ( IDENT_15 . METHOD_7 ( ) ) - ( IDENT_14 . METHOD_7 ( ) ) : r ; } } ) ; org . apache . commons . lang . text . IDENT_16 IDENT_17 = new org . apache . commons . lang . text . METHOD_8 ( IDENT_1 ) ; for ( org . apache . IDENT_3 . common . util . IDENT_10 < java . lang . Integer , java . lang . Integer > pos : IDENT_11 ) { java . lang . String IDENT_18 = ( schema + STRING_10 ) + ( IDENT_1 . substring ( pos . METHOD_6 ( ) , pos . METHOD_7 ( ) ) ) ; IDENT_17 . replace ( pos . METHOD_6 ( ) , pos . METHOD_7 ( ) , IDENT_18 ) ; } return IDENT_17 . toString ( ) ; }
org . junit . Assert . assertEquals ( IDENT_0 , org . apache . IDENT_3 . query . util . IDENT_6 . METHOD_1 ( sql , STRING_0 1 ) )