原起:因为一些变动,本楼主需要修改大数据平台上面一张表的字段类型,上网随便搜搜,搜到这里看到可以用alter table
来修改现有的表的字段类型。但是在 Impala 上面执行的时候报错:
AnalysisException: Cannot change the type of a Kudu column using an ALTER TABLE CHANGE COLUMN statement: (DECIMAL(12,10) vs DECIMAL(38,25))
还以为又是我缺乏常识或者操作不对之类的。后来又上网搜了搜,搜到官方说明:https://kudu.apache.org/docs/schema_design.html#known-limitations,居然还真是不让改。
Non-alterable Column Types, Kudu does not allow the type of a column to be altered.
为撒会有这个限制呢?我在 ORACLE 数据库就是随便想改就改了,难道跟底层的那撒 HDFS 之类的原理有关吗?俺很好奇……