Skip to content

Conversation

@zclllyybb
Copy link
Contributor

master pr: apache/doris#39255

@HappenLee HappenLee merged commit a925249 into apache:master Aug 13, 2024
yiguolei pushed a commit to apache/doris that referenced this pull request Aug 13, 2024
…nts (#39255)

## Proposed changes

Issue Number: close #xxx

before:
crash or
```sql
mysql [test]>select random(1,array_size(split_by_string(fcst_emp,','))) from test_random;
+---------------------------------------------------------+
| random(1, array_size(split_by_string(`fcst_emp`, ','))) |
+---------------------------------------------------------+
|                                     7471044383762196303 |
+---------------------------------------------------------+
1 row in set (0.05 sec)
```

now:
both for nereids and legacy planner:
```sql
mysql [test]>select random(1,array_size(split_by_string(fcst_emp,','))) from test_random;
ERROR 1105 (HY000): errCode = 2, detailMessage = (10.16.10.8)[INVALID_ARGUMENT]The param of rand function must be literal
```

doc pr: apache/doris-website#992
wyxxxcat pushed a commit to wyxxxcat/doris that referenced this pull request Aug 14, 2024
…nts (apache#39255)

## Proposed changes

Issue Number: close #xxx

before:
crash or
```sql
mysql [test]>select random(1,array_size(split_by_string(fcst_emp,','))) from test_random;
+---------------------------------------------------------+
| random(1, array_size(split_by_string(`fcst_emp`, ','))) |
+---------------------------------------------------------+
|                                     7471044383762196303 |
+---------------------------------------------------------+
1 row in set (0.05 sec)
```

now:
both for nereids and legacy planner:
```sql
mysql [test]>select random(1,array_size(split_by_string(fcst_emp,','))) from test_random;
ERROR 1105 (HY000): errCode = 2, detailMessage = (10.16.10.8)[INVALID_ARGUMENT]The param of rand function must be literal
```

doc pr: apache/doris-website#992
dataroaring pushed a commit to apache/doris that referenced this pull request Aug 17, 2024
…nts (#39255)

## Proposed changes

Issue Number: close #xxx

before:
crash or
```sql
mysql [test]>select random(1,array_size(split_by_string(fcst_emp,','))) from test_random;
+---------------------------------------------------------+
| random(1, array_size(split_by_string(`fcst_emp`, ','))) |
+---------------------------------------------------------+
|                                     7471044383762196303 |
+---------------------------------------------------------+
1 row in set (0.05 sec)
```

now:
both for nereids and legacy planner:
```sql
mysql [test]>select random(1,array_size(split_by_string(fcst_emp,','))) from test_random;
ERROR 1105 (HY000): errCode = 2, detailMessage = (10.16.10.8)[INVALID_ARGUMENT]The param of rand function must be literal
```

doc pr: apache/doris-website#992
zclllyybb added a commit to zclllyybb/doris that referenced this pull request Aug 23, 2024
…nts (apache#39255)

## Proposed changes

Issue Number: close #xxx

before:
crash or
```sql
mysql [test]>select random(1,array_size(split_by_string(fcst_emp,','))) from test_random;
+---------------------------------------------------------+
| random(1, array_size(split_by_string(`fcst_emp`, ','))) |
+---------------------------------------------------------+
|                                     7471044383762196303 |
+---------------------------------------------------------+
1 row in set (0.05 sec)
```

now:
both for nereids and legacy planner:
```sql
mysql [test]>select random(1,array_size(split_by_string(fcst_emp,','))) from test_random;
ERROR 1105 (HY000): errCode = 2, detailMessage = (10.16.10.8)[INVALID_ARGUMENT]The param of rand function must be literal
```

doc pr: apache/doris-website#992
zclllyybb added a commit to zclllyybb/doris that referenced this pull request Aug 23, 2024
…nts (apache#39255)

## Proposed changes

Issue Number: close #xxx

before:
crash or
```sql
mysql [test]>select random(1,array_size(split_by_string(fcst_emp,','))) from test_random;
+---------------------------------------------------------+
| random(1, array_size(split_by_string(`fcst_emp`, ','))) |
+---------------------------------------------------------+
|                                     7471044383762196303 |
+---------------------------------------------------------+
1 row in set (0.05 sec)
```

now:
both for nereids and legacy planner:
```sql
mysql [test]>select random(1,array_size(split_by_string(fcst_emp,','))) from test_random;
ERROR 1105 (HY000): errCode = 2, detailMessage = (10.16.10.8)[INVALID_ARGUMENT]The param of rand function must be literal
```

doc pr: apache/doris-website#992
@zclllyybb zclllyybb deleted the random branch August 27, 2024 02:47
Gabriel39 pushed a commit to Gabriel39/doris-website that referenced this pull request Sep 23, 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.

2 participants