[
https://issues.apache.org/jira/browse/CALCITE-6560?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17885110#comment-17885110
]
Julian Hyde commented on CALCITE-6560:
--------------------------------------
[~nobigo], With the latest PR (commit 6de2916818) I am seeing deadlocks during
initialization of {{interface RelDataTypeSystem}} and {{{}class
RelDataTypeSystemImpl{}}}. The command {{./gradlew :core:test --tests
RelDataTypeSystemTest}} hangs about 90% of the time for me. Here's part of the
thread dump running under JDK 21.
{noformat}
"ForkJoinPool-1-worker-7" #30 [1161671] daemon prio=5 os_prio=0 cpu=8.26ms
elapsed=19.26s tid=0x00007d08b0000ff0 nid=1161671 waiting on condition
[0x00007d098b3fd000]
java.lang.Thread.State: RUNNABLE
at
org.apache.calcite.sql.type.SqlTypeFixture.<init>(SqlTypeFixture.java:28)
- waiting on the Class initialization monitor for
org.apache.calcite.rel.type.RelDataTypeSystem
at
org.apache.calcite.sql.type.RelDataTypeSystemTest$Fixture.<init>(RelDataTypeSystemTest.java:143)
at
org.apache.calcite.sql.type.RelDataTypeSystemTest.testCustomDecimalModReturnTypeInference(RelDataTypeSystemTest.java:310)
at
java.lang.invoke.LambdaForm$DMH/0x00007d0934160400.invokeVirtual(java.base@21/LambdaForm$DMH)
...
at
java.util.concurrent.ForkJoinWorkerThread.run(java.base@21/ForkJoinWorkerThread.java:188)"ForkJoinPool-1-worker-8"
#31 [1161672] daemon prio=5 os_prio=0 cpu=7.33ms elapsed=19.26s
tid=0x00007d08a8000ff0 nid=1161672 waiting on condition [0x00007d098b2fc000]
java.lang.Thread.State: RUNNABLE
at
org.apache.calcite.rel.type.RelDataTypeSystem.<clinit>(RelDataTypeSystem.java:38)
- waiting on the Class initialization monitor for
org.apache.calcite.rel.type.RelDataTypeSystemImpl
at
org.apache.calcite.sql.type.SqlTypeFixture.<init>(SqlTypeFixture.java:28)
at
org.apache.calcite.sql.type.RelDataTypeSystemTest$Fixture.<init>(RelDataTypeSystemTest.java:143)
at
org.apache.calcite.sql.type.RelDataTypeSystemTest.testDecimalModReturnTypeInference(RelDataTypeSystemTest.java:229)
... {noformat}
> Add supportsNegativeScale in RelDataTypeSystem
> -----------------------------------------------
>
> Key: CALCITE-6560
> URL: https://issues.apache.org/jira/browse/CALCITE-6560
> Project: Calcite
> Issue Type: Improvement
> Reporter: xiong duan
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.38.0
>
>
> [https://www.postgresql.org/docs/current/datatype-numeric.html]
> According to the document, a numeric column with a negative scale can be
> declared beginning in PostgreSQL 15. This PR will add some tests to cover
> supportsNegativeScale is false and will throw an exception if set
> supportsNegativeScale is true.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)