/
githubmirror
/
spark
Обзор
Документация
Войти
/
githubmirror
/
spark
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
python/pyspark/sql/connect/proto/catalog_pb2.py
142 строки
16 KB
Wenchen Fan
[SPARK-56221][SQL][PYTHON][FOLLOWUP] Rename TablePartition and remove SHOW CACHED TABLES / listCachedTables
08 апр 2026, 20:00
08 апр 2026, 20:00
a3930d3
Код
Авторство
О чём код?
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use this file except in compliance with # the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: spark/connect/catalog.proto # Protobuf Python Version: 6.33.5 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder _runtime_version.ValidateProtobufRuntimeVersion( _runtime_version.Domain.PUBLIC, 6, 33, 5, "", "spark/connect/catalog.proto" ) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() from pyspark.sql.connect.proto import common_pb2 as spark_dot_connect_dot_common__pb2 from pyspark.sql.connect.proto import types_pb2 as spark_dot_connect_dot_types__pb2 DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( b'\n\x1bspark/connect/catalog.proto\x12\rspark.connect\x1a\x1aspark/connect/common.proto\x1a\x19spark/connect/types.proto"\x8c\x14\n\x07\x43\x61talog\x12K\n\x10\x63urrent_database\x18\x01 \x01(\x0b\x32\x1e.spark.connect.CurrentDatabaseH\x00R\x0f\x63urrentDatabase\x12U\n\x14set_current_database\x18\x02 \x01(\x0b\x32!.spark.connect.SetCurrentDatabaseH\x00R\x12setCurrentDatabase\x12\x45\n\x0elist_databases\x18\x03 \x01(\x0b\x32\x1c.spark.connect.ListDatabasesH\x00R\rlistDatabases\x12<\n\x0blist_tables\x18\x04 \x01(\x0b\x32\x19.spark.connect.ListTablesH\x00R\nlistTables\x12\x45\n\x0elist_functions\x18\x05 \x01(\x0b\x32\x1c.spark.connect.ListFunctionsH\x00R\rlistFunctions\x12?\n\x0clist_columns\x18\x06 \x01(\x0b\x32\x1a.spark.connect.ListColumnsH\x00R\x0blistColumns\x12?\n\x0cget_database\x18\x07 \x01(\x0b\x32\x1a.spark.connect.GetDatabaseH\x00R\x0bgetDatabase\x12\x36\n\tget_table\x18\x08 \x01(\x0b\x32\x17.spark.connect.GetTableH\x00R\x08getTable\x12?\n\x0cget_function\x18\t \x01(\x0b\x32\x1a.spark.connect.GetFunctionH\x00R\x0bgetFunction\x12H\n\x0f\x64\x61tabase_exists\x18\n \x01(\x0b\x32\x1d.spark.connect.DatabaseExistsH\x00R\x0e\x64\x61tabaseExists\x12?\n\x0ctable_exists\x18\x0b \x01(\x0b\x32\x1a.spark.connect.TableExistsH\x00R\x0btableExists\x12H\n\x0f\x66unction_exists\x18\x0c \x01(\x0b\x32\x1d.spark.connect.FunctionExistsH\x00R\x0e\x66unctionExists\x12X\n\x15\x63reate_external_table\x18\r \x01(\x0b\x32".spark.connect.CreateExternalTableH\x00R\x13\x63reateExternalTable\x12?\n\x0c\x63reate_table\x18\x0e \x01(\x0b\x32\x1a.spark.connect.CreateTableH\x00R\x0b\x63reateTable\x12\x43\n\x0e\x64rop_temp_view\x18\x0f \x01(\x0b\x32\x1b.spark.connect.DropTempViewH\x00R\x0c\x64ropTempView\x12V\n\x15\x64rop_global_temp_view\x18\x10 \x01(\x0b\x32!.spark.connect.DropGlobalTempViewH\x00R\x12\x64ropGlobalTempView\x12Q\n\x12recover_partitions\x18\x11 \x01(\x0b\x32 .spark.connect.RecoverPartitionsH\x00R\x11recoverPartitions\x12\x36\n\tis_cached\x18\x12 \x01(\x0b\x32\x17.spark.connect.IsCachedH\x00R\x08isCached\x12<\n\x0b\x63\x61\x63he_table\x18\x13 \x01(\x0b\x32\x19.spark.connect.CacheTableH\x00R\ncacheTable\x12\x42\n\runcache_table\x18\x14 \x01(\x0b\x32\x1b.spark.connect.UncacheTableH\x00R\x0cuncacheTable\x12<\n\x0b\x63lear_cache\x18\x15 \x01(\x0b\x32\x19.spark.connect.ClearCacheH\x00R\nclearCache\x12\x42\n\rrefresh_table\x18\x16 \x01(\x0b\x32\x1b.spark.connect.RefreshTableH\x00R\x0crefreshTable\x12\x46\n\x0frefresh_by_path\x18\x17 \x01(\x0b\x32\x1c.spark.connect.RefreshByPathH\x00R\rrefreshByPath\x12H\n\x0f\x63urrent_catalog\x18\x18 \x01(\x0b\x32\x1d.spark.connect.CurrentCatalogH\x00R\x0e\x63urrentCatalog\x12R\n\x13set_current_catalog\x18\x19 \x01(\x0b\x32 .spark.connect.SetCurrentCatalogH\x00R\x11setCurrentCatalog\x12\x42\n\rlist_catalogs\x18\x1a \x01(\x0b\x32\x1b.spark.connect.ListCatalogsH\x00R\x0clistCatalogs\x12\x39\n\ndrop_table\x18\x1b \x01(\x0b\x32\x18.spark.connect.DropTableH\x00R\tdropTable\x12\x36\n\tdrop_view\x18\x1c \x01(\x0b\x32\x17.spark.connect.DropViewH\x00R\x08\x64ropView\x12H\n\x0f\x63reate_database\x18\x1d \x01(\x0b\x32\x1d.spark.connect.CreateDatabaseH\x00R\x0e\x63reateDatabase\x12\x42\n\rdrop_database\x18\x1e \x01(\x0b\x32\x1b.spark.connect.DropDatabaseH\x00R\x0c\x64ropDatabase\x12H\n\x0flist_partitions\x18\x1f \x01(\x0b\x32\x1d.spark.connect.ListPartitionsH\x00R\x0elistPartitions\x12\x39\n\nlist_views\x18 \x01(\x0b\x32\x18.spark.connect.ListViewsH\x00R\tlistViews\x12U\n\x14get_table_properties\x18! \x01(\x0b\x32!.spark.connect.GetTablePropertiesH\x00R\x12getTableProperties\x12\\\n\x17get_create_table_string\x18" \x01(\x0b\x32#.spark.connect.GetCreateTableStringH\x00R\x14getCreateTableString\x12\x45\n\x0etruncate_table\x18# \x01(\x0b\x32\x1c.spark.connect.TruncateTableH\x00R\rtruncateTable\x12\x42\n\ranalyze_table\x18$ \x01(\x0b\x32\x1b.spark.connect.AnalyzeTableH\x00R\x0c\x61nalyzeTableB\n\n\x08\x63\x61t_type"\x11\n\x0f\x43urrentDatabase"-\n\x12SetCurrentDatabase\x12\x17\n\x07\x64\x62_name\x18\x01 \x01(\tR\x06\x64\x62Name":\n\rListDatabases\x12\x1d\n\x07pattern\x18\x01 \x01(\tH\x00R\x07pattern\x88\x01\x01\x42\n\n\x08_pattern"a\n\nListTables\x12\x1c\n\x07\x64\x62_name\x18\x01 \x01(\tH\x00R\x06\x64\x62Name\x88\x01\x01\x12\x1d\n\x07pattern\x18\x02 \x01(\tH\x01R\x07pattern\x88\x01\x01\x42\n\n\x08_db_nameB\n\n\x08_pattern"d\n\rListFunctions\x12\x1c\n\x07\x64\x62_name\x18\x01 \x01(\tH\x00R\x06\x64\x62Name\x88\x01\x01\x12\x1d\n\x07pattern\x18\x02 \x01(\tH\x01R\x07pattern\x88\x01\x01\x42\n\n\x08_db_nameB\n\n\x08_pattern"V\n\x0bListColumns\x12\x1d\n\ntable_name\x18\x01 \x01(\tR\ttableName\x12\x1c\n\x07\x64\x62_name\x18\x02 \x01(\tH\x00R\x06\x64\x62Name\x88\x01\x01\x42\n\n\x08_db_name"&\n\x0bGetDatabase\x12\x17\n\x07\x64\x62_name\x18\x01 \x01(\tR\x06\x64\x62Name"S\n\x08GetTable\x12\x1d\n\ntable_name\x18\x01 \x01(\tR\ttableName\x12\x1c\n\x07\x64\x62_name\x18\x02 \x01(\tH\x00R\x06\x64\x62Name\x88\x01\x01\x42\n\n\x08_db_name"\\\n\x0bGetFunction\x12#\n\rfunction_name\x18\x01 \x01(\tR\x0c\x66unctionName\x12\x1c\n\x07\x64\x62_name\x18\x02 \x01(\tH\x00R\x06\x64\x62Name\x88\x01\x01\x42\n\n\x08_db_name")\n\x0e\x44\x61tabaseExists\x12\x17\n\x07\x64\x62_name\x18\x01 \x01(\tR\x06\x64\x62Name"V\n\x0bTableExists\x12\x1d\n\ntable_name\x18\x01 \x01(\tR\ttableName\x12\x1c\n\x07\x64\x62_name\x18\x02 \x01(\tH\x00R\x06\x64\x62Name\x88\x01\x01\x42\n\n\x08_db_name"_\n\x0e\x46unctionExists\x12#\n\rfunction_name\x18\x01 \x01(\tR\x0c\x66unctionName\x12\x1c\n\x07\x64\x62_name\x18\x02 \x01(\tH\x00R\x06\x64\x62Name\x88\x01\x01\x42\n\n\x08_db_name"\xc6\x02\n\x13\x43reateExternalTable\x12\x1d\n\ntable_name\x18\x01 \x01(\tR\ttableName\x12\x17\n\x04path\x18\x02 \x01(\tH\x00R\x04path\x88\x01\x01\x12\x1b\n\x06source\x18\x03 \x01(\tH\x01R\x06source\x88\x01\x01\x12\x34\n\x06schema\x18\x04 \x01(\x0b\x32\x17.spark.connect.DataTypeH\x02R\x06schema\x88\x01\x01\x12I\n\x07options\x18\x05 \x03(\x0b\x32/.spark.connect.CreateExternalTable.OptionsEntryR\x07options\x1a:\n\x0cOptionsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x42\x07\n\x05_pathB\t\n\x07_sourceB\t\n\x07_schema"\xed\x02\n\x0b\x43reateTable\x12\x1d\n\ntable_name\x18\x01 \x01(\tR\ttableName\x12\x17\n\x04path\x18\x02 \x01(\tH\x00R\x04path\x88\x01\x01\x12\x1b\n\x06source\x18\x03 \x01(\tH\x01R\x06source\x88\x01\x01\x12%\n\x0b\x64\x65scription\x18\x04 \x01(\tH\x02R\x0b\x64\x65scription\x88\x01\x01\x12\x34\n\x06schema\x18\x05 \x01(\x0b\x32\x17.spark.connect.DataTypeH\x03R\x06schema\x88\x01\x01\x12\x41\n\x07options\x18\x06 \x03(\x0b\x32\'.spark.connect.CreateTable.OptionsEntryR\x07options\x1a:\n\x0cOptionsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x42\x07\n\x05_pathB\t\n\x07_sourceB\x0e\n\x0c_descriptionB\t\n\x07_schema"+\n\x0c\x44ropTempView\x12\x1b\n\tview_name\x18\x01 \x01(\tR\x08viewName"1\n\x12\x44ropGlobalTempView\x12\x1b\n\tview_name\x18\x01 \x01(\tR\x08viewName"2\n\x11RecoverPartitions\x12\x1d\n\ntable_name\x18\x01 \x01(\tR\ttableName")\n\x08IsCached\x12\x1d\n\ntable_name\x18\x01 \x01(\tR\ttableName"\x84\x01\n\nCacheTable\x12\x1d\n\ntable_name\x18\x01 \x01(\tR\ttableName\x12\x45\n\rstorage_level\x18\x02 \x01(\x0b\x32\x1b.spark.connect.StorageLevelH\x00R\x0cstorageLevel\x88\x01\x01\x42\x10\n\x0e_storage_level"-\n\x0cUncacheTable\x12\x1d\n\ntable_name\x18\x01 \x01(\tR\ttableName"\x0c\n\nClearCache"-\n\x0cRefreshTable\x12\x1d\n\ntable_name\x18\x01 \x01(\tR\ttableName"#\n\rRefreshByPath\x12\x12\n\x04path\x18\x01 \x01(\tR\x04path"\x10\n\x0e\x43urrentCatalog"6\n\x11SetCurrentCatalog\x12!\n\x0c\x63\x61talog_name\x18\x01 \x01(\tR\x0b\x63\x61talogName"9\n\x0cListCatalogs\x12\x1d\n\x07pattern\x18\x01 \x01(\tH\x00R\x07pattern\x88\x01\x01\x42\n\n\x08_pattern"]\n\tDropTable\x12\x1d\n\ntable_name\x18\x01 \x01(\tR\ttableName\x12\x1b\n\tif_exists\x18\x02 \x01(\x08R\x08ifExists\x12\x14\n\x05purge\x18\x03 \x01(\x08R\x05purge"D\n\x08\x44ropView\x12\x1b\n\tview_name\x18\x01 \x01(\tR\x08viewName\x12\x1b\n\tif_exists\x18\x02 \x01(\x08R\x08ifExists"\xdb\x01\n\x0e\x43reateDatabase\x12\x17\n\x07\x64\x62_name\x18\x01 \x01(\tR\x06\x64\x62Name\x12"\n\rif_not_exists\x18\x02 \x01(\x08R\x0bifNotExists\x12M\n\nproperties\x18\x03 \x03(\x0b\x32-.spark.connect.CreateDatabase.PropertiesEntryR\nproperties\x1a=\n\x0fPropertiesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01"^\n\x0c\x44ropDatabase\x12\x17\n\x07\x64\x62_name\x18\x01 \x01(\tR\x06\x64\x62Name\x12\x1b\n\tif_exists\x18\x02 \x01(\x08R\x08ifExists\x12\x18\n\x07\x63\x61scade\x18\x03 \x01(\x08R\x07\x63\x61scade"/\n\x0eListPartitions\x12\x1d\n\ntable_name\x18\x01 \x01(\tR\ttableName"`\n\tListViews\x12\x1c\n\x07\x64\x62_name\x18\x01 \x01(\tH\x00R\x06\x64\x62Name\x88\x01\x01\x12\x1d\n\x07pattern\x18\x02 \x01(\tH\x01R\x07pattern\x88\x01\x01\x42\n\n\x08_db_nameB\n\n\x08_pattern"3\n\x12GetTableProperties\x12\x1d\n\ntable_name\x18\x01 \x01(\tR\ttableName"P\n\x14GetCreateTableString\x12\x1d\n\ntable_name\x18\x01 \x01(\tR\ttableName\x12\x19\n\x08\x61s_serde\x18\x02 \x01(\x08R\x07\x61sSerde".\n\rTruncateTable\x12\x1d\n\ntable_name\x18\x01 \x01(\tR\ttableName"F\n\x0c\x41nalyzeTable\x12\x1d\n\ntable_name\x18\x01 \x01(\tR\ttableName\x12\x17\n\x07no_scan\x18\x02 \x01(\x08R\x06noScanB6\n\x1eorg.apache.spark.connect.protoP\x01Z\x12internal/generatedb\x06proto3' ) _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages( DESCRIPTOR, "pyspark.sql.connect.proto.catalog_pb2", _globals ) if not _descriptor._USE_C_DESCRIPTORS: _globals["DESCRIPTOR"]._loaded_options = None _globals[ "DESCRIPTOR" ]._serialized_options = b"\n\036org.apache.spark.connect.protoP\001Z\022internal/generated" _globals["_CREATEEXTERNALTABLE_OPTIONSENTRY"]._loaded_options = None _globals["_CREATEEXTERNALTABLE_OPTIONSENTRY"]._serialized_options = b"8\001" _globals["_CREATETABLE_OPTIONSENTRY"]._loaded_options = None _globals["_CREATETABLE_OPTIONSENTRY"]._serialized_options = b"8\001" _globals["_CREATEDATABASE_PROPERTIESENTRY"]._loaded_options = None _globals["_CREATEDATABASE_PROPERTIESENTRY"]._serialized_options = b"8\001" _globals["_CATALOG"]._serialized_start = 102 _globals["_CATALOG"]._serialized_end = 2674 _globals["_CURRENTDATABASE"]._serialized_start = 2676 _globals["_CURRENTDATABASE"]._serialized_end = 2693 _globals["_SETCURRENTDATABASE"]._serialized_start = 2695 _globals["_SETCURRENTDATABASE"]._serialized_end = 2740 _globals["_LISTDATABASES"]._serialized_start = 2742 _globals["_LISTDATABASES"]._serialized_end = 2800 _globals["_LISTTABLES"]._serialized_start = 2802 _globals["_LISTTABLES"]._serialized_end = 2899 _globals["_LISTFUNCTIONS"]._serialized_start = 2901 _globals["_LISTFUNCTIONS"]._serialized_end = 3001 _globals["_LISTCOLUMNS"]._serialized_start = 3003 _globals["_LISTCOLUMNS"]._serialized_end = 3089 _globals["_GETDATABASE"]._serialized_start = 3091 _globals["_GETDATABASE"]._serialized_end = 3129 _globals["_GETTABLE"]._serialized_start = 3131 _globals["_GETTABLE"]._serialized_end = 3214 _globals["_GETFUNCTION"]._serialized_start = 3216 _globals["_GETFUNCTION"]._serialized_end = 3308 _globals["_DATABASEEXISTS"]._serialized_start = 3310 _globals["_DATABASEEXISTS"]._serialized_end = 3351 _globals["_TABLEEXISTS"]._serialized_start = 3353 _globals["_TABLEEXISTS"]._serialized_end = 3439 _globals["_FUNCTIONEXISTS"]._serialized_start = 3441 _globals["_FUNCTIONEXISTS"]._serialized_end = 3536 _globals["_CREATEEXTERNALTABLE"]._serialized_start = 3539 _globals["_CREATEEXTERNALTABLE"]._serialized_end = 3865 _globals["_CREATEEXTERNALTABLE_OPTIONSENTRY"]._serialized_start = 3776 _globals["_CREATEEXTERNALTABLE_OPTIONSENTRY"]._serialized_end = 3834 _globals["_CREATETABLE"]._serialized_start = 3868 _globals["_CREATETABLE"]._serialized_end = 4233 _globals["_CREATETABLE_OPTIONSENTRY"]._serialized_start = 3776 _globals["_CREATETABLE_OPTIONSENTRY"]._serialized_end = 3834 _globals["_DROPTEMPVIEW"]._serialized_start = 4235 _globals["_DROPTEMPVIEW"]._serialized_end = 4278 _globals["_DROPGLOBALTEMPVIEW"]._serialized_start = 4280 _globals["_DROPGLOBALTEMPVIEW"]._serialized_end = 4329 _globals["_RECOVERPARTITIONS"]._serialized_start = 4331 _globals["_RECOVERPARTITIONS"]._serialized_end = 4381 _globals["_ISCACHED"]._serialized_start = 4383 _globals["_ISCACHED"]._serialized_end = 4424 _globals["_CACHETABLE"]._serialized_start = 4427 _globals["_CACHETABLE"]._serialized_end = 4559 _globals["_UNCACHETABLE"]._serialized_start = 4561 _globals["_UNCACHETABLE"]._serialized_end = 4606 _globals["_CLEARCACHE"]._serialized_start = 4608 _globals["_CLEARCACHE"]._serialized_end = 4620 _globals["_REFRESHTABLE"]._serialized_start = 4622 _globals["_REFRESHTABLE"]._serialized_end = 4667 _globals["_REFRESHBYPATH"]._serialized_start = 4669 _globals["_REFRESHBYPATH"]._serialized_end = 4704 _globals["_CURRENTCATALOG"]._serialized_start = 4706 _globals["_CURRENTCATALOG"]._serialized_end = 4722 _globals["_SETCURRENTCATALOG"]._serialized_start = 4724 _globals["_SETCURRENTCATALOG"]._serialized_end = 4778 _globals["_LISTCATALOGS"]._serialized_start = 4780 _globals["_LISTCATALOGS"]._serialized_end = 4837 _globals["_DROPTABLE"]._serialized_start = 4839 _globals["_DROPTABLE"]._serialized_end = 4932 _globals["_DROPVIEW"]._serialized_start = 4934 _globals["_DROPVIEW"]._serialized_end = 5002 _globals["_CREATEDATABASE"]._serialized_start = 5005 _globals["_CREATEDATABASE"]._serialized_end = 5224 _globals["_CREATEDATABASE_PROPERTIESENTRY"]._serialized_start = 5163 _globals["_CREATEDATABASE_PROPERTIESENTRY"]._serialized_end = 5224 _globals["_DROPDATABASE"]._serialized_start = 5226 _globals["_DROPDATABASE"]._serialized_end = 5320 _globals["_LISTPARTITIONS"]._serialized_start = 5322 _globals["_LISTPARTITIONS"]._serialized_end = 5369 _globals["_LISTVIEWS"]._serialized_start = 5371 _globals["_LISTVIEWS"]._serialized_end = 5467 _globals["_GETTABLEPROPERTIES"]._serialized_start = 5469 _globals["_GETTABLEPROPERTIES"]._serialized_end = 5520 _globals["_GETCREATETABLESTRING"]._serialized_start = 5522 _globals["_GETCREATETABLESTRING"]._serialized_end = 5602 _globals["_TRUNCATETABLE"]._serialized_start = 5604 _globals["_TRUNCATETABLE"]._serialized_end = 5650 _globals["_ANALYZETABLE"]._serialized_start = 5652 _globals["_ANALYZETABLE"]._serialized_end = 5722 # @@protoc_insertion_point(module_scope)