shihchengwei-lab commented on PR #60724:
URL: https://github.com/apache/spark/pull/60724#issuecomment-7058670635
I tested this query with `:a` set to `abc` followed by a newline and `def`,
and `:second` set to the string `not_int`:
```sql
SELECT :a, CAST(1 AS DECIMAL(:second))
```
`spark.sql` underlined the entire original query. I saw the arrow on the
wrong line only when I called the parser directly with the position mapping and
no query context. It reported `line 1, pos 29`, exactly where `:second` starts
in the original SQL, but drew the arrow on the expanded SQL:
```text
SELECT 'abc
-----------------------------^^^
def', CAST(1 AS DECIMAL('not_int'))
```
Could the error underline the full `:second` marker in the original SQL in
both cases?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]