tencent cloud

Feedback

Schema Management

Last updated: 2022-05-18 11:50:51

    Overview

    DataHub offers the schema management feature. You can associate a created schema to a specific data access task to verify the format of the accessed data according to the schema.

    Directions

    Creating Schema

    1. Log in to the CKafka console.
    2. Select Schema Management on the left sidebar, select the region, click Create Schema, and enter the schema name.
      • Schema Name: Enter the schema name. It can only contain letters, digits, underscores, or symbols ("-" and ".").
      • Description: Enter the optional schema description.
      • Field Configuration: Add up to 100 fields.
        • Field Name: Enter the field name.
        • Type: Eight types are supported, namely, BOOLEAN, INT8, INT16, INT32, INT64, FLOAT32, FLOAT64, and STRING.
        • allowNull: Verify whether this field exists in the upstream. The value "true" indicates if this field doesn't exist in the upstream, the default value field you specify here will be automatically added instead.
          Note:

          Detailed description of whether the field configuration is NULL:

          • true

            • The upstream field exists and meets the requirements: Write.
            • The upstream field exists but doesn't meet the requirements: Do not write.
            • The upstream field doesn't exist: Write the default value.
          • false

            • The upstream field exists and meets the requirements: Write.
            • The upstream field exists but doesn't meet the requirements: Do not write.
            • The upstream field doesn't exist: Do not write.
        • Description: Enter the field description.
    3. Click OK.

    Deleting schema

    On the schema management page, click Delete in the Operation column and confirm the deletion in the pop-up window.

    Associating task

    After a schema is created, it can be associated with a specific data access task.

    1. On the schema management list page, click the ID of the target schema to enter its basic information page.
    2. Select the Associated Task tab at the top of the page, click Associate Task, and select the specific data access task.

    Disassociating task

    1. On the schema management list page, click the ID of the target schema to enter its basic information page.
    2. Select the Associated Task tab at the top of the page and click Disassociate in the Operation column of the target associated task.
    Note:

    Once disassociated, the schema will no longer be used to verify data format.

    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support