I filed: https://issues.apache.org/jira/browse/ARROW-6990 https://issues.apache.org/jira/browse/ARROW-6989
On Thu, Oct 24, 2019 at 10:02 PM Micah Kornfield <[email protected]> wrote: > Hi Dima, > Could you provide a minimal code sample for how you generated the error > (the example below is a good one)? > > It sounds like it would be a good feature anyways to be able to cast > between the decimals like this. Could you open a JIRA for this ( > https://issues.apache.org/jira > <https://issues.apache.org/jira/secure/Dashboard.jspa>) > > Thanks, > Micah > > On Thu, Oct 24, 2019 at 5:47 AM Dima Fomin <[email protected]> wrote: > >> Hello! >> First of all thank you very much for your efforts on Apache Arrow! This >> looks very useful and prominent tech to be able use it in self-BI area. >> >> I faced such issues - get Subj Error >> >> ArrowNotImplementedError: No cast implemented from decimal(2,2) to >> decimal(12,2) >> >> when trying to *pyarrow.Table.from_batches* array of values defined in >> schema as *pyarrow.decimal128(12,2)*. >> >> Which values are in fact column of >> *sqlAlchemy.sql.sqltypes.DECIMAL()="DECIMAL(precision=12,scale=2)"* >> values, which I map in schema like this *pyarrow.decimal128(12,2)*. >> >> What could be a reason of issue? >> Could it be that somehow declared decimal type of data is reduced to >> minimum value which met in data? :/ >> >> With best regards, >> Dima Fomin >> >
