You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2022/10/11 04:54:29 UTC
[GitHub] [shardingsphere] ningzio commented on issue #21475: INLINE script cannot handle int64 id as expected
ningzio commented on issue #21475:
URL: https://github.com/apache/shardingsphere/issues/21475#issuecomment-1274087351
Hi @strongduanmu thanks for your reply.
this is main.groovy
```groovy
println((278935034474528769 & (1 << 4) - 1 << 18) >> 18);
println((278935034474528769 & 3932160) >> 18);
println((278935034474528769 & (1 << 8) - 1 << 10) >> 10);
println((278935034474528769 & 261120) >> 10);
```
output:
```
[Running] apache-groovy-binary-4.0.5/groovy-4.0.5/bin/groovy "/workspace/tempCodeRunnerFile.groovy"
1
1
0
0
```
this is expected result.
(Im not familiar with groovy, is this right?)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org