1 Antwort
- Neueste
- Die meisten Stimmen
- Die meisten Kommentare
0
It would be best to open a support ticket so the files can be investigated. I have seen instances where decimal value was encoded differently than Redshift expectation, encoded as binary (STRING)
instead of fixed_len_byte_array(5) (DECIMAL(10,4))
. If this is the case then you can convert the string values to decimal with following Pythin code
import pyarrow as pa
new_col = pa.chunked_array(pa.Array.from_pandas(table.column('col1').to_pandas().astype(float)).cast(pa.decimal128(10, 4)))
table = table.set_column(position, 'col1', new_col)
Hope this helps!
beantwortet vor 2 Jahren
Relevanter Inhalt
- AWS OFFICIALAktualisiert vor einem Jahr
- AWS OFFICIALAktualisiert vor 7 Monaten
- AWS OFFICIALAktualisiert vor einem Jahr
- AWS OFFICIALAktualisiert vor 3 Jahren