databricksではデータ型を変える際にテーブルを書き換えることで可能
https://docs.databricks.com/ja/delta/update-schema.html#explicitly-update-schema-to-change-column-type-or-name
対象テーブルA,対象テーブルBにて同じカラムを持っている場合の例
col_change_table =["<対象テーブルA>","<対象テーブルA>"]
from pyspark.sql.functions import col
for table in col_change_table:
(spark.read.table(table)
.withColumn("<column名>", col("<column名>").cast("<変換先のデータ型>"))
.write
.mode("overwrite")
.option("overwriteSchema", "true")
.saveAsTable(table)
)