'bigint' is a long, not a Java BigInteger.

On Sun, Jun 28, 2020 at 5:52 AM Anwar AliKhan <anwaralikhan...@gmail.com> wrote:
>
> I wish to draw your attention for your consideration to  this  approach  
> where the BigInt data type maps to Long without drawing an error.
>
> https://stackoverflow.com/questions/31011797/bug-in-spring-data-jpa-spring-data-returns-listbiginteger-instead-of-listlon
>
> "This is a issue with Spring data JPA. If in DB the datatype is defined as 
> BigInteger and in JPA query we tries to fetch as Long then it will not give 
> any error , but it set value as BigInteger in Long datatype."
>
>
> The use of spark.range(10).map(_.toLong).reduce(_+_)
>
> means extra processing while iterating through each element by map method 
> making ready a  new array  for reduce function.  I feel the extra processing  
> should be avoided.
>

---------------------------------------------------------------------
To unsubscribe e-mail: user-unsubscr...@spark.apache.org

Reply via email to