To rename a dimension/Column you need to re-index your data with new column names. You could also change the name in the output of a query using the “outputName” of a dimensionSpec (this is like “SELECT foo AS bar” in SQL), but this wouldn’t change what’s actually in the segment.
https://druid.apache.org/docs/latest/data-management/update.html#reindex