Skip to content

Commit f3ba420

Browse files
author
AWS
committed
AWS Glue Update: Adding View related fields to responses of read-only Table APIs.
1 parent dfdc16e commit f3ba420

File tree

2 files changed

+82
-0
lines changed

2 files changed

+82
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "AWS Glue",
4+
"contributor": "",
5+
"description": "Adding View related fields to responses of read-only Table APIs."
6+
}

services/glue/src/main/resources/codegen-resources/service-2.json

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13065,10 +13065,18 @@
1306513065
"shape":"HashString",
1306613066
"documentation":"<p>A cryptographically generated query identifier generated by Glue or Lake Formation.</p>"
1306713067
},
13068+
"IsMultiDialectView":{
13069+
"shape":"Boolean",
13070+
"documentation":"<p>Specifies whether the view supports the SQL dialects of one or more different query engines and can therefore be read by those engines.</p>"
13071+
},
1306813072
"ResourceArn":{
1306913073
"shape":"ArnString",
1307013074
"documentation":"<p>The resource ARN of the parent resource extracted from the request.</p>"
1307113075
},
13076+
"IsProtected":{
13077+
"shape":"Boolean",
13078+
"documentation":"<p>A flag that instructs the engine not to push user-provided operations into the logical plan of the view during query planning. However, if set this flag does not guarantee that the engine will comply. Refer to the engine's documentation to understand the guarantees provided, if any.</p>"
13079+
},
1307213080
"Permissions":{
1307313081
"shape":"PermissionList",
1307413082
"documentation":"<p>The Lake Formation data permissions of the caller on the table. Used to authorize the call when no view context is found.</p>"
@@ -20160,6 +20168,14 @@
2016020168
"FederatedTable":{
2016120169
"shape":"FederatedTable",
2016220170
"documentation":"<p>A <code>FederatedTable</code> structure that references an entity outside the Glue Data Catalog.</p>"
20171+
},
20172+
"ViewDefinition":{
20173+
"shape":"ViewDefinition",
20174+
"documentation":"<p>A structure that contains all the information that defines the view, including the dialect or dialects for the view, and the query.</p>"
20175+
},
20176+
"IsMultiDialectView":{
20177+
"shape":"NullableBoolean",
20178+
"documentation":"<p>Specifies whether the view supports the SQL dialects of one or more different query engines and can therefore be read by those engines.</p>"
2016320179
}
2016420180
},
2016520181
"documentation":"<p>Represents a collection of related data organized in columns and rows.</p>"
@@ -22051,6 +22067,28 @@
2205122067
"min":1,
2205222068
"pattern":"[1-9][0-9]*|[1-9][0-9]*-[1-9][0-9]*"
2205322069
},
22070+
"ViewDefinition":{
22071+
"type":"structure",
22072+
"members":{
22073+
"IsProtected":{
22074+
"shape":"NullableBoolean",
22075+
"documentation":"<p>You can set this flag as true to instruct the engine not to push user-provided operations into the logical plan of the view during query planning. However, setting this flag does not guarantee that the engine will comply. Refer to the engine's documentation to understand the guarantees provided, if any.</p>"
22076+
},
22077+
"Definer":{
22078+
"shape":"ArnString",
22079+
"documentation":"<p>The definer of a view in SQL.</p>"
22080+
},
22081+
"SubObjects":{
22082+
"shape":"ViewSubObjectsList",
22083+
"documentation":"<p>A list of table Amazon Resource Names (ARNs).</p>"
22084+
},
22085+
"Representations":{
22086+
"shape":"ViewRepresentationList",
22087+
"documentation":"<p>A list of representations.</p>"
22088+
}
22089+
},
22090+
"documentation":"<p>A structure containing details for representations.</p>"
22091+
},
2205422092
"ViewDialect":{
2205522093
"type":"string",
2205622094
"enum":[
@@ -22064,6 +22102,44 @@
2206422102
"max":255,
2206522103
"min":1
2206622104
},
22105+
"ViewRepresentation":{
22106+
"type":"structure",
22107+
"members":{
22108+
"Dialect":{
22109+
"shape":"ViewDialect",
22110+
"documentation":"<p>The dialect of the query engine.</p>"
22111+
},
22112+
"DialectVersion":{
22113+
"shape":"ViewDialectVersionString",
22114+
"documentation":"<p>The version of the dialect of the query engine. For example, 3.0.0.</p>"
22115+
},
22116+
"ViewOriginalText":{
22117+
"shape":"ViewTextString",
22118+
"documentation":"<p>The <code>SELECT</code> query provided by the customer during <code>CREATE VIEW DDL</code>. This SQL is not used during a query on a view (<code>ViewExpandedText</code> is used instead). <code>ViewOriginalText</code> is used for cases like <code>SHOW CREATE VIEW</code> where users want to see the original DDL command that created the view.</p>"
22119+
},
22120+
"ViewExpandedText":{
22121+
"shape":"ViewTextString",
22122+
"documentation":"<p>The expanded SQL for the view. This SQL is used by engines while processing a query on a view. Engines may perform operations during view creation to transform <code>ViewOriginalText</code> to <code>ViewExpandedText</code>. For example:</p> <ul> <li> <p>Fully qualify identifiers: <code>SELECT * from table1 → SELECT * from db1.table1</code> </p> </li> </ul>"
22123+
},
22124+
"IsStale":{
22125+
"shape":"NullableBoolean",
22126+
"documentation":"<p>Dialects marked as stale are no longer valid and must be updated before they can be queried in their respective query engines.</p>"
22127+
}
22128+
},
22129+
"documentation":"<p>A structure that contains the dialect of the view, and the query that defines the view.</p>"
22130+
},
22131+
"ViewRepresentationList":{
22132+
"type":"list",
22133+
"member":{"shape":"ViewRepresentation"},
22134+
"max":1000,
22135+
"min":1
22136+
},
22137+
"ViewSubObjectsList":{
22138+
"type":"list",
22139+
"member":{"shape":"ArnString"},
22140+
"max":10,
22141+
"min":0
22142+
},
2206722143
"ViewTextString":{
2206822144
"type":"string",
2206922145
"max":409600

0 commit comments

Comments
 (0)