You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
User attempts to import this schema for test_table in repo2: $ dolt schema import --create --pks=name test_table test_table_schema
which outputs: panic: runtime error: index out of range [0] with length 0
BUG: dolt schema import failed to infer schema
User attempts to import this schema specifying the file type: $ dolt schema import --create --pks=name test_table --file-type=json test_table_schema
which outputs: error: unsupported file type 'json'
BUG: dolt schema import is unable to import the only format exported by dolt schema export
I also think it's a little clunky to have to manually define primary keys when the file created from dolt schema export defines all of the primary keys already
The text was updated successfully, but these errors were encountered:
coffeegoddd
changed the title
New
Dolt Export/Import require different formats?
Feb 26, 2020
coffeegoddd
changed the title
Dolt Export/Import require different formats?
Dolt Schema Export/Import require different formats?
Feb 26, 2020
coffeegoddd
changed the title
Dolt Schema Export/Import require different formats?
Dolt Schema Export/Import can't be used together?
Feb 26, 2020
USER STORY:
A user wants to export a table schema from one repository and use it as the schema for a different repository.
User displays the schema from
repo1
:$ dolt schema show
which outputs:
User wants to export this schema to
repo2
's dir in a filetest_table_schema
:$ dolt schema export test_table ../repo2/test_table_schema
User
cd
s to../repo2
andcat
stest_table_schema
(with the expectation to see sql, sincedolt schema show
displayed sql?) but seesjson
:User attempts to import this schema for
test_table
inrepo2
:$ dolt schema import --create --pks=name test_table test_table_schema
which outputs:
panic: runtime error: index out of range [0] with length 0
BUG:
dolt schema import
failed to infer schemaUser attempts to import this schema specifying the file type:
$ dolt schema import --create --pks=name test_table --file-type=json test_table_schema
which outputs:
error: unsupported file type 'json'
BUG:
dolt schema import
is unable to import the only format exported bydolt schema export
I also think it's a little clunky to have to manually define primary keys when the file created from
dolt schema export
defines all of the primary keys alreadyThe text was updated successfully, but these errors were encountered: