See here https://github.com/metamx/druid/pull/512/files#diff-33d523f826a29726a0051e50f5eb25d6R57