Skip to content

Upgrade RelationalAI

The RAI Native App receives automatic updates every week. Reasoners provisioned after an update are created using the latest version. Existing reasoners created prior to the update must be upgraded to the latest version to access new features and improvements.

By default, outdated reasoners are automatically upgraded every Monday at 10:00 AM UTC.

While a reasoner is upgrading, in-progress transactions are cancelled and queries from RAI Python models using the reasoner will fail. Upgraded reasoners are available for use as soon as their upgrade is complete. See Get Reasoner Details for information on viewing a reasoner’s status.

You can manage reasoner upgrades in one of two ways:

Check which app version is running and whether your reasoners have finished upgrading to it. Compare the app version with the release notes to see what changed.

Call the app.get_release() function to get the version of the RAI Native App that’s running in your account:

SELECT relationalai.app.get_release();

Query the app.upgrade_reasoners_status view to see the most recent reasoner upgrade attempt:

SELECT * FROM relationalai.app.upgrade_reasoners_status;
  • NA_VERSION is the app version that the upgrade attempt targets.
  • STATE shows DONE when the attempt is complete and NotStarted if no attempt has started.
  • REASONER_COUNT is the number of reasoners included in the attempt.

Outdated reasoners upgrade automatically on a weekly schedule. View the current schedule, then change it if the default time conflicts with your workloads.

View the current reasoner upgrade schedule

Section titled “View the current reasoner upgrade schedule”

To view the current reasoner upgrade schedule, call the app.upgrade_schedule_status() procedure:

-- View the current upgrade schedule and task status.
CALL relationalai.app.upgrade_schedule_status();

To set or alter the reasoner upgrade schedule, call the app.schedule_upgrade() procedure with the day name and time in UTC:

-- Schedule upgrades for Wednesdays at 15:00 UTC
CALL relationalai.app.schedule_upgrade('WEDNESDAY', '15:00');
Output
+-------------------------------------+
| Upgrade task scheduled successfully |
+-------------------------------------+

RAI Native App updates are mandatory. However, you can disable automatic reasoner upgrades and manually upgrade reasoners at your convenience.

  1. Disable automatic reasoner upgrades

    To disable automatic reasoner upgrades, call the app.unschedule_upgrade() procedure:

    -- Disable automatic upgrades.
    CALL relationalai.app.unschedule_upgrade();
    Output
    +-------------------------------------+
    | Upgrade task cancelled successfully |
    +-------------------------------------+

    To re-enable automatic reasoner upgrades, set a new upgrade schedule.

  2. Upgrade reasoners

    To start the reasoner upgrade process, call the app.upgrade_reasoners() procedure:

    -- Start the upgrade process.
    CALL relationalai.app.upgrade_reasoners();
    Output
    +--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
    | Upgrade started. Monitor the reasoner upgrade status using the app.upgrade_reasoners_status view to verify that all reasoners have been upgraded. select * from relationalai.app.upgrade_reasoners_status; |
    +--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

    While a reasoner is upgrading, in-progress transactions are cancelled and queries from RAI Python models using the reasoner will fail. Upgraded reasoners are available for use as soon as their upgrade is complete. See Get Reasoner Details for information on viewing a reasoner’s status.

  3. Verify reasoners have finished upgrading

    The status of the reasoner upgrade can be viewed in the app.upgrade_reasoners_status view:

    SELECT * FROM relationalai.app.upgrade_reasoners_status;
    Output
    +-------------------------+---------+-------+----------------+-------------------------------+-------------------------------+
    | NA_VERSION | ATTEMPT | STATE | REASONER_COUNT | STARTED_AT | LAST_UPDATE |
    |-------------------------+---------+-------+----------------+-------------------------------+-------------------------------|
    | 2026.02.27-e829e39d | 1 | DONE | 9 | 2026-02-27 08:11:32.490 -0700 | 2026-02-27 08:17:45.108 -0700 |
    +-------------------------+---------+-------+----------------+-------------------------------+-------------------------------+

    The upgrade is complete once the STATE column shows DONE.

After the upgrade finishes, you can check your app and reasoner versions at any time.