[
https://issues.apache.org/jira/browse/ASTERIXDB-3121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17702041#comment-17702041
]
ASF subversion and git services commented on ASTERIXDB-3121:
------------------------------------------------------------
Commit 1edc94dd592216f37eeabbf820a0bdd2cf02b15b in asterixdb's branch
refs/heads/master from Vijay Sarathy
[ https://gitbox.apache.org/repos/asf?p=asterixdb.git;h=1edc94dd59 ]
[ASTERIXDB-3120][ASTERIXDB-3121] CBO Analyze: improve error message.
- user model changes: no
- storage format changes: no
- interface changes: no
Details:
Improve error message if seed value is invalid.
Improve error message if sample value is invalid.
Change-Id: I599005f4f4814f719e422da4ff7d58c2253e5ed4
Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/17404
Integration-Tests: Jenkins <[email protected]>
Reviewed-by: Vijay Sarathy <[email protected]>
Reviewed-by: Ali Alsuliman <[email protected]>
Tested-by: Jenkins <[email protected]>
> CBO Analyze: Improve error message if sample value is invalid
> -------------------------------------------------------------
>
> Key: ASTERIXDB-3121
> URL: https://issues.apache.org/jira/browse/ASTERIXDB-3121
> Project: Apache AsterixDB
> Issue Type: Bug
> Reporter: Vijay Sarathy
> Assignee: Vijay Sarathy
> Priority: Major
> Fix For: 0.9.9
>
>
> To repro: RUN QUERY ANALYZE ANALYTICS COLLECTION airline WITH
> \{"sample":"large"} ;
>
>
> |2023-02-23 14:52:42 \| INFO \| MainProcess \| test_thread \|
> [tuq.run_cbq_query] RUN QUERY ANALYZE ANALYTICS COLLECTION airline WITH
> \{"sample":"large"}|
> |2023-02-23 14:52:44 \| ERROR \| MainProcess \| test_thread \|
> [on_prem_rest_client._http_request] POST
> http://172.23.104.91:8095/analytics/service body: \{"statement": "ANALYZE
> ANALYTICS COLLECTION airline WITH {\"sample\":\"large\"};", "pretty": true,
> "client_context_id": null, "mode": "immediate"} headers: \{'Content-Type':
> 'application/json', 'Authorization': 'Basic
> QWRtaW5pc3RyYXRvcjpwYXNzd29yZA==', 'Accept': '*/*'} error: 400 reason:
> unknown b'\{\n\t"requestID":
> "0e8bdf59-c4ef-4a3a-94ed-358fad2b3129",\n\t"clientContextID":
> "null",\n\t"errors": [{ \n\t\t"code": 24102,\t\t"msg": "Invalid format for
> property \'sample\'"\t} \n\t],\n\t"status": "fatal",\n\t"metrics":
> \{\n\t\t"elapsedTime": "2.129487733s",\n\t\t"executionTime":
> "2.126735789s",\n\t\t"resultCount": 0,\n\t\t"resultSize":
> 0,\n\t\t"processedObjects": 0,\n\t\t"errorCount": 1\n\t}\n}\n' auth:
> Administrator:password|
>
> I would expect a better error message with prescription e.g. valid values.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)