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
Describe the bug
I'm trying to parse PostgreSQL DDL to BigQuery schema. But the output content is unexpected format.
To Reproduce
I followed the instruction and example on README.md, and created a snippet as following. However, I got the output of columns which is incompatible with the BigQuery schema. Please kindly let me know if there is any misunderstanding.
@a92340a hello, thanks for opening the issue. What does mean 'unexpected'? this output format exactly that provided by library . It is exactly that described in the README
Describe the bug
I'm trying to parse PostgreSQL DDL to BigQuery schema. But the output content is unexpected format.
To Reproduce
I followed the instruction and example on README.md, and created a snippet as following. However, I got the output of columns which is incompatible with the BigQuery schema. Please kindly let me know if there is any misunderstanding.
The output is:
Expected behavior
I suppose the output of schema will be the following pattern:
[{"name": "id", "type": "INTEGER", "mode": "REQUIRED"},{"name": "tag_id", "type": "INTEGER", "mode": "NULLABLE"},{"name": "sn", "type": "STRING", "mode": "NULLABLE"},{"name": "created_at", "type": "DATETIME", "mode": "NULLABLE"},{"name": "updated_at", "type": "DATETIME", "mode": "NULLABLE"}]
Screenshots
![Screenshot 2024-12-26 at 10 50 23 AM](https://private-user-images.githubusercontent.com/30499702/398621853-781a170f-28a8-4474-9ed8-3bd62321333e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwNzY5NjYsIm5iZiI6MTczOTA3NjY2NiwicGF0aCI6Ii8zMDQ5OTcwMi8zOTg2MjE4NTMtNzgxYTE3MGYtMjhhOC00NDc0LTllZDgtM2JkNjIzMjEzMzNlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA5VDA0NTEwNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTFlM2QyMWQ5NzM1YzlmN2MyOWEzNjI4ODFmMzM2MWJjNDk5ZTI0NDFmNDllZDcxZDA2YzViOTBhMTMyYTU3YjcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.3YQQloNtrvhoniRmZXaG7TdDI2DBLJ10a2_lEyZnZdw)
The output of columns is incompatible with the BigQuery schema:
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: