Skip to content

[DO-NOT-MERGE][PYTHON] Simple Pythonic catalog reference#43382

Closed
HyukjinKwon wants to merge 1 commit intoapache:masterfrom
HyukjinKwon:poc_catalog_string
Closed

[DO-NOT-MERGE][PYTHON] Simple Pythonic catalog reference#43382
HyukjinKwon wants to merge 1 commit intoapache:masterfrom
HyukjinKwon:poc_catalog_string

Conversation

@HyukjinKwon
Copy link
Member

What changes were proposed in this pull request?

>>> from pyspark.sql import ref
>>> spark.range(10).write.saveAsTable(ref.my_table)
>>> spark.table(ref.my_table)
DataFrame[id: bigint]
>>> spark.table(ref.default.my_table)
DataFrame[id: bigint]
>>> spark.sql(f"SELECT * from {ref.my_table}").show()
+---+
| id|
+---+
|  4|
|  0|
|  6|
...

Why are the changes needed?

TBD

Does this PR introduce any user-facing change?

TBD

How was this patch tested?

TBD

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

No.

@HyukjinKwon HyukjinKwon marked this pull request as draft October 16, 2023 08:59
@HyukjinKwon HyukjinKwon deleted the poc_catalog_string branch January 15, 2024 00:48
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.

1 participant