Disable column by number
If you want to remove column number 5, you can do it like this:
D = FOREACH C GENERATE .. $4, $6 .. ;
Disable column by name
If you want to delete a column by name, this is not possible, only knowing the name of the column that you want to delete. However, this is possible if you know the column names immediately before and after this column. If you want to remove the column (s) between colBeforeMyCol and colAfterMyCol, you can do it like this:
aliasAfter = FOREACH aliasBefore GENERATE .. colBeforeMyCol, colAfterMyCol ..;
source share