Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: COPY my_table TO STDOUT #269

Merged
merged 11 commits into from
Jul 9, 2022
Merged

feat: COPY my_table TO STDOUT #269

merged 11 commits into from
Jul 9, 2022

Conversation

olavloite
Copy link
Collaborator

Adds support for COPY my_table TO STDOUT statements to allow copying data from a Cloud Spanner table to another Cloud Spanner table in the same or different database, or to a table in a PostgreSQL database.

@codecov
Copy link

codecov bot commented Jul 9, 2022

Codecov Report

Merging #269 (011e9ef) into postgresql-dialect (ce01b5c) will increase coverage by 0.20%.
The diff coverage is 83.56%.

@@                   Coverage Diff                    @@
##             postgresql-dialect     #269      +/-   ##
========================================================
+ Coverage                 80.87%   81.08%   +0.20%     
- Complexity                 1167     1223      +56     
========================================================
  Files                        95       99       +4     
  Lines                      3943     4208     +265     
  Branches                    488      511      +23     
========================================================
+ Hits                       3189     3412     +223     
- Misses                      578      616      +38     
- Partials                    176      180       +4     
Flag Coverage Δ
all_tests 81.08% <83.56%> (+0.20%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...e/cloud/spanner/pgadapter/parsers/ArrayParser.java 71.64% <ø> (ø)
.../cloud/spanner/pgadapter/parsers/BinaryParser.java 72.72% <ø> (ø)
...cloud/spanner/pgadapter/parsers/BooleanParser.java 86.11% <ø> (ø)
...le/cloud/spanner/pgadapter/parsers/DateParser.java 90.00% <ø> (ø)
.../cloud/spanner/pgadapter/parsers/DoubleParser.java 82.60% <ø> (ø)
...cloud/spanner/pgadapter/parsers/IntegerParser.java 72.72% <ø> (+4.54%) ⬆️
...le/cloud/spanner/pgadapter/parsers/LongParser.java 82.60% <ø> (ø)
...cloud/spanner/pgadapter/parsers/NumericParser.java 84.61% <ø> (ø)
...google/cloud/spanner/pgadapter/parsers/Parser.java 80.72% <ø> (ø)
.../cloud/spanner/pgadapter/parsers/StringParser.java 92.85% <ø> (ø)
... and 23 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ce01b5c...011e9ef. Read the comment docs.

@olavloite olavloite marked this pull request as ready for review July 9, 2022 08:41
@olavloite olavloite merged commit 393b520 into postgresql-dialect Jul 9, 2022
@olavloite olavloite deleted the copy-out branch July 9, 2022 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant