Commit f7af63f
committed
[SYSTEMDS-3818] Fix parsing of indexing operations (scalar datatype)
This patch fixes an edge case of print(X[1,]) where the indexing
is mistakenly created with scalar data type because the print accepts
scalar. However, later we introduce print(toString(X[1,])). We now
simply make the parsing more robust as indexing is never scalar
other than forced by internal rewrites.1 parent 615cd9a commit f7af63f
File tree
2 files changed
+4
-3
lines changed- src
- main/java/org/apache/sysds/parser
- test/scripts/functions/rewrite
2 files changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1686 | 1686 | | |
1687 | 1687 | | |
1688 | 1688 | | |
| 1689 | + | |
1689 | 1690 | | |
1690 | 1691 | | |
1691 | 1692 | | |
1692 | 1693 | | |
1693 | | - | |
| 1694 | + | |
| 1695 | + | |
1694 | 1696 | | |
1695 | 1697 | | |
1696 | 1698 | | |
| |||
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | | - | |
| 39 | + | |
41 | 40 | | |
42 | 41 | | |
43 | 42 | | |
| |||
0 commit comments