OceanBase
English日本語简体中文
Docs Home
Products
Integrations
Release Notes

Databases

OceanBase DatabaseOceanBase AI DatabaseOceanBase Cloud OceanSeekOceanBase Best Practices

Tools

OceanBase Cloud PlatformOceanBase Migration ServiceOceanBase Developer CenterOceanBase Migration AssessmentOceanBase Admin ToolOceanBase Loader and DumperOceanBase DeployerKubernetes operator for OceanBaseOceanBase Diagnostic Tool OceanBase Binlog ServiceOceanBase DataPilotOceanBase OAgent

Connectors and Middleware

OceanBase Database Proxy OceanBase Connector/C OceanBase Connector/J OceanBase Connector/ODBC OceanBase Connector/NETOceanBase Command-Line Client

Databases

OceanBase DatabaseOceanBase AI DatabaseOceanBase Cloud OceanSeekOceanBase Best Practices

Connectors and Middleware

OceanBase Database Proxy OceanBase Connector/C OceanBase Connector/J OceanBase Connector/ODBC OceanBase Connector/NETOceanBase Command-Line Client

Tools

OceanBase Cloud PlatformOceanBase Migration ServiceOceanBase Developer CenterOceanBase Migration AssessmentOceanBase Admin ToolOceanBase Loader and DumperOceanBase DeployerKubernetes operator for OceanBaseOceanBase Diagnostic Tool OceanBase Binlog ServiceOceanBase DataPilotOceanBase OAgent
OceanBase DatabaseOceanBase Cloud ToolsConnectors and MiddlewareLifecycle Support Policy

OceanBase DataPilot

V0.35.0
  • Learn about DataPilot
    • Learn about OceanBase DataPilot
    • Feature overview
    • Core features
    • Use cases
    • Product specifications and limitations
  • Get started
    • Quick start with core features
    • Create an Agent
  • Manage workspaces
    • Workspace overview
    • Analyze data sources and access
    • Model gateways and settings
    • Manage MCP tool services
  • Agent guide
    • Agent building and publishing
    • Knowledge asset management
    • Semantic Center
    • Query plans
    • Spreadsheet filling
    • Agent verification and testing
  • Analyst guide
    • Analysts using Agents and applications
    • Personal memory (My Memories)
  • Build data products
    • AI reports
    • Dashboard
    • Data screens
    • Smart tables
    • Workflow
    • Spatiotemporal analysis
    • Document classifier
    • Data Units notebook
  • System operations
    • System operations overview
    • Operations, audit, and task observability
    • Notifications and alerts
    • License management
    • O&M logs and diagnostics
  • Integration and extension
    • Embed SDK for integration
    • Open extension platform
  • Release notes
    • V0.35.0
    • V0.34.0
    • V0.33.1
    • V0.32.0
    • V0.31.0
    • V0.30.0
    • V0.29.0
    • V0.28.0
    • V0.27.0
    • V0.26.0
    • V0.25.0
    • V0.24.0
    • V0.23.0
    • V0.22.0
    • V0.21.0
    • V0.20.0
    • V0.19.0
    • V0.18.0
    • V0.17.0
    • V0.16.0
    • V0.15.0
    • V0.14.0
    • V0.13.0
    • V0.12.0
    • V0.11.0
    • V0.10.0
    • V0.9.0
    • V0.8.0
    • V0.7.0
    • V0.6.0
    • V0.5.0
    • V0.4.0

Download PDF

Document Feedback
  1. Documentation Center
  2. OceanBase DataPilot
  3. V0.35.0

Query plans

Last Updated:2026-11-20 12:50:52

Prerequisites
Feature access
Typical process
Procedure
Query solutions and sources
Running mode
Number of successfully collected questions
Source import
Verify the plan scope and publish
View runtime analysis
Configure the recall workflow
FAQ

Query plans organizes processes that have already formed query bases from historical successful Q&A sessions into reusable query solutions. When encountering similar questions that meet the criteria later on, the system provides matching suggestions based on these solutions or directly executes the verified read-only queries, eliminating the need to wait for SQL analysis and generation from scratch.

A solution retains the query logic, applicable questions, variable conditions, and result conventions. Requests that do not match a solution, are outside the verified scope, or require attachments, asset references, or interactive clarification will continue through the full Agent process. Data permissions and access policies also apply under the quick path.

Prerequisites

To manage Query plans, the following conditions must be met simultaneously:

  • The current account is the creator of the Agent or has management permissions for that Agent.
  • The organizational membership is valid.

The formation of a solution also depends on an available source: at least one round of successful Q&A, with complete records of successful read-only queries retained.

Feature access

  1. Switch to the target workspace and open the original Agent conversation for which you have management permissions.
  2. Click the lightning bolt icon Query plans in the top bar of the conversation page.
  3. Verify the Agent name next to the title to confirm the current Agent is correct.

Four tabs are provided at the top of the workspace.

region
Purpose
Query plan Manage published, draft, paused, and archived solutions; view solution details, source questions, scope of application, and version revisions.
Candidates and Generation Collect sources from historical sessions or batch testing records, process the candidate pool, and view generated record batches.
Run Analysis View recent execution records, perform single-question matching tests to identify the causes of hits, rollbacks, and time consumption
Recall workflow Orchestration matching process (node canvas), comparative evaluation of similar tasks, saving and applying recall strategies

Typical process

  1. Use an Agent with query permissions to complete the Q&A, ensuring the answer and successful read-only query record match the business question.
  2. Go to Query plans > Candidates & Generation > Import sources, select each item in turn for that round, and choose Extract conversations.
  3. Open the records generated this time, verify the analysis, release, and individual results. Solutions automatically released successfully enter the Published state; those not released are checked against the source and parameters for reasons, then verified or manually confirmed for release.
  4. First, select Matching Suggestions to test the coverage with a new question and confirm the default conditions and time frame.
  5. When ready to use directly, switch to Direct Execution, return to the same Agent conversation to ask the question, and check the actual result against the execution record.

Procedure

Query solutions and sources

Query solutions save reusable query logic, applicable questions, parameters, conditions, and result conventions. Statistically analyzing a type of order by month can form a monthly statistical solution that retains business filtering conditions.

A source is the real Q&A round on which the solution is based, including the original question, answer, and query records. The candidate pool stores sources pending processing; entering the candidate pool only means they have been collected and still require analysis and verification later.

The "Solution Reusability" section in the solution details lists the variable filtering fields, meanings of available fields, and the source question phrasing. Distinguishing between conditions from the original question and the default conditions and structural conditions of the benchmark query is necessary to determine whether a new question is still within the solution's scope. High similarity does not mean identical business meaning; when new tables or fields appear, or uncovered conditions arise, continue with regular Q&A, or add new sources.

Running mode

The running mode determines how published solutions participate in Q&A, and it can be switched in the top bar of the workspace.

Mode
Subsequent question lines
Off Released solutions are not included in the count.
Matching suggestions The published plan serves as a reference for the current query and is not automatically executed or used to replace it.
Execute Directly After a valid published plan is hit and validation passes, the read-only query is executed directly.

We recommend that you first use Match Suggestion to observe the adaptation effect. After confirming the coverage scope and condition criteria, switch to Direct Execution as needed.

Number of successfully collected questions

The Number of Successfully Collected Questions switch is provided in the gear Run Settings bar and is saved separately from the run mode. If not configured initially, it is turned off for both the run mode and collection. When enabled, qualified successful questions proceed to the subsequent processing flow and are automatically published through analysis and validation of the released plan. Failed and unpublished items in the generation records still require inspection.

Source import

Method
Description
upper limit
Batch by Session Enter keywords for the session title and date to filter. Select All on this page or in the filtered results. Set the scan concurrency (1–16, default 6). A maximum of 10,000 sessions per batch
Select One by One Open a session, filter rounds by keyword or qualification extraction criteria, and make cumulative selections across sessions. Total upper limit: 2,000
From batch testing Select the batch tests accessible to the current workspace and agent, and filter them by name, issue, or accuracy. Up to 2,000 records at a time

Extract complete successful read-only query records. Sources with duplicate candidates or existing plans are skipped and the reason is indicated.

Verify the plan scope and publish

Open a plan from Query Plans > Draft. First, read the reasons for not being published, then verify the following:

  • Source issues, answer content, reusable fields, question conditions, default conditions and structural conditions, result format.
  • Variable filter fields, available fields, and meanings in the plan reuse capability.
  • Condition sources, predicates, parameter placeholders, and business time zones in the condition parameter list.
  • Manual review and parameter settings. Text parameter allowed values are one per line; question template lines are one per line, up to 7, with each not exceeding 1,000 characters.

After confirmation, you can click Validate and Publish to submit it to the backend for review and publication, or click Manually Confirm and Publish to use the manually modified content, which also needs to pass the publication check and real read-only execution validation. When the execution validation passes before publication, the check time, duration, and row count are recorded in detail; when sampling is truncated, the number of checked rows is prompted.

View runtime analysis

Recent runs display recently saved records, up to 30 entries. After selecting, you can view the duration, matching, and validation information. Duration is displayed by stage. The boundaries between routing time, request time, and data query time are different and cannot be simply added.

Matching tests accept questions 1–1,000 characters long. Click Match to view the routing results, including the selected plan, hit or rollback reasons, compiled query, condition coverage, time range, and duration.

Note

Matching tests do not execute SQL; they only validate routing and plan constraints and cannot prove the correctness of real-time data results.

When model invocation is present, you can view the model, duration, token, and response status, as well as the prompt.

Configure the recall workflow

The recall workflow determines how to find candidates, select plans, and perform final validation.

Process orchestration

Start from an existing preset. Select a node to view its inputs, matching rules, output destinations, and parameters. Node types include text, vector, fusion, and model, each with its own inputs and parameters. The matching relationship shows the plan fields involved by the current node.

The process must retain the final independent SQL validation node. The new version retains a Plan node that directly connects to SQL validation. The number of process nodes must be between 2 and 12, the total timeout must be between 100 and 120,000 milliseconds, and at least one fusion node must have a weight greater than zero.

Same-question comparison and effectiveness

In Same-question Comparison, enter one question per line, up to 10 questions, with each not exceeding 1,000 characters. Use Evaluate Effective Configuration if no modifications are unsaved; use Compare Current and Draft if a draft exists.

The results display the hit rate, rollback rate, final application method, selected solution, reason, number of candidates, and time consumed. You can download the assessment result in JSON format. After confirmation, click Save and Apply. Wait for the save to complete, then verify the effective status and configuration revisions.

Notice

Only "Saving and Applying" changes the recall strategy. Assessment and same-question comparison do not execute SQL, publish solutions, or activate configurations.

FAQ

Why isn't the solution executed directly even though it has been published?

Check whether the execution mode is Direct Execution, the reasons for hits and rollbacks in the running analysis, and whether the question has been covered by an effective solution and passed resource, read-only, and permission checks. Requests involving attachments, referenced assets, interactive clarifications, explicitly specified or rule-required Skills have their own processing paths and are not guaranteed to follow the fast path.

Why are there no extractable rounds, or is the number of extracted solutions less than the number of rounds?

Extraction requires a complete record of successful read-only queries. Sources with duplicate candidates or existing solutions are skipped. Qualified sources may be reused, merged, or extended during generation, so the output solutions do not necessarily correspond one-to-one with the rounds.

Why are there still failures or unsaved results after a batch is marked as completed?

"Completed" only indicates the batch process is finished. Scan failures, generation failures, business validation failures, and unsaved results are recorded separately. Open the summary statistics and individual results to resolve the failure causes first, then handle incomplete sessions by revalidating or retrying.

Have the results that matched test hits been verified?

No. Match test and same-question comparison only verify routing and solution constraints; they do not execute the result SQL. Verification before publication and actual dialogue execution separately check the actual queries.

If the original session is unreadable, can it still be reprocessed?

Reprocessing requires the current operating account to be able to read the original source. If the source cannot be restored, establish a new source using accessible real questions, and do not use manual explanations to replace missing query evidence.

What should I do if the solution query has been executed but result saving or returning fails?

Retain the current session and failure prompt. First, verify the saved runtime and result records, then contact the administrator to check the result storage or returning link. The system distinguishes between "Executed" and "Returning Failed" and will not automatically repeat the same query; resending the entire question is not appropriate as the first step to restore the result.

Previous topic

Semantic Center
Last

Next topic

Spreadsheet filling
Next
on this page
Prerequisites
Feature access
Typical process
Procedure
Query solutions and sources
Running mode
Number of successfully collected questions
Source import
Verify the plan scope and publish
View runtime analysis
Configure the recall workflow
FAQ