ReOrc docs
Get ReOrc
English
English
  • About ReOrc
  • Set up and deployment
    • Set up organization
    • Install ReOrc agent
  • Getting started
    • 1. Set up a connection
      • BigQuery setup
    • 2. Create a project
    • 3. Create data models
    • 4. Build models in console
    • 5. Set up a pipeline
  • Connections
    • Destinations
      • Google Service Account
    • Integrations
      • Slack
  • Data modeling
    • Overview
    • Sources
    • Models
      • Model schema
      • Model configurations
    • Jinja templating
      • Variables
      • Macros
    • Materialization
    • Data lineage
    • Data tests
      • Built-in generic tests
      • Custom generic tests
      • Singular tests
  • Semantic modeling
    • Overview
    • Data Modelling vs Semantic Layer
    • Cube
      • Custom Dimension
      • Custom Measure
        • Aggregation Function
        • SQL functions and operators
        • Calculating Period-over-Period Changes
      • Relationship
    • View
      • Primary Dimension
      • Add Shared Fields
    • Shared Fields
    • Integration
      • Guandata Integration
      • Looker Studio
  • Pipeline
    • Overview
    • Modeling pipeline
    • Advanced pipeline
    • Job
  • Health tracking
    • Pipeline health
    • Data quality
  • Data governance
    • Data protection
  • Asset management
    • Console
    • Metadata
    • Version history
    • Packages and dependencies
  • DATA SERVICE
    • Overview
    • Create & edit Data Service
    • Data preview & download
    • Data sharing API
    • Access control
  • AI-powered
    • Rein AI Copilot
  • Settings
    • Organization settings
    • Project settings
    • Profile settings
    • Roles and permissions
  • Platform Specific
    • Doris/SelectDB
Powered by GitBook
On this page
  • Create a Data Service
  • Define SQL query
  • Organize Data Services
  1. DATA SERVICE

Create & edit Data Service

PreviousOverviewNextData preview & download

Last updated 15 days ago

Only users with Manage/Edit permission can create & edit the Data Service.

Create a Data Service

To create a Data Service, follow these steps:

  1. In your ReOrc project, go to Data Service.

  2. Click on the + icon and select Create data service.

  3. Provide the name for your Data Service.

  4. Click Create.

Define SQL query

  1. Click Edit query to define/ edit SQL query of the Data Service.

  2. In the query editor, define connection for your Data Service.

  3. Input your SQL query.

When SQL contains field aliases, please add "AS" explicitly and the corresponding identifier for the different databases, and avoid SELECT *syntax

For example:

SELECT
    o.id AS order_id,
    c.name AS customer_name,
    o.order_total
FROM
    database_name.table_name o
JOIN
    database_name.table_name c ON o.customer = c.id
WHERE
    o.order_status = 'completed';
  1. Click Update > Save to confirm the changes.

  2. View the query output in the Data Preview tab.

Organize Data Services

To create a new folder, click on the action button of an existing folder and select Add sub-folder:

To move a Data Service into the new folder, click on the action button of the Data Service and select Move to. Then select the target folder from the list.