[
https://issues.apache.org/jira/browse/KYLIN-5980?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17905874#comment-17905874
]
Guoliang Sun edited comment on KYLIN-5980 at 12/16/24 2:52 AM:
---------------------------------------------------------------
Here is an example using the Curl command
*Request*
{code:java}
curl -X DELETE
'http://localhost:3000/kylin/api/internal_tables/truncate_internal_table?project=test&database=SSB&table=LINEORDER'
\
-H 'Accept: application/vnd.apache.kylin-v4-public+json' \
-H 'Accept-Language: cn' \
-H 'Authorization: Basic QURNSU46S1lMSU4='
{code}
*Response*
{code:java}
{
"code": "000",
"data": null,
"msg": ""
}{code}
was (Author: JIRAUSER298470):
Here is an example using the Curl command
curl -X DELETE
'http://localhost:3000/kylin/api/internal_tables/truncate_internal_table?project=test&database=SSB&table=LINEORDER'
\
-H 'Accept: application/vnd.apache.kylin-v4-public+json' \
-H 'Accept-Language: cn' \
-H 'Authorization: Basic QURNSU46S1lMSU4='
> The parameters table and database should be passed separately when using the
> clear data interface
> -------------------------------------------------------------------------------------------------
>
> Key: KYLIN-5980
> URL: https://issues.apache.org/jira/browse/KYLIN-5980
> Project: Kylin
> Issue Type: Bug
> Affects Versions: 5.0.0
> Reporter: Guoliang Sun
> Assignee: Guoliang Sun
> Priority: Major
>
> The parameters table and database should be passed separately when using the
> clear data interface.
> Needs to be consistent with other internal table interfaces, passed in
> separately
> Clear data through page operations, and then call the clear data interface of
> the underlying storage engine/format inside the Kylin interface.
> * -URL: /api/internal_tables/\{databases.table}/data?project=\{project}-
> * Method: Delete
> For details, please refer to the user manual page
> *Example*
> Deleting the internal table will not affect the model index data, but will
> clear the internal table data.
> * -URL: /api/internal_tables/\{databases.table}/?project=\{project}-
> * URL: /api/internal_tables/\{databases}/\{table}?project=\{project}
> * Method: Delete
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)