query-cache-protobuf 2.10.0__tar.gz → 2.12.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/PKG-INFO +1 -1
  2. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto4/query_cache_protobuf/query_cache/services/clone_service_pb2.py +18 -18
  3. query_cache_protobuf-2.12.0/src/query_cache_protobuf/_proto4/query_cache_protobuf/query_cache/services/sql_analysis_service_pb2.py +34 -0
  4. query_cache_protobuf-2.12.0/src/query_cache_protobuf/_proto4/query_cache_protobuf/query_cache/services/sql_analysis_service_pb2_grpc.py +66 -0
  5. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto4/query_cache_protobuf/query_cache/shared_pb2.py +6 -6
  6. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto5/query_cache_protobuf/query_cache/services/clone_service_pb2.py +18 -18
  7. query_cache_protobuf-2.12.0/src/query_cache_protobuf/_proto5/query_cache_protobuf/query_cache/services/sql_analysis_service_pb2.py +44 -0
  8. query_cache_protobuf-2.12.0/src/query_cache_protobuf/_proto5/query_cache_protobuf/query_cache/services/sql_analysis_service_pb2_grpc.py +97 -0
  9. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto5/query_cache_protobuf/query_cache/shared_pb2.py +6 -6
  10. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/query_cache/services/clone_service_pb2.py +18 -18
  11. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/query_cache/services/clone_service_pb2.pyi +10 -2
  12. query_cache_protobuf-2.12.0/src/query_cache_protobuf/query_cache/services/sql_analysis_service_pb2.py +44 -0
  13. query_cache_protobuf-2.12.0/src/query_cache_protobuf/query_cache/services/sql_analysis_service_pb2.pyi +95 -0
  14. query_cache_protobuf-2.12.0/src/query_cache_protobuf/query_cache/services/sql_analysis_service_pb2_grpc.py +97 -0
  15. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/query_cache/shared_pb2.py +6 -6
  16. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/query_cache/shared_pb2.pyi +2 -0
  17. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/.gitignore +0 -0
  18. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/pyproject.toml +0 -0
  19. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/__init__.py +0 -0
  20. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto4/__init__.py +0 -0
  21. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto4/query_cache_protobuf/__init__.py +0 -0
  22. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto4/query_cache_protobuf/query_cache/__init__.py +0 -0
  23. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto4/query_cache_protobuf/query_cache/services/__init__.py +0 -0
  24. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto4/query_cache_protobuf/query_cache/services/client_telemetry_service_pb2.py +0 -0
  25. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto4/query_cache_protobuf/query_cache/services/client_telemetry_service_pb2_grpc.py +0 -0
  26. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto4/query_cache_protobuf/query_cache/services/client_validation_service_pb2.py +0 -0
  27. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto4/query_cache_protobuf/query_cache/services/client_validation_service_pb2_grpc.py +0 -0
  28. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto4/query_cache_protobuf/query_cache/services/clone_service_pb2_grpc.py +0 -0
  29. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto4/query_cache_protobuf/query_cache/services/execution_service_pb2.py +0 -0
  30. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto4/query_cache_protobuf/query_cache/services/execution_service_pb2_grpc.py +0 -0
  31. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto4/query_cache_protobuf/query_cache/services/explain_service_pb2.py +0 -0
  32. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto4/query_cache_protobuf/query_cache/services/explain_service_pb2_grpc.py +0 -0
  33. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto4/query_cache_protobuf/query_cache/services/health_service_pb2.py +0 -0
  34. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto4/query_cache_protobuf/query_cache/services/health_service_pb2_grpc.py +0 -0
  35. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto4/query_cache_protobuf/query_cache/services/selector_service_pb2.py +0 -0
  36. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto4/query_cache_protobuf/query_cache/services/selector_service_pb2_grpc.py +0 -0
  37. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto4/query_cache_protobuf/query_cache/services/sql_service_pb2.py +0 -0
  38. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto4/query_cache_protobuf/query_cache/services/sql_service_pb2_grpc.py +0 -0
  39. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto4/query_cache_protobuf/query_cache/shared_pb2_grpc.py +0 -0
  40. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto4/query_cache_protobuf/query_cache/struct_pb2.py +0 -0
  41. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto4/query_cache_protobuf/query_cache/struct_pb2_grpc.py +0 -0
  42. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto5/__init__.py +0 -0
  43. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto5/query_cache_protobuf/__init__.py +0 -0
  44. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto5/query_cache_protobuf/query_cache/__init__.py +0 -0
  45. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto5/query_cache_protobuf/query_cache/services/__init__.py +0 -0
  46. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto5/query_cache_protobuf/query_cache/services/client_telemetry_service_pb2.py +0 -0
  47. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto5/query_cache_protobuf/query_cache/services/client_telemetry_service_pb2_grpc.py +0 -0
  48. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto5/query_cache_protobuf/query_cache/services/client_validation_service_pb2.py +0 -0
  49. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto5/query_cache_protobuf/query_cache/services/client_validation_service_pb2_grpc.py +0 -0
  50. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto5/query_cache_protobuf/query_cache/services/clone_service_pb2_grpc.py +0 -0
  51. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto5/query_cache_protobuf/query_cache/services/execution_service_pb2.py +0 -0
  52. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto5/query_cache_protobuf/query_cache/services/execution_service_pb2_grpc.py +0 -0
  53. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto5/query_cache_protobuf/query_cache/services/explain_service_pb2.py +0 -0
  54. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto5/query_cache_protobuf/query_cache/services/explain_service_pb2_grpc.py +0 -0
  55. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto5/query_cache_protobuf/query_cache/services/health_service_pb2.py +0 -0
  56. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto5/query_cache_protobuf/query_cache/services/health_service_pb2_grpc.py +0 -0
  57. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto5/query_cache_protobuf/query_cache/services/selector_service_pb2.py +0 -0
  58. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto5/query_cache_protobuf/query_cache/services/selector_service_pb2_grpc.py +0 -0
  59. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto5/query_cache_protobuf/query_cache/services/sql_service_pb2.py +0 -0
  60. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto5/query_cache_protobuf/query_cache/services/sql_service_pb2_grpc.py +0 -0
  61. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto5/query_cache_protobuf/query_cache/shared_pb2_grpc.py +0 -0
  62. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto5/query_cache_protobuf/query_cache/struct_pb2.py +0 -0
  63. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto5/query_cache_protobuf/query_cache/struct_pb2_grpc.py +0 -0
  64. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/query_cache/__init__.py +0 -0
  65. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/query_cache/services/__init__.py +0 -0
  66. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/query_cache/services/client_telemetry_service_pb2.py +0 -0
  67. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/query_cache/services/client_telemetry_service_pb2.pyi +0 -0
  68. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/query_cache/services/client_telemetry_service_pb2_grpc.py +0 -0
  69. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/query_cache/services/client_validation_service_pb2.py +0 -0
  70. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/query_cache/services/client_validation_service_pb2.pyi +0 -0
  71. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/query_cache/services/client_validation_service_pb2_grpc.py +0 -0
  72. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/query_cache/services/clone_service_pb2_grpc.py +0 -0
  73. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/query_cache/services/execution_service_pb2.py +0 -0
  74. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/query_cache/services/execution_service_pb2.pyi +0 -0
  75. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/query_cache/services/execution_service_pb2_grpc.py +0 -0
  76. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/query_cache/services/explain_service_pb2.py +0 -0
  77. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/query_cache/services/explain_service_pb2.pyi +0 -0
  78. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/query_cache/services/explain_service_pb2_grpc.py +0 -0
  79. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/query_cache/services/health_service_pb2.py +0 -0
  80. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/query_cache/services/health_service_pb2.pyi +0 -0
  81. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/query_cache/services/health_service_pb2_grpc.py +0 -0
  82. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/query_cache/services/selector_service_pb2.py +0 -0
  83. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/query_cache/services/selector_service_pb2.pyi +0 -0
  84. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/query_cache/services/selector_service_pb2_grpc.py +0 -0
  85. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/query_cache/services/sql_service_pb2.py +0 -0
  86. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/query_cache/services/sql_service_pb2.pyi +0 -0
  87. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/query_cache/services/sql_service_pb2_grpc.py +0 -0
  88. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/query_cache/shared_pb2_grpc.py +0 -0
  89. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/query_cache/struct_pb2.py +0 -0
  90. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/query_cache/struct_pb2.pyi +0 -0
  91. {query_cache_protobuf-2.10.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/query_cache/struct_pb2_grpc.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: query-cache-protobuf
3
- Version: 2.10.0
3
+ Version: 2.12.0
4
4
  Summary: Generated protobuf code for Query Cache
5
5
  License:
6
6
  Apache License
@@ -16,7 +16,7 @@ from query_cache_protobuf.query_cache import shared_pb2 as query__cache__protobu
16
16
  from query_cache_protobuf.query_cache import struct_pb2 as query__cache__protobuf_dot_query__cache_dot_struct__pb2
17
17
 
18
18
 
19
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n=query_cache_protobuf/query_cache/services/clone_service.proto\x12\x18\x63om.fivetran.query_cache\x1a-query_cache_protobuf/query_cache/shared.proto\x1a-query_cache_protobuf/query_cache/struct.proto\"\x91\x01\n\x0fTableProperties\x12 \n\x13hours_to_expiration\x18\x01 \x01(\x05H\x00\x88\x01\x01\x12&\n\x19partition_expiration_days\x18\x02 \x01(\x05H\x01\x88\x01\x01\x42\x16\n\x14_hours_to_expirationB\x1c\n\x1a_partition_expiration_days\"\x8c\x05\n\x0c\x43loneRequest\x12\x14\n\x0ctarget_table\x18\x01 \x01(\t\x12\x0f\n\x07\x64ialect\x18\x02 \x01(\t\x12\x17\n\x0f\x64\x65\x66\x61ult_catalog\x18\x03 \x01(\t\x12\x44\n\x0e\x65xecution_type\x18\x04 \x01(\x0e\x32,.com.fivetran.query_cache.ModelExecutionType\x12\x1a\n\x12\x63lone_source_table\x18\x05 \x01(\t\x12-\n clone_source_last_modified_epoch\x18\x06 \x01(\x03H\x00\x88\x01\x01\x12\x42\n\x06labels\x18\x07 \x03(\x0b\x32\x32.com.fivetran.query_cache.CloneRequest.LabelsEntry\x12$\n\x17\x63lone_source_table_type\x18\x08 \x01(\tH\x01\x88\x01\x01\x12H\n\x10table_properties\x18\t \x01(\x0b\x32).com.fivetran.query_cache.TablePropertiesH\x02\x88\x01\x01\x12$\n\x17\x63lone_chain_depth_limit\x18\n \x01(\x03H\x03\x88\x01\x01\x12\x1c\n\x0ftable_namespace\x18\x0b \x01(\tH\x04\x88\x01\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42#\n!_clone_source_last_modified_epochB\x1a\n\x18_clone_source_table_typeB\x13\n\x11_table_propertiesB\x1a\n\x18_clone_chain_depth_limitB\x12\n\x10_table_namespace\"\xd3\x02\n\rCloneResponse\x12\x46\n\x0eready_to_clone\x18\x03 \x01(\x0b\x32..com.fivetran.query_cache.ReadyToCloneResponse\x12H\n\x0funable_to_clone\x18\x04 \x01(\x0b\x32/.com.fivetran.query_cache.UnableToCloneResponse\x12O\n\x11ready_to_clone_v1\x18\x01 \x01(\x0b\x32..com.fivetran.query_cache.ReadyToCloneResponseB\x02\x18\x01H\x00\x12S\n\x11untrackable_clone\x18\x02 \x01(\x0b\x32\x32.com.fivetran.query_cache.UntrackableCloneResponseB\x02\x18\x01H\x00\x42\n\n\x08response\"\xcb\x05\n\x14ReadyToCloneResponse\x12\x12\n\nrequest_id\x18\x01 \x01(\t\x12\x1f\n\x13last_modified_query\x18\x02 \x01(\tB\x02\x18\x01\x12\x12\n\nclone_sqls\x18\x03 \x03(\t\x12\x14\n\x0c\x63lone_source\x18\x04 \x01(\t\x12\x14\n\x0c\x63lone_target\x18\x05 \x01(\t\x12G\n\x12\x65xplained_decision\x18\x06 \x01(\x0b\x32+.com.fivetran.query_cache.ExplainedDecision\x12o\n\x1atransformed_nodes_by_query\x18\x07 \x03(\x0b\x32K.com.fivetran.query_cache.ReadyToCloneResponse.TransformedNodesByQueryEntry\x12/\n\"clone_required_last_modified_epoch\x18\x08 \x01(\x03H\x00\x88\x01\x01\x12\x41\n\x17\x63lone_execution_results\x18\n \x01(\x0b\x32 .com.fivetran.query_cache.Struct\x12!\n\x14\x65xecution_runtime_ms\x18\x0b \x01(\x03H\x01\x88\x01\x01\x12\"\n\x15\x65xecution_decision_id\x18\x0c \x01(\tH\x02\x88\x01\x01\x1ai\n\x1cTransformedNodesByQueryEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x38\n\x05value\x18\x02 \x01(\x0b\x32).com.fivetran.query_cache.NodeFuncMapping:\x02\x38\x01\x42%\n#_clone_required_last_modified_epochB\x17\n\x15_execution_runtime_msB\x18\n\x16_execution_decision_idJ\x04\x08\t\x10\n\"\x87\x03\n\x18UntrackableCloneResponse\x12\x12\n\nclone_sqls\x18\x01 \x03(\t\x12\x14\n\x0c\x63lone_source\x18\x02 \x01(\t\x12\x14\n\x0c\x63lone_target\x18\x03 \x01(\t\x12G\n\x12\x65xplained_decision\x18\x04 \x01(\x0b\x32+.com.fivetran.query_cache.ExplainedDecision\x12s\n\x1atransformed_nodes_by_query\x18\x05 \x03(\x0b\x32O.com.fivetran.query_cache.UntrackableCloneResponse.TransformedNodesByQueryEntry\x1ai\n\x1cTransformedNodesByQueryEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x38\n\x05value\x18\x02 \x01(\x0b\x32).com.fivetran.query_cache.NodeFuncMapping:\x02\x38\x01:\x02\x18\x01\"\x8c\x01\n\x15UnableToCloneResponse\x12\x14\n\x0c\x63lone_source\x18\x01 \x01(\t\x12\x14\n\x0c\x63lone_target\x18\x02 \x01(\t\x12G\n\x12\x65xplained_decision\x18\x03 \x01(\x0b\x32+.com.fivetran.query_cache.ExplainedDecision2i\n\x05\x43lone\x12`\n\rRegisterClone\x12&.com.fivetran.query_cache.CloneRequest\x1a\'.com.fivetran.query_cache.CloneResponseb\x06proto3')
19
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n=query_cache_protobuf/query_cache/services/clone_service.proto\x12\x18\x63om.fivetran.query_cache\x1a-query_cache_protobuf/query_cache/shared.proto\x1a-query_cache_protobuf/query_cache/struct.proto\"\x91\x01\n\x0fTableProperties\x12 \n\x13hours_to_expiration\x18\x01 \x01(\x05H\x00\x88\x01\x01\x12&\n\x19partition_expiration_days\x18\x02 \x01(\x05H\x01\x88\x01\x01\x42\x16\n\x14_hours_to_expirationB\x1c\n\x1a_partition_expiration_days\"\xc2\x05\n\x0c\x43loneRequest\x12\x14\n\x0ctarget_table\x18\x01 \x01(\t\x12\x0f\n\x07\x64ialect\x18\x02 \x01(\t\x12\x17\n\x0f\x64\x65\x66\x61ult_catalog\x18\x03 \x01(\t\x12\x44\n\x0e\x65xecution_type\x18\x04 \x01(\x0e\x32,.com.fivetran.query_cache.ModelExecutionType\x12\x1a\n\x12\x63lone_source_table\x18\x05 \x01(\t\x12-\n clone_source_last_modified_epoch\x18\x06 \x01(\x03H\x00\x88\x01\x01\x12\x42\n\x06labels\x18\x07 \x03(\x0b\x32\x32.com.fivetran.query_cache.CloneRequest.LabelsEntry\x12$\n\x17\x63lone_source_table_type\x18\x08 \x01(\tH\x01\x88\x01\x01\x12H\n\x10table_properties\x18\t \x01(\x0b\x32).com.fivetran.query_cache.TablePropertiesH\x02\x88\x01\x01\x12$\n\x17\x63lone_chain_depth_limit\x18\n \x01(\x03H\x03\x88\x01\x01\x12\x1c\n\x0ftable_namespace\x18\x0b \x01(\tH\x04\x88\x01\x01\x12\x1e\n\x11skip_if_unchanged\x18\x0c \x01(\x08H\x05\x88\x01\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42#\n!_clone_source_last_modified_epochB\x1a\n\x18_clone_source_table_typeB\x13\n\x11_table_propertiesB\x1a\n\x18_clone_chain_depth_limitB\x12\n\x10_table_namespaceB\x14\n\x12_skip_if_unchanged\"\xd3\x02\n\rCloneResponse\x12\x46\n\x0eready_to_clone\x18\x03 \x01(\x0b\x32..com.fivetran.query_cache.ReadyToCloneResponse\x12H\n\x0funable_to_clone\x18\x04 \x01(\x0b\x32/.com.fivetran.query_cache.UnableToCloneResponse\x12O\n\x11ready_to_clone_v1\x18\x01 \x01(\x0b\x32..com.fivetran.query_cache.ReadyToCloneResponseB\x02\x18\x01H\x00\x12S\n\x11untrackable_clone\x18\x02 \x01(\x0b\x32\x32.com.fivetran.query_cache.UntrackableCloneResponseB\x02\x18\x01H\x00\x42\n\n\x08response\"\xcb\x05\n\x14ReadyToCloneResponse\x12\x12\n\nrequest_id\x18\x01 \x01(\t\x12\x1f\n\x13last_modified_query\x18\x02 \x01(\tB\x02\x18\x01\x12\x12\n\nclone_sqls\x18\x03 \x03(\t\x12\x14\n\x0c\x63lone_source\x18\x04 \x01(\t\x12\x14\n\x0c\x63lone_target\x18\x05 \x01(\t\x12G\n\x12\x65xplained_decision\x18\x06 \x01(\x0b\x32+.com.fivetran.query_cache.ExplainedDecision\x12o\n\x1atransformed_nodes_by_query\x18\x07 \x03(\x0b\x32K.com.fivetran.query_cache.ReadyToCloneResponse.TransformedNodesByQueryEntry\x12/\n\"clone_required_last_modified_epoch\x18\x08 \x01(\x03H\x00\x88\x01\x01\x12\x41\n\x17\x63lone_execution_results\x18\n \x01(\x0b\x32 .com.fivetran.query_cache.Struct\x12!\n\x14\x65xecution_runtime_ms\x18\x0b \x01(\x03H\x01\x88\x01\x01\x12\"\n\x15\x65xecution_decision_id\x18\x0c \x01(\tH\x02\x88\x01\x01\x1ai\n\x1cTransformedNodesByQueryEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x38\n\x05value\x18\x02 \x01(\x0b\x32).com.fivetran.query_cache.NodeFuncMapping:\x02\x38\x01\x42%\n#_clone_required_last_modified_epochB\x17\n\x15_execution_runtime_msB\x18\n\x16_execution_decision_idJ\x04\x08\t\x10\n\"\x87\x03\n\x18UntrackableCloneResponse\x12\x12\n\nclone_sqls\x18\x01 \x03(\t\x12\x14\n\x0c\x63lone_source\x18\x02 \x01(\t\x12\x14\n\x0c\x63lone_target\x18\x03 \x01(\t\x12G\n\x12\x65xplained_decision\x18\x04 \x01(\x0b\x32+.com.fivetran.query_cache.ExplainedDecision\x12s\n\x1atransformed_nodes_by_query\x18\x05 \x03(\x0b\x32O.com.fivetran.query_cache.UntrackableCloneResponse.TransformedNodesByQueryEntry\x1ai\n\x1cTransformedNodesByQueryEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x38\n\x05value\x18\x02 \x01(\x0b\x32).com.fivetran.query_cache.NodeFuncMapping:\x02\x38\x01:\x02\x18\x01\"\x8c\x01\n\x15UnableToCloneResponse\x12\x14\n\x0c\x63lone_source\x18\x01 \x01(\t\x12\x14\n\x0c\x63lone_target\x18\x02 \x01(\t\x12G\n\x12\x65xplained_decision\x18\x03 \x01(\x0b\x32+.com.fivetran.query_cache.ExplainedDecision2i\n\x05\x43lone\x12`\n\rRegisterClone\x12&.com.fivetran.query_cache.CloneRequest\x1a\'.com.fivetran.query_cache.CloneResponseb\x06proto3')
20
20
 
21
21
  _globals = globals()
22
22
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
@@ -40,21 +40,21 @@ if _descriptor._USE_C_DESCRIPTORS == False:
40
40
  _globals['_TABLEPROPERTIES']._serialized_start=186
41
41
  _globals['_TABLEPROPERTIES']._serialized_end=331
42
42
  _globals['_CLONEREQUEST']._serialized_start=334
43
- _globals['_CLONEREQUEST']._serialized_end=986
44
- _globals['_CLONEREQUEST_LABELSENTRY']._serialized_start=807
45
- _globals['_CLONEREQUEST_LABELSENTRY']._serialized_end=852
46
- _globals['_CLONERESPONSE']._serialized_start=989
47
- _globals['_CLONERESPONSE']._serialized_end=1328
48
- _globals['_READYTOCLONERESPONSE']._serialized_start=1331
49
- _globals['_READYTOCLONERESPONSE']._serialized_end=2046
50
- _globals['_READYTOCLONERESPONSE_TRANSFORMEDNODESBYQUERYENTRY']._serialized_start=1845
51
- _globals['_READYTOCLONERESPONSE_TRANSFORMEDNODESBYQUERYENTRY']._serialized_end=1950
52
- _globals['_UNTRACKABLECLONERESPONSE']._serialized_start=2049
53
- _globals['_UNTRACKABLECLONERESPONSE']._serialized_end=2440
54
- _globals['_UNTRACKABLECLONERESPONSE_TRANSFORMEDNODESBYQUERYENTRY']._serialized_start=1845
55
- _globals['_UNTRACKABLECLONERESPONSE_TRANSFORMEDNODESBYQUERYENTRY']._serialized_end=1950
56
- _globals['_UNABLETOCLONERESPONSE']._serialized_start=2443
57
- _globals['_UNABLETOCLONERESPONSE']._serialized_end=2583
58
- _globals['_CLONE']._serialized_start=2585
59
- _globals['_CLONE']._serialized_end=2690
43
+ _globals['_CLONEREQUEST']._serialized_end=1040
44
+ _globals['_CLONEREQUEST_LABELSENTRY']._serialized_start=839
45
+ _globals['_CLONEREQUEST_LABELSENTRY']._serialized_end=884
46
+ _globals['_CLONERESPONSE']._serialized_start=1043
47
+ _globals['_CLONERESPONSE']._serialized_end=1382
48
+ _globals['_READYTOCLONERESPONSE']._serialized_start=1385
49
+ _globals['_READYTOCLONERESPONSE']._serialized_end=2100
50
+ _globals['_READYTOCLONERESPONSE_TRANSFORMEDNODESBYQUERYENTRY']._serialized_start=1899
51
+ _globals['_READYTOCLONERESPONSE_TRANSFORMEDNODESBYQUERYENTRY']._serialized_end=2004
52
+ _globals['_UNTRACKABLECLONERESPONSE']._serialized_start=2103
53
+ _globals['_UNTRACKABLECLONERESPONSE']._serialized_end=2494
54
+ _globals['_UNTRACKABLECLONERESPONSE_TRANSFORMEDNODESBYQUERYENTRY']._serialized_start=1899
55
+ _globals['_UNTRACKABLECLONERESPONSE_TRANSFORMEDNODESBYQUERYENTRY']._serialized_end=2004
56
+ _globals['_UNABLETOCLONERESPONSE']._serialized_start=2497
57
+ _globals['_UNABLETOCLONERESPONSE']._serialized_end=2637
58
+ _globals['_CLONE']._serialized_start=2639
59
+ _globals['_CLONE']._serialized_end=2744
60
60
  # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,34 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: query_cache_protobuf/query_cache/services/sql_analysis_service.proto
4
+ # Protobuf Python Version: 4.25.1
5
+ """Generated protocol buffer code."""
6
+ from google.protobuf import descriptor as _descriptor
7
+ from google.protobuf import descriptor_pool as _descriptor_pool
8
+ from google.protobuf import symbol_database as _symbol_database
9
+ from google.protobuf.internal import builder as _builder
10
+ # @@protoc_insertion_point(imports)
11
+
12
+ _sym_db = _symbol_database.Default()
13
+
14
+
15
+
16
+
17
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\nDquery_cache_protobuf/query_cache/services/sql_analysis_service.proto\x12\x18\x63om.fivetran.query_cache\">\n\x1d\x45xtractTableReferencesRequest\x12\x0f\n\x07\x64ialect\x18\x01 \x01(\t\x12\x0c\n\x04sqls\x18\x02 \x03(\t\",\n\x0eTableReference\x12\r\n\x05parts\x18\x01 \x03(\t\x12\x0b\n\x03\x66qn\x18\x02 \x01(\t\"b\n\x12SqlTableReferences\x12\x0e\n\x06parsed\x18\x01 \x01(\x08\x12<\n\nreferences\x18\x02 \x03(\x0b\x32(.com.fivetran.query_cache.TableReference\"_\n\x1e\x45xtractTableReferencesResponse\x12=\n\x07results\x18\x01 \x03(\x0b\x32,.com.fivetran.query_cache.SqlTableReferences2\x9b\x01\n\x0bSQLAnalysis\x12\x8b\x01\n\x16\x45xtractTableReferences\x12\x37.com.fivetran.query_cache.ExtractTableReferencesRequest\x1a\x38.com.fivetran.query_cache.ExtractTableReferencesResponseb\x06proto3')
18
+
19
+ _globals = globals()
20
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
21
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'query_cache_protobuf.query_cache.services.sql_analysis_service_pb2', _globals)
22
+ if _descriptor._USE_C_DESCRIPTORS == False:
23
+ DESCRIPTOR._options = None
24
+ _globals['_EXTRACTTABLEREFERENCESREQUEST']._serialized_start=98
25
+ _globals['_EXTRACTTABLEREFERENCESREQUEST']._serialized_end=160
26
+ _globals['_TABLEREFERENCE']._serialized_start=162
27
+ _globals['_TABLEREFERENCE']._serialized_end=206
28
+ _globals['_SQLTABLEREFERENCES']._serialized_start=208
29
+ _globals['_SQLTABLEREFERENCES']._serialized_end=306
30
+ _globals['_EXTRACTTABLEREFERENCESRESPONSE']._serialized_start=308
31
+ _globals['_EXTRACTTABLEREFERENCESRESPONSE']._serialized_end=403
32
+ _globals['_SQLANALYSIS']._serialized_start=406
33
+ _globals['_SQLANALYSIS']._serialized_end=561
34
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,66 @@
1
+ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
+ """Client and server classes corresponding to protobuf-defined services."""
3
+ import grpc
4
+
5
+ from query_cache_protobuf.query_cache.services import sql_analysis_service_pb2 as query__cache__protobuf_dot_query__cache_dot_services_dot_sql__analysis__service__pb2
6
+
7
+
8
+ class SQLAnalysisStub(object):
9
+ """Missing associated documentation comment in .proto file."""
10
+
11
+ def __init__(self, channel):
12
+ """Constructor.
13
+
14
+ Args:
15
+ channel: A grpc.Channel.
16
+ """
17
+ self.ExtractTableReferences = channel.unary_unary(
18
+ '/com.fivetran.query_cache.SQLAnalysis/ExtractTableReferences',
19
+ request_serializer=query__cache__protobuf_dot_query__cache_dot_services_dot_sql__analysis__service__pb2.ExtractTableReferencesRequest.SerializeToString,
20
+ response_deserializer=query__cache__protobuf_dot_query__cache_dot_services_dot_sql__analysis__service__pb2.ExtractTableReferencesResponse.FromString,
21
+ )
22
+
23
+
24
+ class SQLAnalysisServicer(object):
25
+ """Missing associated documentation comment in .proto file."""
26
+
27
+ def ExtractTableReferences(self, request, context):
28
+ """Missing associated documentation comment in .proto file."""
29
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
30
+ context.set_details('Method not implemented!')
31
+ raise NotImplementedError('Method not implemented!')
32
+
33
+
34
+ def add_SQLAnalysisServicer_to_server(servicer, server):
35
+ rpc_method_handlers = {
36
+ 'ExtractTableReferences': grpc.unary_unary_rpc_method_handler(
37
+ servicer.ExtractTableReferences,
38
+ request_deserializer=query__cache__protobuf_dot_query__cache_dot_services_dot_sql__analysis__service__pb2.ExtractTableReferencesRequest.FromString,
39
+ response_serializer=query__cache__protobuf_dot_query__cache_dot_services_dot_sql__analysis__service__pb2.ExtractTableReferencesResponse.SerializeToString,
40
+ ),
41
+ }
42
+ generic_handler = grpc.method_handlers_generic_handler(
43
+ 'com.fivetran.query_cache.SQLAnalysis', rpc_method_handlers)
44
+ server.add_generic_rpc_handlers((generic_handler,))
45
+
46
+
47
+ # This class is part of an EXPERIMENTAL API.
48
+ class SQLAnalysis(object):
49
+ """Missing associated documentation comment in .proto file."""
50
+
51
+ @staticmethod
52
+ def ExtractTableReferences(request,
53
+ target,
54
+ options=(),
55
+ channel_credentials=None,
56
+ call_credentials=None,
57
+ insecure=False,
58
+ compression=None,
59
+ wait_for_ready=None,
60
+ timeout=None,
61
+ metadata=None):
62
+ return grpc.experimental.unary_unary(request, target, '/com.fivetran.query_cache.SQLAnalysis/ExtractTableReferences',
63
+ query__cache__protobuf_dot_query__cache_dot_services_dot_sql__analysis__service__pb2.ExtractTableReferencesRequest.SerializeToString,
64
+ query__cache__protobuf_dot_query__cache_dot_services_dot_sql__analysis__service__pb2.ExtractTableReferencesResponse.FromString,
65
+ options, channel_credentials,
66
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@@ -14,7 +14,7 @@ _sym_db = _symbol_database.Default()
14
14
 
15
15
 
16
16
 
17
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n-query_cache_protobuf/query_cache/shared.proto\x12\x18\x63om.fivetran.query_cache\"\xe5\x01\n\x11TableModifiedInfo\x12\x0c\n\x04name\x18\x01 \x01(\t\x12 \n\x13last_modified_epoch\x18\x02 \x01(\x03H\x00\x88\x01\x01\x12H\n\x04kind\x18\x03 \x01(\x0e\x32:.com.fivetran.query_cache.TableModifiedInfo.DependencyKind\">\n\x0e\x44\x65pendencyKind\x12\x0b\n\x07UNKNOWN\x10\x00\x12\n\n\x06SOURCE\x10\x01\x12\x08\n\x04SEED\x10\x02\x12\t\n\x05MODEL\x10\x03\x42\x16\n\x14_last_modified_epoch\"(\n\nColumnInfo\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04type\x18\x02 \x01(\t\"R\n\x0bTableSchema\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x35\n\x07\x63olumns\x18\x02 \x03(\x0b\x32$.com.fivetran.query_cache.ColumnInfo\"_\n\x0fQueryDependency\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05query\x18\x02 \x01(\t\x12\x17\n\x0f\x64\x65\x66\x61ult_catalog\x18\x03 \x01(\t\x12\x16\n\x0e\x64\x65\x66\x61ult_schema\x18\x04 \x01(\t\"\xd8\x02\n\x11\x45xplainedDecision\x12?\n\x08\x64\x65\x63ision\x18\x01 \x01(\x0e\x32-.com.fivetran.query_cache.SubmitSQLResultType\x12M\n\x15skip_rejection_reason\x18\x02 \x01(\x0e\x32).com.fivetran.query_cache.RejectionReasonH\x00\x88\x01\x01\x12N\n\x16\x63lone_rejection_reason\x18\x03 \x01(\x0e\x32).com.fivetran.query_cache.RejectionReasonH\x01\x88\x01\x01\x12\x10\n\x08is_stale\x18\x04 \x01(\x08\x12\x1c\n\x14\x64\x65\x63ision_description\x18\x05 \x01(\tB\x18\n\x16_skip_rejection_reasonB\x19\n\x17_clone_rejection_reason\"\x95\x01\n\x0fNodeFuncMapping\x12O\n\x0cnode_to_func\x18\x01 \x03(\x0b\x32\x39.com.fivetran.query_cache.NodeFuncMapping.NodeToFuncEntry\x1a\x31\n\x0fNodeToFuncEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xb7\x04\n\x0c\x44\x62tNodeState\x12\x16\n\x0enode_unique_id\x18\x01 \x01(\t\x12\x13\n\x0btarget_name\x18\x02 \x01(\t\x12\x14\n\x0cproject_name\x18\x03 \x01(\t\x12\x15\n\rresource_type\x18\x04 \x01(\t\x12\x11\n\tnode_hash\x18\x05 \x01(\t\x12\x1b\n\x0enode_body_hash\x18\x06 \x01(\tH\x00\x88\x01\x01\x12\x1e\n\x11node_configs_hash\x18\x07 \x01(\tH\x01\x88\x01\x01\x12-\n node_persisted_descriptions_hash\x18\t \x01(\tH\x02\x88\x01\x01\x12\x1d\n\x10node_macros_hash\x18\n \x01(\tH\x03\x88\x01\x01\x12\x1f\n\x12node_contract_hash\x18\x0b \x01(\tH\x04\x88\x01\x01\x12\x14\n\x0cprofile_name\x18\x0c \x01(\t\x12\x17\n\nproject_id\x18\r \x01(\tH\x05\x88\x01\x01\x12)\n\x1cnode_database_representation\x18\x0f \x01(\tH\x06\x88\x01\x01\x42\x11\n\x0f_node_body_hashB\x14\n\x12_node_configs_hashB#\n!_node_persisted_descriptions_hashB\x13\n\x11_node_macros_hashB\x15\n\x13_node_contract_hashB\r\n\x0b_project_idB\x1f\n\x1d_node_database_representationJ\x04\x08\x08\x10\tJ\x04\x08\x0e\x10\x0f*\xc6\x01\n\x12ModelExecutionType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x08\n\x04\x46ULL\x10\x01\x12\n\n\x06\x41PPEND\x10\x02\x12\t\n\x05MERGE\x10\x03\x12\x14\n\x10INSERT_OVERWRITE\x10\x04\x12\x11\n\rDELETE_INSERT\x10\x05\x12\x0e\n\nMICROBATCH\x10\x06\x12\x0c\n\x08SNAPSHOT\x10\x07\x12\x11\n\rDBT_DATA_TEST\x10\x08\x12\n\n\x06VALUES\x10\t\x12\x08\n\x04VIEW\x10\n\x12\x0e\n\nDBT_CUSTOM\x10\x0b*\xd4\x02\n\x0fRejectionReason\x12\x1c\n\x14NO_FINGERPRINT_MATCH\x10\x00\x1a\x02\x08\x01\x12\x19\n\x15TARGET_TABLE_MISMATCH\x10\x01\x12\x1b\n\x17\x45XECUTION_TYPE_MISMATCH\x10\x02\x12\x1b\n\x17\x45XECUTION_TYPE_NOT_FULL\x10\x03\x12\x1f\n\x1bTARGET_TABLE_DOES_NOT_EXIST\x10\x04\x12\x17\n\x13\x46ORCED_NOT_ELIGIBLE\x10\x05\x12\x1b\n\x17NO_SUITABLE_MATCH_FOUND\x10\x06\x12\x16\n\x12TARGET_TABLE_MATCH\x10\x07\x12\x1f\n\x1bLATEST_QUERY_HASH_NOT_MATCH\x10\x08\x12\x1e\n\x1aOUTSIDE_TIME_TRAVEL_WINDOW\x10\t\x12\x1e\n\x1a\x43LONE_CHAIN_LIMIT_EXCEEDED\x10\n*f\n\x13SubmitSQLResultType\x12\x12\n\x0eSKIP_EXECUTION\x10\x00\x12\x14\n\x10READY_TO_EXECUTE\x10\x01\x12\x12\n\x0eREADY_TO_CLONE\x10\x03\x12\x0b\n\x07UNKNOWN\x10\x04\"\x04\x08\x02\x10\x02*\'\n\x13StaleUpstreamPolicy\x12\x07\n\x03\x41NY\x10\x00\x12\x07\n\x03\x41LL\x10\x01\x62\x06proto3')
17
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n-query_cache_protobuf/query_cache/shared.proto\x12\x18\x63om.fivetran.query_cache\"\xe5\x01\n\x11TableModifiedInfo\x12\x0c\n\x04name\x18\x01 \x01(\t\x12 \n\x13last_modified_epoch\x18\x02 \x01(\x03H\x00\x88\x01\x01\x12H\n\x04kind\x18\x03 \x01(\x0e\x32:.com.fivetran.query_cache.TableModifiedInfo.DependencyKind\">\n\x0e\x44\x65pendencyKind\x12\x0b\n\x07UNKNOWN\x10\x00\x12\n\n\x06SOURCE\x10\x01\x12\x08\n\x04SEED\x10\x02\x12\t\n\x05MODEL\x10\x03\x42\x16\n\x14_last_modified_epoch\"(\n\nColumnInfo\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04type\x18\x02 \x01(\t\"R\n\x0bTableSchema\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x35\n\x07\x63olumns\x18\x02 \x03(\x0b\x32$.com.fivetran.query_cache.ColumnInfo\"_\n\x0fQueryDependency\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05query\x18\x02 \x01(\t\x12\x17\n\x0f\x64\x65\x66\x61ult_catalog\x18\x03 \x01(\t\x12\x16\n\x0e\x64\x65\x66\x61ult_schema\x18\x04 \x01(\t\"\xd8\x02\n\x11\x45xplainedDecision\x12?\n\x08\x64\x65\x63ision\x18\x01 \x01(\x0e\x32-.com.fivetran.query_cache.SubmitSQLResultType\x12M\n\x15skip_rejection_reason\x18\x02 \x01(\x0e\x32).com.fivetran.query_cache.RejectionReasonH\x00\x88\x01\x01\x12N\n\x16\x63lone_rejection_reason\x18\x03 \x01(\x0e\x32).com.fivetran.query_cache.RejectionReasonH\x01\x88\x01\x01\x12\x10\n\x08is_stale\x18\x04 \x01(\x08\x12\x1c\n\x14\x64\x65\x63ision_description\x18\x05 \x01(\tB\x18\n\x16_skip_rejection_reasonB\x19\n\x17_clone_rejection_reason\"\x95\x01\n\x0fNodeFuncMapping\x12O\n\x0cnode_to_func\x18\x01 \x03(\x0b\x32\x39.com.fivetran.query_cache.NodeFuncMapping.NodeToFuncEntry\x1a\x31\n\x0fNodeToFuncEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xb7\x04\n\x0c\x44\x62tNodeState\x12\x16\n\x0enode_unique_id\x18\x01 \x01(\t\x12\x13\n\x0btarget_name\x18\x02 \x01(\t\x12\x14\n\x0cproject_name\x18\x03 \x01(\t\x12\x15\n\rresource_type\x18\x04 \x01(\t\x12\x11\n\tnode_hash\x18\x05 \x01(\t\x12\x1b\n\x0enode_body_hash\x18\x06 \x01(\tH\x00\x88\x01\x01\x12\x1e\n\x11node_configs_hash\x18\x07 \x01(\tH\x01\x88\x01\x01\x12-\n node_persisted_descriptions_hash\x18\t \x01(\tH\x02\x88\x01\x01\x12\x1d\n\x10node_macros_hash\x18\n \x01(\tH\x03\x88\x01\x01\x12\x1f\n\x12node_contract_hash\x18\x0b \x01(\tH\x04\x88\x01\x01\x12\x14\n\x0cprofile_name\x18\x0c \x01(\t\x12\x17\n\nproject_id\x18\r \x01(\tH\x05\x88\x01\x01\x12)\n\x1cnode_database_representation\x18\x0f \x01(\tH\x06\x88\x01\x01\x42\x11\n\x0f_node_body_hashB\x14\n\x12_node_configs_hashB#\n!_node_persisted_descriptions_hashB\x13\n\x11_node_macros_hashB\x15\n\x13_node_contract_hashB\r\n\x0b_project_idB\x1f\n\x1d_node_database_representationJ\x04\x08\x08\x10\tJ\x04\x08\x0e\x10\x0f*\xc6\x01\n\x12ModelExecutionType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x08\n\x04\x46ULL\x10\x01\x12\n\n\x06\x41PPEND\x10\x02\x12\t\n\x05MERGE\x10\x03\x12\x14\n\x10INSERT_OVERWRITE\x10\x04\x12\x11\n\rDELETE_INSERT\x10\x05\x12\x0e\n\nMICROBATCH\x10\x06\x12\x0c\n\x08SNAPSHOT\x10\x07\x12\x11\n\rDBT_DATA_TEST\x10\x08\x12\n\n\x06VALUES\x10\t\x12\x08\n\x04VIEW\x10\n\x12\x0e\n\nDBT_CUSTOM\x10\x0b*\xf0\x02\n\x0fRejectionReason\x12\x1c\n\x14NO_FINGERPRINT_MATCH\x10\x00\x1a\x02\x08\x01\x12\x19\n\x15TARGET_TABLE_MISMATCH\x10\x01\x12\x1b\n\x17\x45XECUTION_TYPE_MISMATCH\x10\x02\x12\x1b\n\x17\x45XECUTION_TYPE_NOT_FULL\x10\x03\x12\x1f\n\x1bTARGET_TABLE_DOES_NOT_EXIST\x10\x04\x12\x17\n\x13\x46ORCED_NOT_ELIGIBLE\x10\x05\x12\x1b\n\x17NO_SUITABLE_MATCH_FOUND\x10\x06\x12\x16\n\x12TARGET_TABLE_MATCH\x10\x07\x12\x1f\n\x1bLATEST_QUERY_HASH_NOT_MATCH\x10\x08\x12\x1e\n\x1aOUTSIDE_TIME_TRAVEL_WINDOW\x10\t\x12\x1e\n\x1a\x43LONE_CHAIN_LIMIT_EXCEEDED\x10\n\x12\x1a\n\x16\x43LONE_SOURCE_UNCHANGED\x10\x0b*f\n\x13SubmitSQLResultType\x12\x12\n\x0eSKIP_EXECUTION\x10\x00\x12\x14\n\x10READY_TO_EXECUTE\x10\x01\x12\x12\n\x0eREADY_TO_CLONE\x10\x03\x12\x0b\n\x07UNKNOWN\x10\x04\"\x04\x08\x02\x10\x02*\'\n\x13StaleUpstreamPolicy\x12\x07\n\x03\x41NY\x10\x00\x12\x07\n\x03\x41LL\x10\x01\x62\x06proto3')
18
18
 
19
19
  _globals = globals()
20
20
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
@@ -28,11 +28,11 @@ if _descriptor._USE_C_DESCRIPTORS == False:
28
28
  _globals['_MODELEXECUTIONTYPE']._serialized_start=1600
29
29
  _globals['_MODELEXECUTIONTYPE']._serialized_end=1798
30
30
  _globals['_REJECTIONREASON']._serialized_start=1801
31
- _globals['_REJECTIONREASON']._serialized_end=2141
32
- _globals['_SUBMITSQLRESULTTYPE']._serialized_start=2143
33
- _globals['_SUBMITSQLRESULTTYPE']._serialized_end=2245
34
- _globals['_STALEUPSTREAMPOLICY']._serialized_start=2247
35
- _globals['_STALEUPSTREAMPOLICY']._serialized_end=2286
31
+ _globals['_REJECTIONREASON']._serialized_end=2169
32
+ _globals['_SUBMITSQLRESULTTYPE']._serialized_start=2171
33
+ _globals['_SUBMITSQLRESULTTYPE']._serialized_end=2273
34
+ _globals['_STALEUPSTREAMPOLICY']._serialized_start=2275
35
+ _globals['_STALEUPSTREAMPOLICY']._serialized_end=2314
36
36
  _globals['_TABLEMODIFIEDINFO']._serialized_start=76
37
37
  _globals['_TABLEMODIFIEDINFO']._serialized_end=305
38
38
  _globals['_TABLEMODIFIEDINFO_DEPENDENCYKIND']._serialized_start=219
@@ -26,7 +26,7 @@ from query_cache_protobuf.query_cache import shared_pb2 as query__cache__protobu
26
26
  from query_cache_protobuf.query_cache import struct_pb2 as query__cache__protobuf_dot_query__cache_dot_struct__pb2
27
27
 
28
28
 
29
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n=query_cache_protobuf/query_cache/services/clone_service.proto\x12\x18\x63om.fivetran.query_cache\x1a-query_cache_protobuf/query_cache/shared.proto\x1a-query_cache_protobuf/query_cache/struct.proto\"\x91\x01\n\x0fTableProperties\x12 \n\x13hours_to_expiration\x18\x01 \x01(\x05H\x00\x88\x01\x01\x12&\n\x19partition_expiration_days\x18\x02 \x01(\x05H\x01\x88\x01\x01\x42\x16\n\x14_hours_to_expirationB\x1c\n\x1a_partition_expiration_days\"\x8c\x05\n\x0c\x43loneRequest\x12\x14\n\x0ctarget_table\x18\x01 \x01(\t\x12\x0f\n\x07\x64ialect\x18\x02 \x01(\t\x12\x17\n\x0f\x64\x65\x66\x61ult_catalog\x18\x03 \x01(\t\x12\x44\n\x0e\x65xecution_type\x18\x04 \x01(\x0e\x32,.com.fivetran.query_cache.ModelExecutionType\x12\x1a\n\x12\x63lone_source_table\x18\x05 \x01(\t\x12-\n clone_source_last_modified_epoch\x18\x06 \x01(\x03H\x00\x88\x01\x01\x12\x42\n\x06labels\x18\x07 \x03(\x0b\x32\x32.com.fivetran.query_cache.CloneRequest.LabelsEntry\x12$\n\x17\x63lone_source_table_type\x18\x08 \x01(\tH\x01\x88\x01\x01\x12H\n\x10table_properties\x18\t \x01(\x0b\x32).com.fivetran.query_cache.TablePropertiesH\x02\x88\x01\x01\x12$\n\x17\x63lone_chain_depth_limit\x18\n \x01(\x03H\x03\x88\x01\x01\x12\x1c\n\x0ftable_namespace\x18\x0b \x01(\tH\x04\x88\x01\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42#\n!_clone_source_last_modified_epochB\x1a\n\x18_clone_source_table_typeB\x13\n\x11_table_propertiesB\x1a\n\x18_clone_chain_depth_limitB\x12\n\x10_table_namespace\"\xd3\x02\n\rCloneResponse\x12\x46\n\x0eready_to_clone\x18\x03 \x01(\x0b\x32..com.fivetran.query_cache.ReadyToCloneResponse\x12H\n\x0funable_to_clone\x18\x04 \x01(\x0b\x32/.com.fivetran.query_cache.UnableToCloneResponse\x12O\n\x11ready_to_clone_v1\x18\x01 \x01(\x0b\x32..com.fivetran.query_cache.ReadyToCloneResponseB\x02\x18\x01H\x00\x12S\n\x11untrackable_clone\x18\x02 \x01(\x0b\x32\x32.com.fivetran.query_cache.UntrackableCloneResponseB\x02\x18\x01H\x00\x42\n\n\x08response\"\xcb\x05\n\x14ReadyToCloneResponse\x12\x12\n\nrequest_id\x18\x01 \x01(\t\x12\x1f\n\x13last_modified_query\x18\x02 \x01(\tB\x02\x18\x01\x12\x12\n\nclone_sqls\x18\x03 \x03(\t\x12\x14\n\x0c\x63lone_source\x18\x04 \x01(\t\x12\x14\n\x0c\x63lone_target\x18\x05 \x01(\t\x12G\n\x12\x65xplained_decision\x18\x06 \x01(\x0b\x32+.com.fivetran.query_cache.ExplainedDecision\x12o\n\x1atransformed_nodes_by_query\x18\x07 \x03(\x0b\x32K.com.fivetran.query_cache.ReadyToCloneResponse.TransformedNodesByQueryEntry\x12/\n\"clone_required_last_modified_epoch\x18\x08 \x01(\x03H\x00\x88\x01\x01\x12\x41\n\x17\x63lone_execution_results\x18\n \x01(\x0b\x32 .com.fivetran.query_cache.Struct\x12!\n\x14\x65xecution_runtime_ms\x18\x0b \x01(\x03H\x01\x88\x01\x01\x12\"\n\x15\x65xecution_decision_id\x18\x0c \x01(\tH\x02\x88\x01\x01\x1ai\n\x1cTransformedNodesByQueryEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x38\n\x05value\x18\x02 \x01(\x0b\x32).com.fivetran.query_cache.NodeFuncMapping:\x02\x38\x01\x42%\n#_clone_required_last_modified_epochB\x17\n\x15_execution_runtime_msB\x18\n\x16_execution_decision_idJ\x04\x08\t\x10\n\"\x87\x03\n\x18UntrackableCloneResponse\x12\x12\n\nclone_sqls\x18\x01 \x03(\t\x12\x14\n\x0c\x63lone_source\x18\x02 \x01(\t\x12\x14\n\x0c\x63lone_target\x18\x03 \x01(\t\x12G\n\x12\x65xplained_decision\x18\x04 \x01(\x0b\x32+.com.fivetran.query_cache.ExplainedDecision\x12s\n\x1atransformed_nodes_by_query\x18\x05 \x03(\x0b\x32O.com.fivetran.query_cache.UntrackableCloneResponse.TransformedNodesByQueryEntry\x1ai\n\x1cTransformedNodesByQueryEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x38\n\x05value\x18\x02 \x01(\x0b\x32).com.fivetran.query_cache.NodeFuncMapping:\x02\x38\x01:\x02\x18\x01\"\x8c\x01\n\x15UnableToCloneResponse\x12\x14\n\x0c\x63lone_source\x18\x01 \x01(\t\x12\x14\n\x0c\x63lone_target\x18\x02 \x01(\t\x12G\n\x12\x65xplained_decision\x18\x03 \x01(\x0b\x32+.com.fivetran.query_cache.ExplainedDecision2i\n\x05\x43lone\x12`\n\rRegisterClone\x12&.com.fivetran.query_cache.CloneRequest\x1a\'.com.fivetran.query_cache.CloneResponseb\x06proto3')
29
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n=query_cache_protobuf/query_cache/services/clone_service.proto\x12\x18\x63om.fivetran.query_cache\x1a-query_cache_protobuf/query_cache/shared.proto\x1a-query_cache_protobuf/query_cache/struct.proto\"\x91\x01\n\x0fTableProperties\x12 \n\x13hours_to_expiration\x18\x01 \x01(\x05H\x00\x88\x01\x01\x12&\n\x19partition_expiration_days\x18\x02 \x01(\x05H\x01\x88\x01\x01\x42\x16\n\x14_hours_to_expirationB\x1c\n\x1a_partition_expiration_days\"\xc2\x05\n\x0c\x43loneRequest\x12\x14\n\x0ctarget_table\x18\x01 \x01(\t\x12\x0f\n\x07\x64ialect\x18\x02 \x01(\t\x12\x17\n\x0f\x64\x65\x66\x61ult_catalog\x18\x03 \x01(\t\x12\x44\n\x0e\x65xecution_type\x18\x04 \x01(\x0e\x32,.com.fivetran.query_cache.ModelExecutionType\x12\x1a\n\x12\x63lone_source_table\x18\x05 \x01(\t\x12-\n clone_source_last_modified_epoch\x18\x06 \x01(\x03H\x00\x88\x01\x01\x12\x42\n\x06labels\x18\x07 \x03(\x0b\x32\x32.com.fivetran.query_cache.CloneRequest.LabelsEntry\x12$\n\x17\x63lone_source_table_type\x18\x08 \x01(\tH\x01\x88\x01\x01\x12H\n\x10table_properties\x18\t \x01(\x0b\x32).com.fivetran.query_cache.TablePropertiesH\x02\x88\x01\x01\x12$\n\x17\x63lone_chain_depth_limit\x18\n \x01(\x03H\x03\x88\x01\x01\x12\x1c\n\x0ftable_namespace\x18\x0b \x01(\tH\x04\x88\x01\x01\x12\x1e\n\x11skip_if_unchanged\x18\x0c \x01(\x08H\x05\x88\x01\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42#\n!_clone_source_last_modified_epochB\x1a\n\x18_clone_source_table_typeB\x13\n\x11_table_propertiesB\x1a\n\x18_clone_chain_depth_limitB\x12\n\x10_table_namespaceB\x14\n\x12_skip_if_unchanged\"\xd3\x02\n\rCloneResponse\x12\x46\n\x0eready_to_clone\x18\x03 \x01(\x0b\x32..com.fivetran.query_cache.ReadyToCloneResponse\x12H\n\x0funable_to_clone\x18\x04 \x01(\x0b\x32/.com.fivetran.query_cache.UnableToCloneResponse\x12O\n\x11ready_to_clone_v1\x18\x01 \x01(\x0b\x32..com.fivetran.query_cache.ReadyToCloneResponseB\x02\x18\x01H\x00\x12S\n\x11untrackable_clone\x18\x02 \x01(\x0b\x32\x32.com.fivetran.query_cache.UntrackableCloneResponseB\x02\x18\x01H\x00\x42\n\n\x08response\"\xcb\x05\n\x14ReadyToCloneResponse\x12\x12\n\nrequest_id\x18\x01 \x01(\t\x12\x1f\n\x13last_modified_query\x18\x02 \x01(\tB\x02\x18\x01\x12\x12\n\nclone_sqls\x18\x03 \x03(\t\x12\x14\n\x0c\x63lone_source\x18\x04 \x01(\t\x12\x14\n\x0c\x63lone_target\x18\x05 \x01(\t\x12G\n\x12\x65xplained_decision\x18\x06 \x01(\x0b\x32+.com.fivetran.query_cache.ExplainedDecision\x12o\n\x1atransformed_nodes_by_query\x18\x07 \x03(\x0b\x32K.com.fivetran.query_cache.ReadyToCloneResponse.TransformedNodesByQueryEntry\x12/\n\"clone_required_last_modified_epoch\x18\x08 \x01(\x03H\x00\x88\x01\x01\x12\x41\n\x17\x63lone_execution_results\x18\n \x01(\x0b\x32 .com.fivetran.query_cache.Struct\x12!\n\x14\x65xecution_runtime_ms\x18\x0b \x01(\x03H\x01\x88\x01\x01\x12\"\n\x15\x65xecution_decision_id\x18\x0c \x01(\tH\x02\x88\x01\x01\x1ai\n\x1cTransformedNodesByQueryEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x38\n\x05value\x18\x02 \x01(\x0b\x32).com.fivetran.query_cache.NodeFuncMapping:\x02\x38\x01\x42%\n#_clone_required_last_modified_epochB\x17\n\x15_execution_runtime_msB\x18\n\x16_execution_decision_idJ\x04\x08\t\x10\n\"\x87\x03\n\x18UntrackableCloneResponse\x12\x12\n\nclone_sqls\x18\x01 \x03(\t\x12\x14\n\x0c\x63lone_source\x18\x02 \x01(\t\x12\x14\n\x0c\x63lone_target\x18\x03 \x01(\t\x12G\n\x12\x65xplained_decision\x18\x04 \x01(\x0b\x32+.com.fivetran.query_cache.ExplainedDecision\x12s\n\x1atransformed_nodes_by_query\x18\x05 \x03(\x0b\x32O.com.fivetran.query_cache.UntrackableCloneResponse.TransformedNodesByQueryEntry\x1ai\n\x1cTransformedNodesByQueryEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x38\n\x05value\x18\x02 \x01(\x0b\x32).com.fivetran.query_cache.NodeFuncMapping:\x02\x38\x01:\x02\x18\x01\"\x8c\x01\n\x15UnableToCloneResponse\x12\x14\n\x0c\x63lone_source\x18\x01 \x01(\t\x12\x14\n\x0c\x63lone_target\x18\x02 \x01(\t\x12G\n\x12\x65xplained_decision\x18\x03 \x01(\x0b\x32+.com.fivetran.query_cache.ExplainedDecision2i\n\x05\x43lone\x12`\n\rRegisterClone\x12&.com.fivetran.query_cache.CloneRequest\x1a\'.com.fivetran.query_cache.CloneResponseb\x06proto3')
30
30
 
31
31
  _globals = globals()
32
32
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
@@ -50,21 +50,21 @@ if not _descriptor._USE_C_DESCRIPTORS:
50
50
  _globals['_TABLEPROPERTIES']._serialized_start=186
51
51
  _globals['_TABLEPROPERTIES']._serialized_end=331
52
52
  _globals['_CLONEREQUEST']._serialized_start=334
53
- _globals['_CLONEREQUEST']._serialized_end=986
54
- _globals['_CLONEREQUEST_LABELSENTRY']._serialized_start=807
55
- _globals['_CLONEREQUEST_LABELSENTRY']._serialized_end=852
56
- _globals['_CLONERESPONSE']._serialized_start=989
57
- _globals['_CLONERESPONSE']._serialized_end=1328
58
- _globals['_READYTOCLONERESPONSE']._serialized_start=1331
59
- _globals['_READYTOCLONERESPONSE']._serialized_end=2046
60
- _globals['_READYTOCLONERESPONSE_TRANSFORMEDNODESBYQUERYENTRY']._serialized_start=1845
61
- _globals['_READYTOCLONERESPONSE_TRANSFORMEDNODESBYQUERYENTRY']._serialized_end=1950
62
- _globals['_UNTRACKABLECLONERESPONSE']._serialized_start=2049
63
- _globals['_UNTRACKABLECLONERESPONSE']._serialized_end=2440
64
- _globals['_UNTRACKABLECLONERESPONSE_TRANSFORMEDNODESBYQUERYENTRY']._serialized_start=1845
65
- _globals['_UNTRACKABLECLONERESPONSE_TRANSFORMEDNODESBYQUERYENTRY']._serialized_end=1950
66
- _globals['_UNABLETOCLONERESPONSE']._serialized_start=2443
67
- _globals['_UNABLETOCLONERESPONSE']._serialized_end=2583
68
- _globals['_CLONE']._serialized_start=2585
69
- _globals['_CLONE']._serialized_end=2690
53
+ _globals['_CLONEREQUEST']._serialized_end=1040
54
+ _globals['_CLONEREQUEST_LABELSENTRY']._serialized_start=839
55
+ _globals['_CLONEREQUEST_LABELSENTRY']._serialized_end=884
56
+ _globals['_CLONERESPONSE']._serialized_start=1043
57
+ _globals['_CLONERESPONSE']._serialized_end=1382
58
+ _globals['_READYTOCLONERESPONSE']._serialized_start=1385
59
+ _globals['_READYTOCLONERESPONSE']._serialized_end=2100
60
+ _globals['_READYTOCLONERESPONSE_TRANSFORMEDNODESBYQUERYENTRY']._serialized_start=1899
61
+ _globals['_READYTOCLONERESPONSE_TRANSFORMEDNODESBYQUERYENTRY']._serialized_end=2004
62
+ _globals['_UNTRACKABLECLONERESPONSE']._serialized_start=2103
63
+ _globals['_UNTRACKABLECLONERESPONSE']._serialized_end=2494
64
+ _globals['_UNTRACKABLECLONERESPONSE_TRANSFORMEDNODESBYQUERYENTRY']._serialized_start=1899
65
+ _globals['_UNTRACKABLECLONERESPONSE_TRANSFORMEDNODESBYQUERYENTRY']._serialized_end=2004
66
+ _globals['_UNABLETOCLONERESPONSE']._serialized_start=2497
67
+ _globals['_UNABLETOCLONERESPONSE']._serialized_end=2637
68
+ _globals['_CLONE']._serialized_start=2639
69
+ _globals['_CLONE']._serialized_end=2744
70
70
  # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,44 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: query_cache_protobuf/query_cache/services/sql_analysis_service.proto
5
+ # Protobuf Python Version: 5.29.0
6
+ """Generated protocol buffer code."""
7
+ from google.protobuf import descriptor as _descriptor
8
+ from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import runtime_version as _runtime_version
10
+ from google.protobuf import symbol_database as _symbol_database
11
+ from google.protobuf.internal import builder as _builder
12
+ _runtime_version.ValidateProtobufRuntimeVersion(
13
+ _runtime_version.Domain.PUBLIC,
14
+ 5,
15
+ 29,
16
+ 0,
17
+ '',
18
+ 'query_cache_protobuf/query_cache/services/sql_analysis_service.proto'
19
+ )
20
+ # @@protoc_insertion_point(imports)
21
+
22
+ _sym_db = _symbol_database.Default()
23
+
24
+
25
+
26
+
27
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\nDquery_cache_protobuf/query_cache/services/sql_analysis_service.proto\x12\x18\x63om.fivetran.query_cache\">\n\x1d\x45xtractTableReferencesRequest\x12\x0f\n\x07\x64ialect\x18\x01 \x01(\t\x12\x0c\n\x04sqls\x18\x02 \x03(\t\",\n\x0eTableReference\x12\r\n\x05parts\x18\x01 \x03(\t\x12\x0b\n\x03\x66qn\x18\x02 \x01(\t\"b\n\x12SqlTableReferences\x12\x0e\n\x06parsed\x18\x01 \x01(\x08\x12<\n\nreferences\x18\x02 \x03(\x0b\x32(.com.fivetran.query_cache.TableReference\"_\n\x1e\x45xtractTableReferencesResponse\x12=\n\x07results\x18\x01 \x03(\x0b\x32,.com.fivetran.query_cache.SqlTableReferences2\x9b\x01\n\x0bSQLAnalysis\x12\x8b\x01\n\x16\x45xtractTableReferences\x12\x37.com.fivetran.query_cache.ExtractTableReferencesRequest\x1a\x38.com.fivetran.query_cache.ExtractTableReferencesResponseb\x06proto3')
28
+
29
+ _globals = globals()
30
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
31
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'query_cache_protobuf.query_cache.services.sql_analysis_service_pb2', _globals)
32
+ if not _descriptor._USE_C_DESCRIPTORS:
33
+ DESCRIPTOR._loaded_options = None
34
+ _globals['_EXTRACTTABLEREFERENCESREQUEST']._serialized_start=98
35
+ _globals['_EXTRACTTABLEREFERENCESREQUEST']._serialized_end=160
36
+ _globals['_TABLEREFERENCE']._serialized_start=162
37
+ _globals['_TABLEREFERENCE']._serialized_end=206
38
+ _globals['_SQLTABLEREFERENCES']._serialized_start=208
39
+ _globals['_SQLTABLEREFERENCES']._serialized_end=306
40
+ _globals['_EXTRACTTABLEREFERENCESRESPONSE']._serialized_start=308
41
+ _globals['_EXTRACTTABLEREFERENCESRESPONSE']._serialized_end=403
42
+ _globals['_SQLANALYSIS']._serialized_start=406
43
+ _globals['_SQLANALYSIS']._serialized_end=561
44
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,97 @@
1
+ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
+ """Client and server classes corresponding to protobuf-defined services."""
3
+ import grpc
4
+ import warnings
5
+
6
+ from query_cache_protobuf.query_cache.services import sql_analysis_service_pb2 as query__cache__protobuf_dot_query__cache_dot_services_dot_sql__analysis__service__pb2
7
+
8
+ GRPC_GENERATED_VERSION = '1.71.2'
9
+ GRPC_VERSION = grpc.__version__
10
+ _version_not_supported = False
11
+
12
+ try:
13
+ from grpc._utilities import first_version_is_lower
14
+ _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
15
+ except ImportError:
16
+ _version_not_supported = True
17
+
18
+ if _version_not_supported:
19
+ raise RuntimeError(
20
+ f'The grpc package installed is at version {GRPC_VERSION},'
21
+ + f' but the generated code in query_cache_protobuf/query_cache/services/sql_analysis_service_pb2_grpc.py depends on'
22
+ + f' grpcio>={GRPC_GENERATED_VERSION}.'
23
+ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
24
+ + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
25
+ )
26
+
27
+
28
+ class SQLAnalysisStub(object):
29
+ """Missing associated documentation comment in .proto file."""
30
+
31
+ def __init__(self, channel):
32
+ """Constructor.
33
+
34
+ Args:
35
+ channel: A grpc.Channel.
36
+ """
37
+ self.ExtractTableReferences = channel.unary_unary(
38
+ '/com.fivetran.query_cache.SQLAnalysis/ExtractTableReferences',
39
+ request_serializer=query__cache__protobuf_dot_query__cache_dot_services_dot_sql__analysis__service__pb2.ExtractTableReferencesRequest.SerializeToString,
40
+ response_deserializer=query__cache__protobuf_dot_query__cache_dot_services_dot_sql__analysis__service__pb2.ExtractTableReferencesResponse.FromString,
41
+ _registered_method=True)
42
+
43
+
44
+ class SQLAnalysisServicer(object):
45
+ """Missing associated documentation comment in .proto file."""
46
+
47
+ def ExtractTableReferences(self, request, context):
48
+ """Missing associated documentation comment in .proto file."""
49
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
50
+ context.set_details('Method not implemented!')
51
+ raise NotImplementedError('Method not implemented!')
52
+
53
+
54
+ def add_SQLAnalysisServicer_to_server(servicer, server):
55
+ rpc_method_handlers = {
56
+ 'ExtractTableReferences': grpc.unary_unary_rpc_method_handler(
57
+ servicer.ExtractTableReferences,
58
+ request_deserializer=query__cache__protobuf_dot_query__cache_dot_services_dot_sql__analysis__service__pb2.ExtractTableReferencesRequest.FromString,
59
+ response_serializer=query__cache__protobuf_dot_query__cache_dot_services_dot_sql__analysis__service__pb2.ExtractTableReferencesResponse.SerializeToString,
60
+ ),
61
+ }
62
+ generic_handler = grpc.method_handlers_generic_handler(
63
+ 'com.fivetran.query_cache.SQLAnalysis', rpc_method_handlers)
64
+ server.add_generic_rpc_handlers((generic_handler,))
65
+ server.add_registered_method_handlers('com.fivetran.query_cache.SQLAnalysis', rpc_method_handlers)
66
+
67
+
68
+ # This class is part of an EXPERIMENTAL API.
69
+ class SQLAnalysis(object):
70
+ """Missing associated documentation comment in .proto file."""
71
+
72
+ @staticmethod
73
+ def ExtractTableReferences(request,
74
+ target,
75
+ options=(),
76
+ channel_credentials=None,
77
+ call_credentials=None,
78
+ insecure=False,
79
+ compression=None,
80
+ wait_for_ready=None,
81
+ timeout=None,
82
+ metadata=None):
83
+ return grpc.experimental.unary_unary(
84
+ request,
85
+ target,
86
+ '/com.fivetran.query_cache.SQLAnalysis/ExtractTableReferences',
87
+ query__cache__protobuf_dot_query__cache_dot_services_dot_sql__analysis__service__pb2.ExtractTableReferencesRequest.SerializeToString,
88
+ query__cache__protobuf_dot_query__cache_dot_services_dot_sql__analysis__service__pb2.ExtractTableReferencesResponse.FromString,
89
+ options,
90
+ channel_credentials,
91
+ insecure,
92
+ call_credentials,
93
+ compression,
94
+ wait_for_ready,
95
+ timeout,
96
+ metadata,
97
+ _registered_method=True)
@@ -24,7 +24,7 @@ _sym_db = _symbol_database.Default()
24
24
 
25
25
 
26
26
 
27
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n-query_cache_protobuf/query_cache/shared.proto\x12\x18\x63om.fivetran.query_cache\"\xe5\x01\n\x11TableModifiedInfo\x12\x0c\n\x04name\x18\x01 \x01(\t\x12 \n\x13last_modified_epoch\x18\x02 \x01(\x03H\x00\x88\x01\x01\x12H\n\x04kind\x18\x03 \x01(\x0e\x32:.com.fivetran.query_cache.TableModifiedInfo.DependencyKind\">\n\x0e\x44\x65pendencyKind\x12\x0b\n\x07UNKNOWN\x10\x00\x12\n\n\x06SOURCE\x10\x01\x12\x08\n\x04SEED\x10\x02\x12\t\n\x05MODEL\x10\x03\x42\x16\n\x14_last_modified_epoch\"(\n\nColumnInfo\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04type\x18\x02 \x01(\t\"R\n\x0bTableSchema\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x35\n\x07\x63olumns\x18\x02 \x03(\x0b\x32$.com.fivetran.query_cache.ColumnInfo\"_\n\x0fQueryDependency\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05query\x18\x02 \x01(\t\x12\x17\n\x0f\x64\x65\x66\x61ult_catalog\x18\x03 \x01(\t\x12\x16\n\x0e\x64\x65\x66\x61ult_schema\x18\x04 \x01(\t\"\xd8\x02\n\x11\x45xplainedDecision\x12?\n\x08\x64\x65\x63ision\x18\x01 \x01(\x0e\x32-.com.fivetran.query_cache.SubmitSQLResultType\x12M\n\x15skip_rejection_reason\x18\x02 \x01(\x0e\x32).com.fivetran.query_cache.RejectionReasonH\x00\x88\x01\x01\x12N\n\x16\x63lone_rejection_reason\x18\x03 \x01(\x0e\x32).com.fivetran.query_cache.RejectionReasonH\x01\x88\x01\x01\x12\x10\n\x08is_stale\x18\x04 \x01(\x08\x12\x1c\n\x14\x64\x65\x63ision_description\x18\x05 \x01(\tB\x18\n\x16_skip_rejection_reasonB\x19\n\x17_clone_rejection_reason\"\x95\x01\n\x0fNodeFuncMapping\x12O\n\x0cnode_to_func\x18\x01 \x03(\x0b\x32\x39.com.fivetran.query_cache.NodeFuncMapping.NodeToFuncEntry\x1a\x31\n\x0fNodeToFuncEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xb7\x04\n\x0c\x44\x62tNodeState\x12\x16\n\x0enode_unique_id\x18\x01 \x01(\t\x12\x13\n\x0btarget_name\x18\x02 \x01(\t\x12\x14\n\x0cproject_name\x18\x03 \x01(\t\x12\x15\n\rresource_type\x18\x04 \x01(\t\x12\x11\n\tnode_hash\x18\x05 \x01(\t\x12\x1b\n\x0enode_body_hash\x18\x06 \x01(\tH\x00\x88\x01\x01\x12\x1e\n\x11node_configs_hash\x18\x07 \x01(\tH\x01\x88\x01\x01\x12-\n node_persisted_descriptions_hash\x18\t \x01(\tH\x02\x88\x01\x01\x12\x1d\n\x10node_macros_hash\x18\n \x01(\tH\x03\x88\x01\x01\x12\x1f\n\x12node_contract_hash\x18\x0b \x01(\tH\x04\x88\x01\x01\x12\x14\n\x0cprofile_name\x18\x0c \x01(\t\x12\x17\n\nproject_id\x18\r \x01(\tH\x05\x88\x01\x01\x12)\n\x1cnode_database_representation\x18\x0f \x01(\tH\x06\x88\x01\x01\x42\x11\n\x0f_node_body_hashB\x14\n\x12_node_configs_hashB#\n!_node_persisted_descriptions_hashB\x13\n\x11_node_macros_hashB\x15\n\x13_node_contract_hashB\r\n\x0b_project_idB\x1f\n\x1d_node_database_representationJ\x04\x08\x08\x10\tJ\x04\x08\x0e\x10\x0f*\xc6\x01\n\x12ModelExecutionType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x08\n\x04\x46ULL\x10\x01\x12\n\n\x06\x41PPEND\x10\x02\x12\t\n\x05MERGE\x10\x03\x12\x14\n\x10INSERT_OVERWRITE\x10\x04\x12\x11\n\rDELETE_INSERT\x10\x05\x12\x0e\n\nMICROBATCH\x10\x06\x12\x0c\n\x08SNAPSHOT\x10\x07\x12\x11\n\rDBT_DATA_TEST\x10\x08\x12\n\n\x06VALUES\x10\t\x12\x08\n\x04VIEW\x10\n\x12\x0e\n\nDBT_CUSTOM\x10\x0b*\xd4\x02\n\x0fRejectionReason\x12\x1c\n\x14NO_FINGERPRINT_MATCH\x10\x00\x1a\x02\x08\x01\x12\x19\n\x15TARGET_TABLE_MISMATCH\x10\x01\x12\x1b\n\x17\x45XECUTION_TYPE_MISMATCH\x10\x02\x12\x1b\n\x17\x45XECUTION_TYPE_NOT_FULL\x10\x03\x12\x1f\n\x1bTARGET_TABLE_DOES_NOT_EXIST\x10\x04\x12\x17\n\x13\x46ORCED_NOT_ELIGIBLE\x10\x05\x12\x1b\n\x17NO_SUITABLE_MATCH_FOUND\x10\x06\x12\x16\n\x12TARGET_TABLE_MATCH\x10\x07\x12\x1f\n\x1bLATEST_QUERY_HASH_NOT_MATCH\x10\x08\x12\x1e\n\x1aOUTSIDE_TIME_TRAVEL_WINDOW\x10\t\x12\x1e\n\x1a\x43LONE_CHAIN_LIMIT_EXCEEDED\x10\n*f\n\x13SubmitSQLResultType\x12\x12\n\x0eSKIP_EXECUTION\x10\x00\x12\x14\n\x10READY_TO_EXECUTE\x10\x01\x12\x12\n\x0eREADY_TO_CLONE\x10\x03\x12\x0b\n\x07UNKNOWN\x10\x04\"\x04\x08\x02\x10\x02*\'\n\x13StaleUpstreamPolicy\x12\x07\n\x03\x41NY\x10\x00\x12\x07\n\x03\x41LL\x10\x01\x62\x06proto3')
27
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n-query_cache_protobuf/query_cache/shared.proto\x12\x18\x63om.fivetran.query_cache\"\xe5\x01\n\x11TableModifiedInfo\x12\x0c\n\x04name\x18\x01 \x01(\t\x12 \n\x13last_modified_epoch\x18\x02 \x01(\x03H\x00\x88\x01\x01\x12H\n\x04kind\x18\x03 \x01(\x0e\x32:.com.fivetran.query_cache.TableModifiedInfo.DependencyKind\">\n\x0e\x44\x65pendencyKind\x12\x0b\n\x07UNKNOWN\x10\x00\x12\n\n\x06SOURCE\x10\x01\x12\x08\n\x04SEED\x10\x02\x12\t\n\x05MODEL\x10\x03\x42\x16\n\x14_last_modified_epoch\"(\n\nColumnInfo\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04type\x18\x02 \x01(\t\"R\n\x0bTableSchema\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x35\n\x07\x63olumns\x18\x02 \x03(\x0b\x32$.com.fivetran.query_cache.ColumnInfo\"_\n\x0fQueryDependency\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05query\x18\x02 \x01(\t\x12\x17\n\x0f\x64\x65\x66\x61ult_catalog\x18\x03 \x01(\t\x12\x16\n\x0e\x64\x65\x66\x61ult_schema\x18\x04 \x01(\t\"\xd8\x02\n\x11\x45xplainedDecision\x12?\n\x08\x64\x65\x63ision\x18\x01 \x01(\x0e\x32-.com.fivetran.query_cache.SubmitSQLResultType\x12M\n\x15skip_rejection_reason\x18\x02 \x01(\x0e\x32).com.fivetran.query_cache.RejectionReasonH\x00\x88\x01\x01\x12N\n\x16\x63lone_rejection_reason\x18\x03 \x01(\x0e\x32).com.fivetran.query_cache.RejectionReasonH\x01\x88\x01\x01\x12\x10\n\x08is_stale\x18\x04 \x01(\x08\x12\x1c\n\x14\x64\x65\x63ision_description\x18\x05 \x01(\tB\x18\n\x16_skip_rejection_reasonB\x19\n\x17_clone_rejection_reason\"\x95\x01\n\x0fNodeFuncMapping\x12O\n\x0cnode_to_func\x18\x01 \x03(\x0b\x32\x39.com.fivetran.query_cache.NodeFuncMapping.NodeToFuncEntry\x1a\x31\n\x0fNodeToFuncEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xb7\x04\n\x0c\x44\x62tNodeState\x12\x16\n\x0enode_unique_id\x18\x01 \x01(\t\x12\x13\n\x0btarget_name\x18\x02 \x01(\t\x12\x14\n\x0cproject_name\x18\x03 \x01(\t\x12\x15\n\rresource_type\x18\x04 \x01(\t\x12\x11\n\tnode_hash\x18\x05 \x01(\t\x12\x1b\n\x0enode_body_hash\x18\x06 \x01(\tH\x00\x88\x01\x01\x12\x1e\n\x11node_configs_hash\x18\x07 \x01(\tH\x01\x88\x01\x01\x12-\n node_persisted_descriptions_hash\x18\t \x01(\tH\x02\x88\x01\x01\x12\x1d\n\x10node_macros_hash\x18\n \x01(\tH\x03\x88\x01\x01\x12\x1f\n\x12node_contract_hash\x18\x0b \x01(\tH\x04\x88\x01\x01\x12\x14\n\x0cprofile_name\x18\x0c \x01(\t\x12\x17\n\nproject_id\x18\r \x01(\tH\x05\x88\x01\x01\x12)\n\x1cnode_database_representation\x18\x0f \x01(\tH\x06\x88\x01\x01\x42\x11\n\x0f_node_body_hashB\x14\n\x12_node_configs_hashB#\n!_node_persisted_descriptions_hashB\x13\n\x11_node_macros_hashB\x15\n\x13_node_contract_hashB\r\n\x0b_project_idB\x1f\n\x1d_node_database_representationJ\x04\x08\x08\x10\tJ\x04\x08\x0e\x10\x0f*\xc6\x01\n\x12ModelExecutionType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x08\n\x04\x46ULL\x10\x01\x12\n\n\x06\x41PPEND\x10\x02\x12\t\n\x05MERGE\x10\x03\x12\x14\n\x10INSERT_OVERWRITE\x10\x04\x12\x11\n\rDELETE_INSERT\x10\x05\x12\x0e\n\nMICROBATCH\x10\x06\x12\x0c\n\x08SNAPSHOT\x10\x07\x12\x11\n\rDBT_DATA_TEST\x10\x08\x12\n\n\x06VALUES\x10\t\x12\x08\n\x04VIEW\x10\n\x12\x0e\n\nDBT_CUSTOM\x10\x0b*\xf0\x02\n\x0fRejectionReason\x12\x1c\n\x14NO_FINGERPRINT_MATCH\x10\x00\x1a\x02\x08\x01\x12\x19\n\x15TARGET_TABLE_MISMATCH\x10\x01\x12\x1b\n\x17\x45XECUTION_TYPE_MISMATCH\x10\x02\x12\x1b\n\x17\x45XECUTION_TYPE_NOT_FULL\x10\x03\x12\x1f\n\x1bTARGET_TABLE_DOES_NOT_EXIST\x10\x04\x12\x17\n\x13\x46ORCED_NOT_ELIGIBLE\x10\x05\x12\x1b\n\x17NO_SUITABLE_MATCH_FOUND\x10\x06\x12\x16\n\x12TARGET_TABLE_MATCH\x10\x07\x12\x1f\n\x1bLATEST_QUERY_HASH_NOT_MATCH\x10\x08\x12\x1e\n\x1aOUTSIDE_TIME_TRAVEL_WINDOW\x10\t\x12\x1e\n\x1a\x43LONE_CHAIN_LIMIT_EXCEEDED\x10\n\x12\x1a\n\x16\x43LONE_SOURCE_UNCHANGED\x10\x0b*f\n\x13SubmitSQLResultType\x12\x12\n\x0eSKIP_EXECUTION\x10\x00\x12\x14\n\x10READY_TO_EXECUTE\x10\x01\x12\x12\n\x0eREADY_TO_CLONE\x10\x03\x12\x0b\n\x07UNKNOWN\x10\x04\"\x04\x08\x02\x10\x02*\'\n\x13StaleUpstreamPolicy\x12\x07\n\x03\x41NY\x10\x00\x12\x07\n\x03\x41LL\x10\x01\x62\x06proto3')
28
28
 
29
29
  _globals = globals()
30
30
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
@@ -38,11 +38,11 @@ if not _descriptor._USE_C_DESCRIPTORS:
38
38
  _globals['_MODELEXECUTIONTYPE']._serialized_start=1600
39
39
  _globals['_MODELEXECUTIONTYPE']._serialized_end=1798
40
40
  _globals['_REJECTIONREASON']._serialized_start=1801
41
- _globals['_REJECTIONREASON']._serialized_end=2141
42
- _globals['_SUBMITSQLRESULTTYPE']._serialized_start=2143
43
- _globals['_SUBMITSQLRESULTTYPE']._serialized_end=2245
44
- _globals['_STALEUPSTREAMPOLICY']._serialized_start=2247
45
- _globals['_STALEUPSTREAMPOLICY']._serialized_end=2286
41
+ _globals['_REJECTIONREASON']._serialized_end=2169
42
+ _globals['_SUBMITSQLRESULTTYPE']._serialized_start=2171
43
+ _globals['_SUBMITSQLRESULTTYPE']._serialized_end=2273
44
+ _globals['_STALEUPSTREAMPOLICY']._serialized_start=2275
45
+ _globals['_STALEUPSTREAMPOLICY']._serialized_end=2314
46
46
  _globals['_TABLEMODIFIEDINFO']._serialized_start=76
47
47
  _globals['_TABLEMODIFIEDINFO']._serialized_end=305
48
48
  _globals['_TABLEMODIFIEDINFO_DEPENDENCYKIND']._serialized_start=219
@@ -26,7 +26,7 @@ from query_cache_protobuf.query_cache import shared_pb2 as query__cache__protobu
26
26
  from query_cache_protobuf.query_cache import struct_pb2 as query__cache__protobuf_dot_query__cache_dot_struct__pb2
27
27
 
28
28
 
29
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n=query_cache_protobuf/query_cache/services/clone_service.proto\x12\x18\x63om.fivetran.query_cache\x1a-query_cache_protobuf/query_cache/shared.proto\x1a-query_cache_protobuf/query_cache/struct.proto\"\x91\x01\n\x0fTableProperties\x12 \n\x13hours_to_expiration\x18\x01 \x01(\x05H\x00\x88\x01\x01\x12&\n\x19partition_expiration_days\x18\x02 \x01(\x05H\x01\x88\x01\x01\x42\x16\n\x14_hours_to_expirationB\x1c\n\x1a_partition_expiration_days\"\x8c\x05\n\x0c\x43loneRequest\x12\x14\n\x0ctarget_table\x18\x01 \x01(\t\x12\x0f\n\x07\x64ialect\x18\x02 \x01(\t\x12\x17\n\x0f\x64\x65\x66\x61ult_catalog\x18\x03 \x01(\t\x12\x44\n\x0e\x65xecution_type\x18\x04 \x01(\x0e\x32,.com.fivetran.query_cache.ModelExecutionType\x12\x1a\n\x12\x63lone_source_table\x18\x05 \x01(\t\x12-\n clone_source_last_modified_epoch\x18\x06 \x01(\x03H\x00\x88\x01\x01\x12\x42\n\x06labels\x18\x07 \x03(\x0b\x32\x32.com.fivetran.query_cache.CloneRequest.LabelsEntry\x12$\n\x17\x63lone_source_table_type\x18\x08 \x01(\tH\x01\x88\x01\x01\x12H\n\x10table_properties\x18\t \x01(\x0b\x32).com.fivetran.query_cache.TablePropertiesH\x02\x88\x01\x01\x12$\n\x17\x63lone_chain_depth_limit\x18\n \x01(\x03H\x03\x88\x01\x01\x12\x1c\n\x0ftable_namespace\x18\x0b \x01(\tH\x04\x88\x01\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42#\n!_clone_source_last_modified_epochB\x1a\n\x18_clone_source_table_typeB\x13\n\x11_table_propertiesB\x1a\n\x18_clone_chain_depth_limitB\x12\n\x10_table_namespace\"\xd3\x02\n\rCloneResponse\x12\x46\n\x0eready_to_clone\x18\x03 \x01(\x0b\x32..com.fivetran.query_cache.ReadyToCloneResponse\x12H\n\x0funable_to_clone\x18\x04 \x01(\x0b\x32/.com.fivetran.query_cache.UnableToCloneResponse\x12O\n\x11ready_to_clone_v1\x18\x01 \x01(\x0b\x32..com.fivetran.query_cache.ReadyToCloneResponseB\x02\x18\x01H\x00\x12S\n\x11untrackable_clone\x18\x02 \x01(\x0b\x32\x32.com.fivetran.query_cache.UntrackableCloneResponseB\x02\x18\x01H\x00\x42\n\n\x08response\"\xcb\x05\n\x14ReadyToCloneResponse\x12\x12\n\nrequest_id\x18\x01 \x01(\t\x12\x1f\n\x13last_modified_query\x18\x02 \x01(\tB\x02\x18\x01\x12\x12\n\nclone_sqls\x18\x03 \x03(\t\x12\x14\n\x0c\x63lone_source\x18\x04 \x01(\t\x12\x14\n\x0c\x63lone_target\x18\x05 \x01(\t\x12G\n\x12\x65xplained_decision\x18\x06 \x01(\x0b\x32+.com.fivetran.query_cache.ExplainedDecision\x12o\n\x1atransformed_nodes_by_query\x18\x07 \x03(\x0b\x32K.com.fivetran.query_cache.ReadyToCloneResponse.TransformedNodesByQueryEntry\x12/\n\"clone_required_last_modified_epoch\x18\x08 \x01(\x03H\x00\x88\x01\x01\x12\x41\n\x17\x63lone_execution_results\x18\n \x01(\x0b\x32 .com.fivetran.query_cache.Struct\x12!\n\x14\x65xecution_runtime_ms\x18\x0b \x01(\x03H\x01\x88\x01\x01\x12\"\n\x15\x65xecution_decision_id\x18\x0c \x01(\tH\x02\x88\x01\x01\x1ai\n\x1cTransformedNodesByQueryEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x38\n\x05value\x18\x02 \x01(\x0b\x32).com.fivetran.query_cache.NodeFuncMapping:\x02\x38\x01\x42%\n#_clone_required_last_modified_epochB\x17\n\x15_execution_runtime_msB\x18\n\x16_execution_decision_idJ\x04\x08\t\x10\n\"\x87\x03\n\x18UntrackableCloneResponse\x12\x12\n\nclone_sqls\x18\x01 \x03(\t\x12\x14\n\x0c\x63lone_source\x18\x02 \x01(\t\x12\x14\n\x0c\x63lone_target\x18\x03 \x01(\t\x12G\n\x12\x65xplained_decision\x18\x04 \x01(\x0b\x32+.com.fivetran.query_cache.ExplainedDecision\x12s\n\x1atransformed_nodes_by_query\x18\x05 \x03(\x0b\x32O.com.fivetran.query_cache.UntrackableCloneResponse.TransformedNodesByQueryEntry\x1ai\n\x1cTransformedNodesByQueryEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x38\n\x05value\x18\x02 \x01(\x0b\x32).com.fivetran.query_cache.NodeFuncMapping:\x02\x38\x01:\x02\x18\x01\"\x8c\x01\n\x15UnableToCloneResponse\x12\x14\n\x0c\x63lone_source\x18\x01 \x01(\t\x12\x14\n\x0c\x63lone_target\x18\x02 \x01(\t\x12G\n\x12\x65xplained_decision\x18\x03 \x01(\x0b\x32+.com.fivetran.query_cache.ExplainedDecision2i\n\x05\x43lone\x12`\n\rRegisterClone\x12&.com.fivetran.query_cache.CloneRequest\x1a\'.com.fivetran.query_cache.CloneResponseb\x06proto3')
29
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n=query_cache_protobuf/query_cache/services/clone_service.proto\x12\x18\x63om.fivetran.query_cache\x1a-query_cache_protobuf/query_cache/shared.proto\x1a-query_cache_protobuf/query_cache/struct.proto\"\x91\x01\n\x0fTableProperties\x12 \n\x13hours_to_expiration\x18\x01 \x01(\x05H\x00\x88\x01\x01\x12&\n\x19partition_expiration_days\x18\x02 \x01(\x05H\x01\x88\x01\x01\x42\x16\n\x14_hours_to_expirationB\x1c\n\x1a_partition_expiration_days\"\xc2\x05\n\x0c\x43loneRequest\x12\x14\n\x0ctarget_table\x18\x01 \x01(\t\x12\x0f\n\x07\x64ialect\x18\x02 \x01(\t\x12\x17\n\x0f\x64\x65\x66\x61ult_catalog\x18\x03 \x01(\t\x12\x44\n\x0e\x65xecution_type\x18\x04 \x01(\x0e\x32,.com.fivetran.query_cache.ModelExecutionType\x12\x1a\n\x12\x63lone_source_table\x18\x05 \x01(\t\x12-\n clone_source_last_modified_epoch\x18\x06 \x01(\x03H\x00\x88\x01\x01\x12\x42\n\x06labels\x18\x07 \x03(\x0b\x32\x32.com.fivetran.query_cache.CloneRequest.LabelsEntry\x12$\n\x17\x63lone_source_table_type\x18\x08 \x01(\tH\x01\x88\x01\x01\x12H\n\x10table_properties\x18\t \x01(\x0b\x32).com.fivetran.query_cache.TablePropertiesH\x02\x88\x01\x01\x12$\n\x17\x63lone_chain_depth_limit\x18\n \x01(\x03H\x03\x88\x01\x01\x12\x1c\n\x0ftable_namespace\x18\x0b \x01(\tH\x04\x88\x01\x01\x12\x1e\n\x11skip_if_unchanged\x18\x0c \x01(\x08H\x05\x88\x01\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42#\n!_clone_source_last_modified_epochB\x1a\n\x18_clone_source_table_typeB\x13\n\x11_table_propertiesB\x1a\n\x18_clone_chain_depth_limitB\x12\n\x10_table_namespaceB\x14\n\x12_skip_if_unchanged\"\xd3\x02\n\rCloneResponse\x12\x46\n\x0eready_to_clone\x18\x03 \x01(\x0b\x32..com.fivetran.query_cache.ReadyToCloneResponse\x12H\n\x0funable_to_clone\x18\x04 \x01(\x0b\x32/.com.fivetran.query_cache.UnableToCloneResponse\x12O\n\x11ready_to_clone_v1\x18\x01 \x01(\x0b\x32..com.fivetran.query_cache.ReadyToCloneResponseB\x02\x18\x01H\x00\x12S\n\x11untrackable_clone\x18\x02 \x01(\x0b\x32\x32.com.fivetran.query_cache.UntrackableCloneResponseB\x02\x18\x01H\x00\x42\n\n\x08response\"\xcb\x05\n\x14ReadyToCloneResponse\x12\x12\n\nrequest_id\x18\x01 \x01(\t\x12\x1f\n\x13last_modified_query\x18\x02 \x01(\tB\x02\x18\x01\x12\x12\n\nclone_sqls\x18\x03 \x03(\t\x12\x14\n\x0c\x63lone_source\x18\x04 \x01(\t\x12\x14\n\x0c\x63lone_target\x18\x05 \x01(\t\x12G\n\x12\x65xplained_decision\x18\x06 \x01(\x0b\x32+.com.fivetran.query_cache.ExplainedDecision\x12o\n\x1atransformed_nodes_by_query\x18\x07 \x03(\x0b\x32K.com.fivetran.query_cache.ReadyToCloneResponse.TransformedNodesByQueryEntry\x12/\n\"clone_required_last_modified_epoch\x18\x08 \x01(\x03H\x00\x88\x01\x01\x12\x41\n\x17\x63lone_execution_results\x18\n \x01(\x0b\x32 .com.fivetran.query_cache.Struct\x12!\n\x14\x65xecution_runtime_ms\x18\x0b \x01(\x03H\x01\x88\x01\x01\x12\"\n\x15\x65xecution_decision_id\x18\x0c \x01(\tH\x02\x88\x01\x01\x1ai\n\x1cTransformedNodesByQueryEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x38\n\x05value\x18\x02 \x01(\x0b\x32).com.fivetran.query_cache.NodeFuncMapping:\x02\x38\x01\x42%\n#_clone_required_last_modified_epochB\x17\n\x15_execution_runtime_msB\x18\n\x16_execution_decision_idJ\x04\x08\t\x10\n\"\x87\x03\n\x18UntrackableCloneResponse\x12\x12\n\nclone_sqls\x18\x01 \x03(\t\x12\x14\n\x0c\x63lone_source\x18\x02 \x01(\t\x12\x14\n\x0c\x63lone_target\x18\x03 \x01(\t\x12G\n\x12\x65xplained_decision\x18\x04 \x01(\x0b\x32+.com.fivetran.query_cache.ExplainedDecision\x12s\n\x1atransformed_nodes_by_query\x18\x05 \x03(\x0b\x32O.com.fivetran.query_cache.UntrackableCloneResponse.TransformedNodesByQueryEntry\x1ai\n\x1cTransformedNodesByQueryEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x38\n\x05value\x18\x02 \x01(\x0b\x32).com.fivetran.query_cache.NodeFuncMapping:\x02\x38\x01:\x02\x18\x01\"\x8c\x01\n\x15UnableToCloneResponse\x12\x14\n\x0c\x63lone_source\x18\x01 \x01(\t\x12\x14\n\x0c\x63lone_target\x18\x02 \x01(\t\x12G\n\x12\x65xplained_decision\x18\x03 \x01(\x0b\x32+.com.fivetran.query_cache.ExplainedDecision2i\n\x05\x43lone\x12`\n\rRegisterClone\x12&.com.fivetran.query_cache.CloneRequest\x1a\'.com.fivetran.query_cache.CloneResponseb\x06proto3')
30
30
 
31
31
  _globals = globals()
32
32
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
@@ -50,21 +50,21 @@ if not _descriptor._USE_C_DESCRIPTORS:
50
50
  _globals['_TABLEPROPERTIES']._serialized_start=186
51
51
  _globals['_TABLEPROPERTIES']._serialized_end=331
52
52
  _globals['_CLONEREQUEST']._serialized_start=334
53
- _globals['_CLONEREQUEST']._serialized_end=986
54
- _globals['_CLONEREQUEST_LABELSENTRY']._serialized_start=807
55
- _globals['_CLONEREQUEST_LABELSENTRY']._serialized_end=852
56
- _globals['_CLONERESPONSE']._serialized_start=989
57
- _globals['_CLONERESPONSE']._serialized_end=1328
58
- _globals['_READYTOCLONERESPONSE']._serialized_start=1331
59
- _globals['_READYTOCLONERESPONSE']._serialized_end=2046
60
- _globals['_READYTOCLONERESPONSE_TRANSFORMEDNODESBYQUERYENTRY']._serialized_start=1845
61
- _globals['_READYTOCLONERESPONSE_TRANSFORMEDNODESBYQUERYENTRY']._serialized_end=1950
62
- _globals['_UNTRACKABLECLONERESPONSE']._serialized_start=2049
63
- _globals['_UNTRACKABLECLONERESPONSE']._serialized_end=2440
64
- _globals['_UNTRACKABLECLONERESPONSE_TRANSFORMEDNODESBYQUERYENTRY']._serialized_start=1845
65
- _globals['_UNTRACKABLECLONERESPONSE_TRANSFORMEDNODESBYQUERYENTRY']._serialized_end=1950
66
- _globals['_UNABLETOCLONERESPONSE']._serialized_start=2443
67
- _globals['_UNABLETOCLONERESPONSE']._serialized_end=2583
68
- _globals['_CLONE']._serialized_start=2585
69
- _globals['_CLONE']._serialized_end=2690
53
+ _globals['_CLONEREQUEST']._serialized_end=1040
54
+ _globals['_CLONEREQUEST_LABELSENTRY']._serialized_start=839
55
+ _globals['_CLONEREQUEST_LABELSENTRY']._serialized_end=884
56
+ _globals['_CLONERESPONSE']._serialized_start=1043
57
+ _globals['_CLONERESPONSE']._serialized_end=1382
58
+ _globals['_READYTOCLONERESPONSE']._serialized_start=1385
59
+ _globals['_READYTOCLONERESPONSE']._serialized_end=2100
60
+ _globals['_READYTOCLONERESPONSE_TRANSFORMEDNODESBYQUERYENTRY']._serialized_start=1899
61
+ _globals['_READYTOCLONERESPONSE_TRANSFORMEDNODESBYQUERYENTRY']._serialized_end=2004
62
+ _globals['_UNTRACKABLECLONERESPONSE']._serialized_start=2103
63
+ _globals['_UNTRACKABLECLONERESPONSE']._serialized_end=2494
64
+ _globals['_UNTRACKABLECLONERESPONSE_TRANSFORMEDNODESBYQUERYENTRY']._serialized_start=1899
65
+ _globals['_UNTRACKABLECLONERESPONSE_TRANSFORMEDNODESBYQUERYENTRY']._serialized_end=2004
66
+ _globals['_UNABLETOCLONERESPONSE']._serialized_start=2497
67
+ _globals['_UNABLETOCLONERESPONSE']._serialized_end=2637
68
+ _globals['_CLONE']._serialized_start=2639
69
+ _globals['_CLONE']._serialized_end=2744
70
70
  # @@protoc_insertion_point(module_scope)
@@ -68,6 +68,7 @@ class CloneRequest(google.protobuf.message.Message):
68
68
  TABLE_PROPERTIES_FIELD_NUMBER: builtins.int
69
69
  CLONE_CHAIN_DEPTH_LIMIT_FIELD_NUMBER: builtins.int
70
70
  TABLE_NAMESPACE_FIELD_NUMBER: builtins.int
71
+ SKIP_IF_UNCHANGED_FIELD_NUMBER: builtins.int
71
72
  target_table: builtins.str
72
73
  dialect: builtins.str
73
74
  default_catalog: builtins.str
@@ -77,6 +78,10 @@ class CloneRequest(google.protobuf.message.Message):
77
78
  clone_source_table_type: builtins.str
78
79
  clone_chain_depth_limit: builtins.int
79
80
  table_namespace: builtins.str
81
+ skip_if_unchanged: builtins.bool
82
+ """set when the dev target already exists: skip the clone unless the clone source has changed since the target's
83
+ most recent clone
84
+ """
80
85
  @property
81
86
  def labels(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ...
82
87
  @property
@@ -95,9 +100,10 @@ class CloneRequest(google.protobuf.message.Message):
95
100
  table_properties: global___TableProperties | None = ...,
96
101
  clone_chain_depth_limit: builtins.int | None = ...,
97
102
  table_namespace: builtins.str | None = ...,
103
+ skip_if_unchanged: builtins.bool | None = ...,
98
104
  ) -> None: ...
99
- def HasField(self, field_name: typing.Literal["_clone_chain_depth_limit", b"_clone_chain_depth_limit", "_clone_source_last_modified_epoch", b"_clone_source_last_modified_epoch", "_clone_source_table_type", b"_clone_source_table_type", "_table_namespace", b"_table_namespace", "_table_properties", b"_table_properties", "clone_chain_depth_limit", b"clone_chain_depth_limit", "clone_source_last_modified_epoch", b"clone_source_last_modified_epoch", "clone_source_table_type", b"clone_source_table_type", "table_namespace", b"table_namespace", "table_properties", b"table_properties"]) -> builtins.bool: ...
100
- def ClearField(self, field_name: typing.Literal["_clone_chain_depth_limit", b"_clone_chain_depth_limit", "_clone_source_last_modified_epoch", b"_clone_source_last_modified_epoch", "_clone_source_table_type", b"_clone_source_table_type", "_table_namespace", b"_table_namespace", "_table_properties", b"_table_properties", "clone_chain_depth_limit", b"clone_chain_depth_limit", "clone_source_last_modified_epoch", b"clone_source_last_modified_epoch", "clone_source_table", b"clone_source_table", "clone_source_table_type", b"clone_source_table_type", "default_catalog", b"default_catalog", "dialect", b"dialect", "execution_type", b"execution_type", "labels", b"labels", "table_namespace", b"table_namespace", "table_properties", b"table_properties", "target_table", b"target_table"]) -> None: ...
105
+ def HasField(self, field_name: typing.Literal["_clone_chain_depth_limit", b"_clone_chain_depth_limit", "_clone_source_last_modified_epoch", b"_clone_source_last_modified_epoch", "_clone_source_table_type", b"_clone_source_table_type", "_skip_if_unchanged", b"_skip_if_unchanged", "_table_namespace", b"_table_namespace", "_table_properties", b"_table_properties", "clone_chain_depth_limit", b"clone_chain_depth_limit", "clone_source_last_modified_epoch", b"clone_source_last_modified_epoch", "clone_source_table_type", b"clone_source_table_type", "skip_if_unchanged", b"skip_if_unchanged", "table_namespace", b"table_namespace", "table_properties", b"table_properties"]) -> builtins.bool: ...
106
+ def ClearField(self, field_name: typing.Literal["_clone_chain_depth_limit", b"_clone_chain_depth_limit", "_clone_source_last_modified_epoch", b"_clone_source_last_modified_epoch", "_clone_source_table_type", b"_clone_source_table_type", "_skip_if_unchanged", b"_skip_if_unchanged", "_table_namespace", b"_table_namespace", "_table_properties", b"_table_properties", "clone_chain_depth_limit", b"clone_chain_depth_limit", "clone_source_last_modified_epoch", b"clone_source_last_modified_epoch", "clone_source_table", b"clone_source_table", "clone_source_table_type", b"clone_source_table_type", "default_catalog", b"default_catalog", "dialect", b"dialect", "execution_type", b"execution_type", "labels", b"labels", "skip_if_unchanged", b"skip_if_unchanged", "table_namespace", b"table_namespace", "table_properties", b"table_properties", "target_table", b"target_table"]) -> None: ...
101
107
  @typing.overload
102
108
  def WhichOneof(self, oneof_group: typing.Literal["_clone_chain_depth_limit", b"_clone_chain_depth_limit"]) -> typing.Literal["clone_chain_depth_limit"] | None: ...
103
109
  @typing.overload
@@ -105,6 +111,8 @@ class CloneRequest(google.protobuf.message.Message):
105
111
  @typing.overload
106
112
  def WhichOneof(self, oneof_group: typing.Literal["_clone_source_table_type", b"_clone_source_table_type"]) -> typing.Literal["clone_source_table_type"] | None: ...
107
113
  @typing.overload
114
+ def WhichOneof(self, oneof_group: typing.Literal["_skip_if_unchanged", b"_skip_if_unchanged"]) -> typing.Literal["skip_if_unchanged"] | None: ...
115
+ @typing.overload
108
116
  def WhichOneof(self, oneof_group: typing.Literal["_table_namespace", b"_table_namespace"]) -> typing.Literal["table_namespace"] | None: ...
109
117
  @typing.overload
110
118
  def WhichOneof(self, oneof_group: typing.Literal["_table_properties", b"_table_properties"]) -> typing.Literal["table_properties"] | None: ...