Skip to content

Conversation

@panbingkun
Copy link
Contributor

What changes were proposed in this pull request?

The pr aims to replace schema() with columns().

Why are the changes needed?

Does this PR introduce any user-facing change?

No.

How was this patch tested?

  • Update existed UT.
  • Pass GA.

Was this patch authored or co-authored using generative AI tooling?

No.

@github-actions github-actions bot added the SQL label Jul 29, 2024
@panbingkun
Copy link
Contributor Author

@cloud-fan
This is only a partial modification. If this idea receives your support, I will continue to complete the following parts, with approximately 154 points that need to be modified.
31523e28e7684067b0ed10a1ab2da288

cc @LuciferYang

val table = catalog.loadTable(ident)
val partTable = new InMemoryPartitionTable(
table.name(), table.schema(), table.partitioning(), table.properties())
table.name(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be better to add a constructor to InMemoryPartitionTable? Also, since InMemoryPartitionTable is code used for testing, it might be acceptable to directly modify the default constructor definition, but I'm not sure if there are third-party projects that depend on this test code.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can create a new one and let the old one throw an exception?

@pan3793
Copy link
Member

pan3793 commented Jul 29, 2024

a potential followup of this patch, the deprecated method should have a default implementation or simply be deleted, otherwise each connectors have to implement the deprecated method, which does not make sense.
https://github.com/unitycatalog/unitycatalog/blob/0de24a0cfac5b40316a97092dbfb769218602720/connectors/spark/src/main/scala/io/unitycatalog/connectors/spark/UCSingleCatalog.scala#L160

@panbingkun
Copy link
Contributor Author

a potential followup of this patch, the deprecated method should have a default implementation or simply be deleted, otherwise each connectors have to implement the deprecated method, which does not make sense. https://github.com/unitycatalog/unitycatalog/blob/0de24a0cfac5b40316a97092dbfb769218602720/connectors/spark/src/main/scala/io/unitycatalog/connectors/spark/UCSingleCatalog.scala#L160

I think we can follow the following pattern to get it done. Before that, we need to get support from @cloud-fan , and I will continue.
#45368

@cloud-fan
Copy link
Contributor

I'm fine to clean up our own tests, but I'm a little hesitate to make a breaking change. We should discuss it in the dev list first.

@panbingkun
Copy link
Contributor Author

I'm fine to clean up our own tests, but I'm a little hesitate to make a breaking change. We should discuss it in the dev list first.

Okay, I will initiate a discussion in the dev list. Thank you very much for your reply.

@github-actions
Copy link

github-actions bot commented Nov 8, 2024

We're closing this PR because it hasn't been updated in a while. This isn't a judgement on the merit of the PR in any way. It's just a way of keeping the PR queue manageable.
If you'd like to revive this PR, please reopen it and ask a committer to remove the Stale tag!

@github-actions github-actions bot added the Stale label Nov 8, 2024
@LuciferYang
Copy link
Contributor

@panbingkun Are you still gonna keep working on this PR? It's about to get auto-closed.

@github-actions github-actions bot closed this Nov 9, 2024
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