Debian Codegraph @

tests/test_data/tstat.rd

raw
1 <resource schema="test">
2 <meta name="description">A data descriptor for tests relating to
3 obtaining column statistics.</meta>
4
5 <table id="DoNotMixCase" onDisk="True">
6 <column name="plain_float">
7 <values min="-1"/>
8 </column>
9 <column name="quoted/gg-/l" type="bigint">
10 <values nullLiteral="-1"/>
11 </column>
12 <column name="dontlook">
13 <property name="statistics">no</property>
14 <values min="-3.6"/>
15 </column>
16 <column name="allnull"/>
17 <column name="hurgel" type="text">
18 <property name="statistics">enumerate</property>
19 <values>
20 <option>nma0</option>
21 <option>nma1</option>
22 </values>
23 </column>
24 <column name="calib" type="smallint">
25 <values>
26 <option title="raw/custom">0</option>
27 <option title="raw/standard format">1</option>
28 <option title="calibrated">2</option>
29 <option title="derived">3</option>
30 </values>
31 </column>
32 </table>
33
34 <data id="import">
35 <sources><item>5</item></sources>
36 <embeddedGrammar>
37 <iterator>
38 <code>
39 for i in range(1, int(self.sourceToken)):
40 yield {
41 "plain_float": 1./i,
42 "tomunge": i**2,
43 "dontlook": 4,
44 "allnull": None,
45 "hurgel": f"nma{i%2}",
46 "calib": i%4,
47 }
48 </code>
49 </iterator>
50 </embeddedGrammar>
51 <make table="DoNotMixCase">
52 <rowmaker idmaps="*">
53 <map key="quoted/gg-/l">@tomunge</map>
54 </rowmaker>
55 </make>
56 </data>
57 </resource>