Skip to content

[branch-3.0](function) Support function assert_true (#39393)#41898

Merged
starocean999 merged 1 commit intoapache:branch-3.0from
zclllyybb:pick_assert_true_30
Oct 16, 2024
Merged

[branch-3.0](function) Support function assert_true (#39393)#41898
starocean999 merged 1 commit intoapache:branch-3.0from
zclllyybb:pick_assert_true_30

Conversation

@zclllyybb
Copy link
Contributor

pick #39393

Issue Number: close #xxx

```sql
mysql> select assert_true(1, "wrong");
+------------------------------------------+
| assert_true(cast(1 as BOOLEAN), 'wrong') |
+------------------------------------------+
|                                        1 |
+------------------------------------------+
1 row in set (0.12 sec)

mysql> select assert_true(1, nullable("wrong"));
ERROR 1105 (HY000): errCode = 2, detailMessage = assert_true only accept constant for 2nd argument
mysql> select assert_true(0, "wrong");
ERROR 1105 (HY000): errCode = 2, detailMessage = (10.16.10.8)[INVALID_ARGUMENT][E33] wrong
```

doc pr: apache/doris-website#1006
@doris-robot
Copy link

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR

Since 2024-03-18, the Document has been moved to doris-website.
See Doris Document.

@zclllyybb
Copy link
Contributor Author

run buildall

@starocean999 starocean999 merged commit 9ca5ff4 into apache:branch-3.0 Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants