我想将数据从standardevents复制到standardeventstemp ..下面我正在做的步骤
COPY events.standardevents (uuid, data, name, time, tracker, type, userid) TO 'temp.csv';
truncate standardevents;
COPY event.standardeventstemp (uuid, data, name, time, tracker, type, userid) FROM 'temp.csv';
但我在第 3 步后遇到错误
错误请求:uuid 类型名称的字符串常量 (3a1ccec0-ef77-11e3-9e56-22000ae3163a) 无效
在第 0 列中止导入,之前插入的值仍然存在。
任何人都可以解释这个错误的原因,我该如何解决这个问题
uuid 的数据类型是 uuid 其余数据类型是 varchar
CREATE TABLE standardevents (
uuid uuid PRIMARY KEY,
data text,
name text,
time text,
tracker text,
type text,
userid text
) WITH
bloom_filter_fp_chance=0.010000 AND
caching='KEYS_ONLY' AND
comment='' AND
dclocal_read_repair_chance=0.000000 AND
gc_grace_seconds=864000 AND
read_repair_chance=0.100000 AND
replicate_on_write='true' AND
populate_io_cache_on_flush='false' AND
compaction={'class': 'SizeTieredCompactionStrategy'} AND
compression={'sstable_compression': 'SnappyCompressor'};