Make SparkDDLTask#alterTable() more general.

+ Only create a SparkDDLTask for cached table ops.