Issue solved, sorry for noise - is_valid was false for 2nd value. BR.
Jacek wt., 11 lut 2020 o 21:43 Jacek Pliszka <jacek.plis...@gmail.com> napisaĆ(a): > Hi! > > I am an arrow newbie trying to implement cast from Decimal128 to Int64 and > I need some help. > > In unit test I am passing > std::vector<Decimal128> v > to > CheckCase<Decimal128Type, Decimal128, Int64Type, int64_t>(decimal(38, 10), > v, is_valid, int64(), e, > options); > > But when I try to read it in > CastFunctor > with > auto ptr = input.GetValues<in_type>(1) where in_type is Decimal128 > > then ptr[0] shows correctly v[0] > but ptr[1] shows 0 instead of v[1] = 30 > > What am I doing wrong? > > Tasks seems simple enough for me to finish once I solve this and find > scale proper scale information. > > Thanks for any help, > > Jacek > > > >