Commit c1f9cff
authored
Implement isPrimaryKey check, fix and refactor check tests (#250)
* Implement isPrimaryKey check.
* Fix and refactor checks tests.
* Check isPrimaryKey: use optional hint argument.
* Check tests: use List[str] instead of list[str].
* Check tests: fix isUnique check tests.
* Check tests: fix test_fail_hasMax test to use self.hasMax.
* Check tests: add case with hint into test_fail_isUnique.
* Check tests: update run_check return type to List[Row].
* Check isPrimaryKey: add comment abound columns Scala type conversion.1 parent e210023 commit c1f9cff
3 files changed
Lines changed: 473 additions & 704 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
246 | | - | |
247 | | - | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
248 | 250 | | |
249 | | - | |
250 | 251 | | |
251 | 252 | | |
| 253 | + | |
| 254 | + | |
252 | 255 | | |
253 | | - | |
254 | | - | |
| 256 | + | |
| 257 | + | |
255 | 258 | | |
256 | 259 | | |
257 | 260 | | |
| |||
0 commit comments