Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
  • Blog
  • Pricing
  • Documentation
Yandex project
© 2025 Yandex.Cloud LLC
Yandex Query
    • Managing connections
    • Managing bindings
    • Uploading a data schema
    • Managing queries
    • Connecting using an IDE
  • Access management
  • Pricing policy
  • Integration
  • Audit Trails events
  • FAQ

In this article:

  • Data schemas
  • Text format
  • JSON format
  • Data Transfer compatible JSON format
  1. Step-by-step guides
  2. Uploading a data schema

Uploading a data schema

Written by
Yandex Cloud
Updated at March 6, 2025
  • Data schemas
    • Text format
    • JSON format
    • Data Transfer compatible JSON format

To simplify repetitive actions related to data schema setup and data binding, you can prepare a file with data schemas and upload it. For this, follow these steps:

  1. In the management console, select the folder where you want to change a data binding.
  2. In the list of services, select Yandex Query.
  3. In the left-hand panel, select Bindings.
  4. In the line with the binding name, click and select Edit.
  5. Click Upload from file and select the data schema file.
  6. Click Modify.

Data schemasData schemas

We support multiple data schema formats:

  1. Text format
  2. JSON format
  3. Data Transfer compatible JSON format

Text formatText format

The textual data schema format is most close to the SQL data definition syntax and consists of the SCHEMA keyword and a list of fields with types. Existing data schemas can only be exported from Yandex Query in this format.

Here is an example of a data schema in text format:

SCHEMA=(
    billing_account_id String NOT NULL,
    billing_account_name String
    )

Where:

  • billing_account_id: Field name.
  • String: Field type.
  • NOT NULL: Flag indicating a required field in the source data.

JSON formatJSON format

JSON schema format is designed for importing data schemas from external systems. The JSON format consists of records defining fields, their types, and flags showing whether fields are required.

Here is an example of a data schema in JSON format:

[
    {
        "name": "billing_account_id",
        "type": "String",
        "required": true
    },
    {
        "name": "billing_account_name",
        "type": "String",
        "required": false
    }
]

Where:

  • billing_account_id: Field name.
  • String: Field type.
  • required: true: Flag indicating a required field in the source data.

Data Transfer compatible JSON formatData Transfer compatible JSON format

This format is intended for compatible description of data schemas across various systems. This JSON format consists of a set of records defining fields and their types, with all fields considered optional in the source data.

Here is an example of a data schema:

[
    {
        "name": "billing_account_id",
        "typeName": "String"
    },
    {
        "name": "billing_account_name",
        "typeName": "String"
    }
]

Where:

  • billing_account_id: Field name.
  • String: Field type.

To ensure compatibility between Yandex Query and Data Transfer, we recommend the following data types:

  • INT64
  • INT32
  • INT16
  • UINT64
  • UINT32
  • UINT16
  • DOUBLE
  • STRING
  • UTF8

Was the article helpful?

Previous
Managing bindings
Next
Managing queries
Yandex project
© 2025 Yandex.Cloud LLC