Calcite-core-test-sql-xx.iq files show us the query sentences and the results, so where is the data from? enter image description here
Asked
Active
Viewed 18 times
1 Answers
0
A Quidem (.iq
) script generally starts with a !use
command like this:
!use scott
The connection name, in this "scott", becomes an argument to a call to Quidem.ConnectionFactory.connect(name, reference)
.
That connection is the source for the tables used in subsequent queries in that script. In Calcite, the code that maps "scott" to a particular connection is in CoreQuidemTest.java.

Julian Hyde
- 1,239
- 7
- 10
-
Thanks for your answer sincerely. I found it later, so If I could see your answer earlier, I wouldn 't go around the circle. – yan mo May 23 '23 at 14:29