Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
585ad11
padd default instance
cookiedough77 Sep 12, 2025
1c89918
return dummy name for define dataset
cookiedough77 Sep 12, 2025
3c7d421
return dummy for both define flow and dataset
cookiedough77 Sep 12, 2025
692579c
get full name for mv and table works for both dataset and flow
cookiedough77 Sep 15, 2025
84b6d0f
refactor to register fully qualified name
cookiedough77 Sep 15, 2025
30311cb
helper function refactor
cookiedough77 Sep 15, 2025
36811b4
refactor using convertToQualifiedIdentifier
cookiedough77 Sep 15, 2025
3907448
refactor flows
cookiedough77 Sep 15, 2025
7472e0c
rename proto
cookiedough77 Sep 16, 2025
7c425f9
revert convertToQualifiedTableIdentifier
cookiedough77 Sep 16, 2025
11aca82
add val isImplicitFlowForTempView
cookiedough77 Sep 16, 2025
c032f7a
use gridTest
cookiedough77 Sep 16, 2025
540baca
add custom default catalog test
cookiedough77 Sep 16, 2025
51921b9
define dataset and define flow returns qualifiers, return quoted string
cookiedough77 Sep 16, 2025
5e4c7a4
refactor to avoid using var
cookiedough77 Sep 16, 2025
2bd1ffe
nit: add comments, rename
cookiedough77 Sep 16, 2025
983df42
refactor test case using class
cookiedough77 Sep 17, 2025
2981e4d
git: refactor test
cookiedough77 Sep 17, 2025
6bd24a0
nit
cookiedough77 Sep 17, 2025
215e317
fmt
cookiedough77 Sep 17, 2025
ffcc0df
fix proto
cookiedough77 Sep 17, 2025
d39132d
table and view works, need to resolve flow name
cookiedough77 Sep 18, 2025
533743e
fix views as well
cookiedough77 Sep 18, 2025
2b3ae69
refactor flows
cookiedough77 Sep 18, 2025
a920e06
update proto and fmt
cookiedough77 Sep 18, 2025
882ed02
Merge branch 'master' into jessie.luo_data/spark-add-response
cookiedough77 Sep 18, 2025
017e1ea
nit
cookiedough77 Sep 19, 2025
541584e
remove unnecessary parseAndQualifyFlowIdentifier
cookiedough77 Sep 19, 2025
f042af1
update current catallg, databases
cookiedough77 Sep 19, 2025
a4b309c
rename resolved_data_name as resolved_dataset_name
cookiedough77 Sep 20, 2025
f196df9
refactored DefineDatasetResult proto
cookiedough77 Sep 22, 2025
26cadf8
refactor DefineFlow proto
cookiedough77 Sep 22, 2025
7db13d6
Update sql/connect/common/src/main/protobuf/spark/connect/pipelines.p…
cookiedough77 Sep 23, 2025
e4a7f0f
Update sql/connect/common/src/main/protobuf/spark/connect/pipelines.p…
cookiedough77 Sep 23, 2025
39042fd
update namespace as repeated string
cookiedough77 Sep 24, 2025
256d7d9
Merge remote-tracking branch 'origin/jessie.luo_data/spark-add-respon…
cookiedough77 Sep 24, 2025
13beb23
updated comments in proto
cookiedough77 Sep 24, 2025
762df1f
Merge branch 'master' into jessie.luo_data/spark-add-response
cookiedough77 Sep 24, 2025
23ebeee
rename CatalogIdentifier proto fields and put it in common.proto
cookiedough77 Sep 24, 2025
57f96c4
Merge branch 'master' into jessie.luo_data/spark-add-response
cookiedough77 Sep 25, 2025
9f79fc9
rename to ResolvedIdentifier
cookiedough77 Sep 26, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 15 additions & 13 deletions python/pyspark/sql/connect/proto/common_pb2.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@


DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
b'\n\x1aspark/connect/common.proto\x12\rspark.connect"\xb0\x01\n\x0cStorageLevel\x12\x19\n\x08use_disk\x18\x01 \x01(\x08R\x07useDisk\x12\x1d\n\nuse_memory\x18\x02 \x01(\x08R\tuseMemory\x12 \n\x0cuse_off_heap\x18\x03 \x01(\x08R\nuseOffHeap\x12"\n\x0c\x64\x65serialized\x18\x04 \x01(\x08R\x0c\x64\x65serialized\x12 \n\x0breplication\x18\x05 \x01(\x05R\x0breplication"G\n\x13ResourceInformation\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x1c\n\taddresses\x18\x02 \x03(\tR\taddresses"\xc3\x01\n\x17\x45xecutorResourceRequest\x12#\n\rresource_name\x18\x01 \x01(\tR\x0cresourceName\x12\x16\n\x06\x61mount\x18\x02 \x01(\x03R\x06\x61mount\x12.\n\x10\x64iscovery_script\x18\x03 \x01(\tH\x00R\x0f\x64iscoveryScript\x88\x01\x01\x12\x1b\n\x06vendor\x18\x04 \x01(\tH\x01R\x06vendor\x88\x01\x01\x42\x13\n\x11_discovery_scriptB\t\n\x07_vendor"R\n\x13TaskResourceRequest\x12#\n\rresource_name\x18\x01 \x01(\tR\x0cresourceName\x12\x16\n\x06\x61mount\x18\x02 \x01(\x01R\x06\x61mount"\xa5\x03\n\x0fResourceProfile\x12\x64\n\x12\x65xecutor_resources\x18\x01 \x03(\x0b\x32\x35.spark.connect.ResourceProfile.ExecutorResourcesEntryR\x11\x65xecutorResources\x12X\n\x0etask_resources\x18\x02 \x03(\x0b\x32\x31.spark.connect.ResourceProfile.TaskResourcesEntryR\rtaskResources\x1al\n\x16\x45xecutorResourcesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12<\n\x05value\x18\x02 \x01(\x0b\x32&.spark.connect.ExecutorResourceRequestR\x05value:\x02\x38\x01\x1a\x64\n\x12TaskResourcesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x38\n\x05value\x18\x02 \x01(\x0b\x32".spark.connect.TaskResourceRequestR\x05value:\x02\x38\x01"\x93\x01\n\x06Origin\x12\x42\n\rpython_origin\x18\x01 \x01(\x0b\x32\x1b.spark.connect.PythonOriginH\x00R\x0cpythonOrigin\x12\x39\n\njvm_origin\x18\x02 \x01(\x0b\x32\x18.spark.connect.JvmOriginH\x00R\tjvmOriginB\n\n\x08\x66unction"G\n\x0cPythonOrigin\x12\x1a\n\x08\x66ragment\x18\x01 \x01(\tR\x08\x66ragment\x12\x1b\n\tcall_site\x18\x02 \x01(\tR\x08\x63\x61llSite"\xb1\x03\n\tJvmOrigin\x12\x17\n\x04line\x18\x01 \x01(\x05H\x00R\x04line\x88\x01\x01\x12*\n\x0estart_position\x18\x02 \x01(\x05H\x01R\rstartPosition\x88\x01\x01\x12$\n\x0bstart_index\x18\x03 \x01(\x05H\x02R\nstartIndex\x88\x01\x01\x12"\n\nstop_index\x18\x04 \x01(\x05H\x03R\tstopIndex\x88\x01\x01\x12\x1e\n\x08sql_text\x18\x05 \x01(\tH\x04R\x07sqlText\x88\x01\x01\x12$\n\x0bobject_type\x18\x06 \x01(\tH\x05R\nobjectType\x88\x01\x01\x12$\n\x0bobject_name\x18\x07 \x01(\tH\x06R\nobjectName\x88\x01\x01\x12\x41\n\x0bstack_trace\x18\x08 \x03(\x0b\x32 .spark.connect.StackTraceElementR\nstackTraceB\x07\n\x05_lineB\x11\n\x0f_start_positionB\x0e\n\x0c_start_indexB\r\n\x0b_stop_indexB\x0b\n\t_sql_textB\x0e\n\x0c_object_typeB\x0e\n\x0c_object_name"\xea\x02\n\x11StackTraceElement\x12/\n\x11\x63lass_loader_name\x18\x01 \x01(\tH\x00R\x0f\x63lassLoaderName\x88\x01\x01\x12$\n\x0bmodule_name\x18\x02 \x01(\tH\x01R\nmoduleName\x88\x01\x01\x12*\n\x0emodule_version\x18\x03 \x01(\tH\x02R\rmoduleVersion\x88\x01\x01\x12\'\n\x0f\x64\x65\x63laring_class\x18\x04 \x01(\tR\x0e\x64\x65\x63laringClass\x12\x1f\n\x0bmethod_name\x18\x05 \x01(\tR\nmethodName\x12 \n\tfile_name\x18\x06 \x01(\tH\x03R\x08\x66ileName\x88\x01\x01\x12\x1f\n\x0bline_number\x18\x07 \x01(\x05R\nlineNumberB\x14\n\x12_class_loader_nameB\x0e\n\x0c_module_nameB\x11\n\x0f_module_versionB\x0c\n\n_file_name"\x1f\n\x05\x42ools\x12\x16\n\x06values\x18\x01 \x03(\x08R\x06values"\x1e\n\x04Ints\x12\x16\n\x06values\x18\x01 \x03(\x05R\x06values"\x1f\n\x05Longs\x12\x16\n\x06values\x18\x01 \x03(\x03R\x06values" \n\x06\x46loats\x12\x16\n\x06values\x18\x01 \x03(\x02R\x06values"!\n\x07\x44oubles\x12\x16\n\x06values\x18\x01 \x03(\x01R\x06values"!\n\x07Strings\x12\x16\n\x06values\x18\x01 \x03(\tR\x06valuesB6\n\x1eorg.apache.spark.connect.protoP\x01Z\x12internal/generatedb\x06proto3'
b'\n\x1aspark/connect/common.proto\x12\rspark.connect"\xb0\x01\n\x0cStorageLevel\x12\x19\n\x08use_disk\x18\x01 \x01(\x08R\x07useDisk\x12\x1d\n\nuse_memory\x18\x02 \x01(\x08R\tuseMemory\x12 \n\x0cuse_off_heap\x18\x03 \x01(\x08R\nuseOffHeap\x12"\n\x0c\x64\x65serialized\x18\x04 \x01(\x08R\x0c\x64\x65serialized\x12 \n\x0breplication\x18\x05 \x01(\x05R\x0breplication"G\n\x13ResourceInformation\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x1c\n\taddresses\x18\x02 \x03(\tR\taddresses"\xc3\x01\n\x17\x45xecutorResourceRequest\x12#\n\rresource_name\x18\x01 \x01(\tR\x0cresourceName\x12\x16\n\x06\x61mount\x18\x02 \x01(\x03R\x06\x61mount\x12.\n\x10\x64iscovery_script\x18\x03 \x01(\tH\x00R\x0f\x64iscoveryScript\x88\x01\x01\x12\x1b\n\x06vendor\x18\x04 \x01(\tH\x01R\x06vendor\x88\x01\x01\x42\x13\n\x11_discovery_scriptB\t\n\x07_vendor"R\n\x13TaskResourceRequest\x12#\n\rresource_name\x18\x01 \x01(\tR\x0cresourceName\x12\x16\n\x06\x61mount\x18\x02 \x01(\x01R\x06\x61mount"\xa5\x03\n\x0fResourceProfile\x12\x64\n\x12\x65xecutor_resources\x18\x01 \x03(\x0b\x32\x35.spark.connect.ResourceProfile.ExecutorResourcesEntryR\x11\x65xecutorResources\x12X\n\x0etask_resources\x18\x02 \x03(\x0b\x32\x31.spark.connect.ResourceProfile.TaskResourcesEntryR\rtaskResources\x1al\n\x16\x45xecutorResourcesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12<\n\x05value\x18\x02 \x01(\x0b\x32&.spark.connect.ExecutorResourceRequestR\x05value:\x02\x38\x01\x1a\x64\n\x12TaskResourcesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x38\n\x05value\x18\x02 \x01(\x0b\x32".spark.connect.TaskResourceRequestR\x05value:\x02\x38\x01"\x93\x01\n\x06Origin\x12\x42\n\rpython_origin\x18\x01 \x01(\x0b\x32\x1b.spark.connect.PythonOriginH\x00R\x0cpythonOrigin\x12\x39\n\njvm_origin\x18\x02 \x01(\x0b\x32\x18.spark.connect.JvmOriginH\x00R\tjvmOriginB\n\n\x08\x66unction"G\n\x0cPythonOrigin\x12\x1a\n\x08\x66ragment\x18\x01 \x01(\tR\x08\x66ragment\x12\x1b\n\tcall_site\x18\x02 \x01(\tR\x08\x63\x61llSite"\xb1\x03\n\tJvmOrigin\x12\x17\n\x04line\x18\x01 \x01(\x05H\x00R\x04line\x88\x01\x01\x12*\n\x0estart_position\x18\x02 \x01(\x05H\x01R\rstartPosition\x88\x01\x01\x12$\n\x0bstart_index\x18\x03 \x01(\x05H\x02R\nstartIndex\x88\x01\x01\x12"\n\nstop_index\x18\x04 \x01(\x05H\x03R\tstopIndex\x88\x01\x01\x12\x1e\n\x08sql_text\x18\x05 \x01(\tH\x04R\x07sqlText\x88\x01\x01\x12$\n\x0bobject_type\x18\x06 \x01(\tH\x05R\nobjectType\x88\x01\x01\x12$\n\x0bobject_name\x18\x07 \x01(\tH\x06R\nobjectName\x88\x01\x01\x12\x41\n\x0bstack_trace\x18\x08 \x03(\x0b\x32 .spark.connect.StackTraceElementR\nstackTraceB\x07\n\x05_lineB\x11\n\x0f_start_positionB\x0e\n\x0c_start_indexB\r\n\x0b_stop_indexB\x0b\n\t_sql_textB\x0e\n\x0c_object_typeB\x0e\n\x0c_object_name"\xea\x02\n\x11StackTraceElement\x12/\n\x11\x63lass_loader_name\x18\x01 \x01(\tH\x00R\x0f\x63lassLoaderName\x88\x01\x01\x12$\n\x0bmodule_name\x18\x02 \x01(\tH\x01R\nmoduleName\x88\x01\x01\x12*\n\x0emodule_version\x18\x03 \x01(\tH\x02R\rmoduleVersion\x88\x01\x01\x12\'\n\x0f\x64\x65\x63laring_class\x18\x04 \x01(\tR\x0e\x64\x65\x63laringClass\x12\x1f\n\x0bmethod_name\x18\x05 \x01(\tR\nmethodName\x12 \n\tfile_name\x18\x06 \x01(\tH\x03R\x08\x66ileName\x88\x01\x01\x12\x1f\n\x0bline_number\x18\x07 \x01(\x05R\nlineNumberB\x14\n\x12_class_loader_nameB\x0e\n\x0c_module_nameB\x11\n\x0f_module_versionB\x0c\n\n_file_name"t\n\x12ResolvedIdentifier\x12!\n\x0c\x63\x61talog_name\x18\x01 \x01(\tR\x0b\x63\x61talogName\x12\x1c\n\tnamespace\x18\x02 \x03(\tR\tnamespace\x12\x1d\n\ntable_name\x18\x03 \x01(\tR\ttableName"\x1f\n\x05\x42ools\x12\x16\n\x06values\x18\x01 \x03(\x08R\x06values"\x1e\n\x04Ints\x12\x16\n\x06values\x18\x01 \x03(\x05R\x06values"\x1f\n\x05Longs\x12\x16\n\x06values\x18\x01 \x03(\x03R\x06values" \n\x06\x46loats\x12\x16\n\x06values\x18\x01 \x03(\x02R\x06values"!\n\x07\x44oubles\x12\x16\n\x06values\x18\x01 \x03(\x01R\x06values"!\n\x07Strings\x12\x16\n\x06values\x18\x01 \x03(\tR\x06valuesB6\n\x1eorg.apache.spark.connect.protoP\x01Z\x12internal/generatedb\x06proto3'
)

_globals = globals()
Expand Down Expand Up @@ -74,16 +74,18 @@
_globals["_JVMORIGIN"]._serialized_end = 1660
_globals["_STACKTRACEELEMENT"]._serialized_start = 1663
_globals["_STACKTRACEELEMENT"]._serialized_end = 2025
_globals["_BOOLS"]._serialized_start = 2027
_globals["_BOOLS"]._serialized_end = 2058
_globals["_INTS"]._serialized_start = 2060
_globals["_INTS"]._serialized_end = 2090
_globals["_LONGS"]._serialized_start = 2092
_globals["_LONGS"]._serialized_end = 2123
_globals["_FLOATS"]._serialized_start = 2125
_globals["_FLOATS"]._serialized_end = 2157
_globals["_DOUBLES"]._serialized_start = 2159
_globals["_DOUBLES"]._serialized_end = 2192
_globals["_STRINGS"]._serialized_start = 2194
_globals["_STRINGS"]._serialized_end = 2227
_globals["_RESOLVEDIDENTIFIER"]._serialized_start = 2027
_globals["_RESOLVEDIDENTIFIER"]._serialized_end = 2143
_globals["_BOOLS"]._serialized_start = 2145
_globals["_BOOLS"]._serialized_end = 2176
_globals["_INTS"]._serialized_start = 2178
_globals["_INTS"]._serialized_end = 2208
_globals["_LONGS"]._serialized_start = 2210
_globals["_LONGS"]._serialized_end = 2241
_globals["_FLOATS"]._serialized_start = 2243
_globals["_FLOATS"]._serialized_end = 2275
_globals["_DOUBLES"]._serialized_start = 2277
_globals["_DOUBLES"]._serialized_end = 2310
_globals["_STRINGS"]._serialized_start = 2312
_globals["_STRINGS"]._serialized_end = 2345
# @@protoc_insertion_point(module_scope)
28 changes: 28 additions & 0 deletions python/pyspark/sql/connect/proto/common_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,34 @@ class StackTraceElement(google.protobuf.message.Message):

global___StackTraceElement = StackTraceElement

class ResolvedIdentifier(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor

CATALOG_NAME_FIELD_NUMBER: builtins.int
NAMESPACE_FIELD_NUMBER: builtins.int
TABLE_NAME_FIELD_NUMBER: builtins.int
catalog_name: builtins.str
@property
def namespace(
self,
) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
table_name: builtins.str
def __init__(
self,
*,
catalog_name: builtins.str = ...,
namespace: collections.abc.Iterable[builtins.str] | None = ...,
table_name: builtins.str = ...,
) -> None: ...
def ClearField(
self,
field_name: typing_extensions.Literal[
"catalog_name", b"catalog_name", "namespace", b"namespace", "table_name", b"table_name"
],
) -> None: ...

global___ResolvedIdentifier = ResolvedIdentifier

class Bools(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor

Expand Down
Loading