Skip to content

[SPARK-39649][PYTHON] Make listDatabases / getDatabase / listColumns / refreshTable in PySpark support 3-layer-namespace#37039

Closed
zhengruifeng wants to merge 4 commits intoapache:masterfrom
zhengruifeng:py_3l_remaining
Closed

[SPARK-39649][PYTHON] Make listDatabases / getDatabase / listColumns / refreshTable in PySpark support 3-layer-namespace#37039
zhengruifeng wants to merge 4 commits intoapache:masterfrom
zhengruifeng:py_3l_remaining

Conversation

@zhengruifeng
Copy link
Contributor

@zhengruifeng zhengruifeng commented Jul 1, 2022

What changes were proposed in this pull request?

make following commands in pyspark support 3-layer-namespace

Why are the changes needed?

to support 3-layer-namespace

Does this PR introduce any user-facing change?

yes, new api added

How was this patch tested?

updated UT

@zhengruifeng zhengruifeng changed the title [SPARK-39649][PYTHON][WIP] Make *Database* / listColumns / refreshTable in pyspark support 3-layer-namespace [SPARK-39649][PYTHON][WIP] Make *Database* / listColumns / refreshTable in PySpark support 3-layer-namespace Jul 1, 2022
@zhengruifeng zhengruifeng force-pushed the py_3l_remaining branch 2 times, most recently from e0fe35d to 5a63be9 Compare July 2, 2022 01:34
@zhengruifeng zhengruifeng changed the title [SPARK-39649][PYTHON][WIP] Make *Database* / listColumns / refreshTable in PySpark support 3-layer-namespace [SPARK-39649][PYTHON][WIP] Make listDatabases / getDatabase / listColumns / refreshTable in PySpark support 3-layer-namespace Jul 2, 2022
@zhengruifeng zhengruifeng changed the title [SPARK-39649][PYTHON][WIP] Make listDatabases / getDatabase / listColumns / refreshTable in PySpark support 3-layer-namespace [SPARK-39649][PYTHON] Make listDatabases / getDatabase / listColumns / refreshTable in PySpark support 3-layer-namespace Jul 2, 2022
@zhengruifeng
Copy link
Contributor Author

cc @cloud-fan @amaliujia

Copy link
Contributor

Choose a reason for hiding this comment

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

I was not aware of this though:

Is the catalog=None because of current catalog is not set? I am asking because I thought every DB should have a catalog.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

let's fix this at scala side as well later.

Copy link
Contributor

Choose a reason for hiding this comment

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

No need to add a freshtable API test on Python side?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@zhengruifeng
Copy link
Contributor Author

also cc @HyukjinKwon if you have some time

nit

fix refresh test

fix refresh test

rm files

use 3L
@cloud-fan
Copy link
Contributor

thanks, merging to master!

@cloud-fan cloud-fan closed this in 6e7a571 Jul 4, 2022
@zhengruifeng zhengruifeng deleted the py_3l_remaining branch July 4, 2022 13:07
Copy link
Member

@HyukjinKwon HyukjinKwon left a comment

Choose a reason for hiding this comment

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

LGTM2

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