private boolean typeIsNullable ( JSONObject field ) throws GPUdbException { if ( field . get ( "type" ) instanceof JSONArray ) { JSONArray columnTypes = field . getJSONArray ( "type" ) ; for ( int j = 0 ; j < columnTypes . length ( ) ; j ++ ) { String ct = ( String ) columnTypes . get ( j ) ; if ( ct . equals ( "null" ) ) { return true ; } } } return false ; }
the Avro type field )