Commit 5de1c92
authored
Add support for annotations for Columns and ColSpecs (#1190)
* Add support for stereotypes and tagged values to Columns/ColSpecs
* fix: Fix setting stereotypesCoreInstance
* feat: Add colSpec function that takes Column param
* feat: Add new function signature to FunctionExpressionProcessor
* feat: Add TestColSpecAnnotations
* feat: Call new colSpec method if column has stereotypes/tagged values
* feat: Add tests for col spec
* feat: Add test to TestColSpecAnnotations
* feat: Try not overloading the colSpec function
* refactor: Make separate generateStereotypesBuilder and generateTaggedValuesBuilder functions
* feat: Update TestColSpecAnnotations
* fix: Fix processing tagged values in _Column
* feat: Add tests to TestColSpecAnnotations
* feat: Add overloaded getColumnInstance function that takes string type
* feat: Remove extends AnnotatedElement from ColSpec class
* fix: Remove unused import
* feat: Feedback from comments
* refactor: Update to getUserPathForPackageableElement
* fix: Resolve import stubs in _RelationType
* feat: Update getColumnInstance functions to handle resolved import stubs
* fix: Fix paths in GenericTypeSerializationInCode
* fix: Set assumeNoImportStubs flag to true
* fix: Uncomment tests
* fix: Update GenericType functions to pass stereotypes and tagged values
* fix: Propagate stereotypes/tagged values wherever _Column.getColumnInstance is used
* fix: Ensure correct passing of _stereotypes()/_stereotypesCoreInstance()
* refactor: Re-add overloaded function calls
* refactor: Add docs to getColumnInstance
* fix: Add missing package
* fix: Change to using _stereotypes() in GenericType
* fix: Remove stereotypes/taggeed value passing in TDSExtension
* refactor: Make separate function names for compiled vs. interpreted
* Revert "refactor: Make separate function names for compiled vs. interpreted"
This reverts commit 05b4cae.
* refactor: Remove assumeNoImportStubs param
* fix: Merge stereotypes/tagged values in merge function
* fix: Ensure only distinct stereotypes/tagged values
* fix: Use _stereotypes instead of _stereotypesCoreInstance in merge function1 parent f3c8d7a commit 5de1c92
File tree
18 files changed
+534
-14
lines changed- legend-pure-core/legend-pure-m3-core/src
- main
- antlr4/org/finos/legend/pure/m3/serialization/grammar/m3parser/antlr/core
- java/org/finos/legend/pure/m3
- compiler/postprocessing/processor/valuespecification
- serialization/grammar/m3parser/antlr
- test/java/org/finos/legend/pure/m3/tests/elements/relation
- legend-pure-dsl/legend-pure-dsl-mapping/legend-pure-m2-dsl-mapping-grammar/src/main/java/org/finos/legend/pure/m2/dsl/mapping/serialization/grammar/v1/processor
- legend-pure-runtime
- legend-pure-runtime-java-engine-compiled/src
- main/java/org/finos/legend/pure/runtime/java/compiled
- generation
- test/java/org/finos/legend/pure/runtime/java/compiled/pct/features
- legend-pure-runtime-java-engine-interpreted/src
- main/java/org/finos/legend/pure/runtime/java/interpreted/natives/essentials/meta/type/relation
- test/java/org/finos/legend/pure/runtime/java/interpreted/pct/features
- legend-pure-store/legend-pure-store-relational/legend-pure-m2-store-relational-grammar/src
- main
- antlr4/org/finos/legend/pure/m2/relational/serialization/grammar/v1/antlr
- java/org/finos/legend/pure/m2/relational/serialization/grammar/v1
- antlr
- test/java/org/finos/legend/pure/m2/relational/incremental
18 files changed
+534
-14
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
315 | 315 | | |
316 | 316 | | |
317 | 317 | | |
318 | | - | |
| 318 | + | |
319 | 319 | | |
320 | 320 | | |
321 | 321 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
407 | 407 | | |
408 | 408 | | |
409 | 409 | | |
410 | | - | |
| 410 | + | |
411 | 411 | | |
412 | 412 | | |
413 | 413 | | |
| |||
481 | 481 | | |
482 | 482 | | |
483 | 483 | | |
484 | | - | |
| 484 | + | |
485 | 485 | | |
486 | 486 | | |
487 | 487 | | |
| |||
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
| 156 | + | |
| 157 | + | |
156 | 158 | | |
157 | 159 | | |
158 | 160 | | |
| |||
283 | 285 | | |
284 | 286 | | |
285 | 287 | | |
286 | | - | |
| 288 | + | |
287 | 289 | | |
288 | 290 | | |
289 | 291 | | |
| |||
1313 | 1315 | | |
1314 | 1316 | | |
1315 | 1317 | | |
| 1318 | + | |
| 1319 | + | |
1316 | 1320 | | |
1317 | 1321 | | |
1318 | 1322 | | |
| |||
Lines changed: 42 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| |||
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
37 | 49 | | |
38 | 50 | | |
39 | 51 | | |
| |||
49 | 61 | | |
50 | 62 | | |
51 | 63 | | |
52 | | - | |
| 64 | + | |
53 | 65 | | |
54 | 66 | | |
55 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
56 | 80 | | |
57 | 81 | | |
58 | 82 | | |
| |||
63 | 87 | | |
64 | 88 | | |
65 | 89 | | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
66 | 105 | | |
67 | 106 | | |
68 | 107 | | |
| |||
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
| |||
225 | 227 | | |
226 | 228 | | |
227 | 229 | | |
228 | | - | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
229 | 237 | | |
230 | 238 | | |
231 | 239 | | |
| |||
256 | 264 | | |
257 | 265 | | |
258 | 266 | | |
| 267 | + | |
| 268 | + | |
259 | 269 | | |
260 | 270 | | |
261 | 271 | | |
| |||
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| 80 | + | |
80 | 81 | | |
81 | 82 | | |
82 | 83 | | |
| |||
950 | 951 | | |
951 | 952 | | |
952 | 953 | | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
953 | 959 | | |
954 | 960 | | |
955 | 961 | | |
| |||
972 | 978 | | |
973 | 979 | | |
974 | 980 | | |
975 | | - | |
| 981 | + | |
976 | 982 | | |
977 | 983 | | |
978 | 984 | | |
| |||
0 commit comments