Try deleting the quotes and use full path if possible
spark.sql("ALTER TABLE db.catalog.SAMPLE CLUSTER BY (CLUSTER_TYPE) ");