Skip to content

Conversation

@hermanschaaf
Copy link
Member

This adds an UnflattenTables method to the Tables type, the opposite operation of FlattenTables.

Why?

Until now, destination plugins were the only part of the code that needed to decode Arrow schemas to tables, and destinations don't need relational information. Now that docs generation is moving to the CLI, however, we need to be able to reconstruct the original relational structure in order to accurately reflect it in the docs.

Rather than modifying FlattenTables, which would not be backwards-compatible, I have opted to add a new method that the CLI can use. With this change in place, I am able to fully generate the docs for the AWS plugin from the CLI, with zero changes.

@codecov
Copy link

codecov bot commented Aug 8, 2023

Codecov Report

Patch coverage: 84.21% and project coverage change: +0.15% 🎉

Comparison is base (3c6c959) 48.60% compared to head (bd7e212) 48.75%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1138      +/-   ##
==========================================
+ Coverage   48.60%   48.75%   +0.15%     
==========================================
  Files          85       85              
  Lines        7820     7839      +19     
==========================================
+ Hits         3801     3822      +21     
+ Misses       3685     3682       -3     
- Partials      334      335       +1     
Files Changed Coverage Δ
schema/table.go 49.44% <84.21%> (+3.42%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@github-actions
Copy link

github-actions bot commented Aug 8, 2023

⏱️ Benchmark results

Comparing with 3c6c959

  • Glob-8 ns/op: 99.48 ⬇️ 0.52% decrease vs. 3c6c959

@kodiakhq kodiakhq bot merged commit 848e505 into main Aug 8, 2023
@kodiakhq kodiakhq bot deleted the unflatten-tables branch August 8, 2023 16:40
hermanschaaf pushed a commit that referenced this pull request Aug 8, 2023
🤖 I have created a release *beep* *boop*
---


##
[4.4.0](v4.3.1...v4.4.0)
(2023-08-08)


### Features

* Add Unflatten tables method
([#1138](#1138))
([848e505](848e505))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants