Skip to content

Arrays are not correctly generated in changeLogs #76

@marcindyjas

Description

@marcindyjas

Descripton:

Arrays are not correctly generated using both generateChangeLog diffChangeLog command.

Steps to reproduce:

Use for example DDL as below to create new table on Spanner:

CREATE TABLE TEST_TABLE (
TEST_ARRAY_STRING ARRAY<STRING(10)>,
TEST_ARRAY_INT64 ARRAY<INT64>,
TEST_ARRAY_TMESTAMP ARRAY<TIMESTAMP>,
TEST_INT64 INT64 NOT NULL,
) PRIMARY KEY(TEST_INT64)

Then run:
liquibase --url="jdbc:cloudspanner:/projects/<project>/instances/<instance>/databases/<database>" --changeLogFile=changeLog.yml generateChangeLog

Examples - changeLog contains:
"ARRAY<STRING(10)" instead of "ARRAY<STRING(10)>"
"ARRAY<INT64>(19)" instead of "ARRAY<INT64>"
"ARRAY<TIMESTAMP>(35)" instead of "ARRAY<TIMESTAMP>"

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions