KFAA31268-E
There is an error in the specification method of aa....aa in the COPY statement. (reason = bb....bb) (M+J+O)
COPY文のaa....aaの指定方法に誤りがあります。 <SQLSTATE:427MB>
- aa....aa:誤りがある個所
-
-
output location string:出力先位置文字列
-
COPY option:COPYオプション
-
delimiter character specification:区切り文字指定
-
header specification:ヘッダー指定
-
output data compression format specification:出力データ圧縮形式指定
-
the column derived from the result of the query expression body:問合せ式本体の結果から導出される列
-
- bb....bb:エラーの原因
-
-
's3://' or 'file://' is not specified at the beginning of the string
文字列の先頭にs3://またはfile://が指定されていません。
データの出力先がオブジェクトストレージの場合は,出力先位置文字列の先頭にs3://を指定する必要があります。
データの出力先がファイルストレージの場合は,出力先位置文字列の先頭にfile://を指定する必要があります。
-
the specification cannot be specified when the output data format is CSV
出力データ形式がCSV形式の場合は指定できません。
-
the specification cannot be specified when the output data format is not CSV
出力データ形式がCSV形式以外の場合は指定できません。
-
the data type of the derived column is invalid
導出列のデータ型が不正です。
-
a foreign server cannot be specified when the output location string is specified in FILE URI format (when the output destination of the file is file storage)
出力先位置文字列をFILE URI形式で指定している場合(データの出力先がファイルストレージの場合),外部サーバは指定できません。
-
a foreign server cannot be omitted when the output location string is specified in S3 URI format (when the output destination of the file is object storage)
出力先位置文字列をS3 URI形式で指定している場合(データの出力先がオブジェクトストレージの場合),外部サーバを指定する必要があります。
-
- (S)
-
このSQL文を無視します。またはこのトランザクションを無効にします。
- 〔対策〕
-
SQL文を修正してください。
なお,bb....bbがthe data type of the derived column is invalidの場合は,COPY文の問合せ式本体の結果から導出される列が,次のどれかのデータ型に該当しています。そのため,COPY文がエラーになりました。
-
出力データ形式がPARQUET形式の場合
-
TIME(0)
-
TIME(12)
-
TIMESTAMP(0)※
-
TIMESTAMP(12)※
-
要素データ型に上記のどれかのデータ型を指定したARRAY型,またはフィールドデータ型に上記のどれかのデータ型を指定したSTRUCT型
-
-
出力データ形式がCSV形式の場合
-
TIME(12)
-
TIMESTAMP(12)※
-
UUID
-
ARRAY
-
STRUCT
-
COPY文の問合せ式本体の結果から導出される列が,上記以外のデータ型になるようにCOPY文の問合せ式本体を修正してください。
- 注※
-
TIMESTAMP WITHOUT TIME ZONE型とTIMESTAMP WITH TIME ZONE型の両方とも該当します。
-