I want to do schema migration with StarRocks, but it seems not support it well?

Abierto
#16,796 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
20/100
Tipo de issue
Nueva funcionalidad
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
sql
Área
databases

Línea de trabajo

No se han identificado archivos del repositorio, pruebas ni puntos de entrada. Empieza por reproducir los fallos de sincronización de esquemas de StarRocks reportados en las versiones 3.1, 3.3 y 3.4; después, define los objetos compatibles y el comportamiento de las diferencias de esquema para la sincronización y el despliegue entre entornos de StarRocks.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Is your feature request related to a problem?

I'm a StarRocks user.
I noticed that Bytebase has supported StarRocks since 2023.
But, I don't know whether Bytebase has good support for StarRocks.
And, I've seen more than ten issues are about StarRocks and Doris. Especially for PRs submitted by @rebelice @d-bytebase

I want to use Bytebase to do schema migration with StarRocks. includes:

  1. Syncing the schema from SR to Bytebase, such as dbs/tables, views, materialized views, users / roles / grants, external catalogs, row access policies, global variables, and generated columns.
  2. Being able to directly change the schemas in Bytebase, by providing a complete table schema or a ALTER TABLE statement. Then Bytebase should able to diff the schema if provided with a complete table schema and finally rollout the changes.
  3. I have a test env and a prod env, I want to do sync schema from the test env to the prod env, that Bytebase can diff the schema change between the test db and the prod db.
Current problems of testing
About syncing schema from SR
  1. It fails to sync schema from StarRocks for v3.3 and v3.4.
  2. It can sync schema from StarRocks for v3.1, but only with tables and views, other objects are not synced.
  3. About some properties of tables or views and other info which is different with MySQL, I don't know whether Bytebase stores them.
About editing schemas
  1. I want to edit table schema in Bytebase's web page, but it seems that Bytebase doesn't support adding columns to a SR table, -- it only allows updating the entire table schema.
  2. I also can't see the schema diff when making changes.
About sync schema between two databases
  1. I can't choose a SR's database as the source or target database to sync schema. But for MySQL or Postgres, I can.
  2. I have a Postgres upstream source, I want to sync the schema from Postgres to StarRocks, it seems that Bytebase doesn't support sync schema between different types of databases.
About output schema
  1. Can I output all the schemas, including tables, views, users, etc., in Bytebase about a database?
  2. How can I check what objects for SR are suppported?
Some questions about Bytebase
  1. Do we have a plan to improve StarRocks integration, since it is becoming more widely adopted?
Describe the solution you'd like
  1. Imporve the integration with StarRocks by adding more objects.
  2. Be able to sync schema between two SR databases, and diff the schema.
Additional context

No response

Lenguaje dominante
TypeScript
Estrellas
14.7k
Forks
1k
Merge medio
7 h 23 min
PR fusionados (30 d)
454

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de bytebase/bytebase

Todos los issues de bytebase/bytebase

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.