-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PD-5302: Databricks alterViewProperties
- Loading branch information
1 parent
43ba795
commit 06fd179
Showing
5 changed files
with
160 additions
and
29 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
.../attributes/change-types/databricks/change-type-set-unset-extended-table-properties.flsnp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<html xmlns:MadCap="http://www.madcapsoftware.com/Schemas/MadCap.xsd"> | ||
<body> | ||
<h3><code>setExtendedTableProperties</code> | ||
</h3> | ||
<p><b>Optional.</b> | ||
</p> | ||
<p>Specifies additional properties about the table.</p> | ||
<p><code class="language-text">setExtendedTableProperties</code> has the following nested attributes:</p> | ||
<ul> | ||
<li><code class="language-text">tblProperties</code> (string) <b>(required)</b>: <MadCap:snippetText src="change-type-tbl-properties.flsnp"></MadCap:snippetText></li> | ||
</ul> | ||
<h3><code>unsetExtendedTableProperties</code> | ||
</h3> | ||
<p><b>Optional.</b> | ||
</p> | ||
<p>Removes additional properties that have previously been specified.</p> | ||
<p><code class="language-text">unsetExtendedTableProperties</code> has the following nested attributes:</p> | ||
<ul> | ||
<li><code class="language-text">tblProperties</code> (string) <b>(required)</b>: <MadCap:snippetText src="change-type-tbl-properties.flsnp" /></li> | ||
</ul> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
120 changes: 120 additions & 0 deletions
120
Content/change-types/databricks/alter-view-properties.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<html xmlns:MadCap="http://www.madcapsoftware.com/Schemas/MadCap.xsd" MadCap:searchable="False"> | ||
<head><title><MadCap:variable name="Heading.Level1" /></title> | ||
<link rel="canonical" href="https://docs.liquibase.com/change-types/databricks/alter-view-properties.html" /> | ||
<meta name="description" content="Reference information for the alterViewProperties changetype. alterViewProperties is a changetype in the Liquibase Open Source Databricks extension that alters the properties of a view." /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
</head> | ||
<body> | ||
<MadCap:snippetBlock src="../../Z_Resources/Snippets/images/icon-pro-top.flsnp" /> | ||
<h1 id="alter-table-properties"><code>alterViewProperties</code> | ||
</h1> | ||
<p><code class="language-text">alterViewProperties</code> is a <MadCap:variable name="General.changetypes" /> in the <a href="../../start/tutorials/databricks/home.htm"><MadCap:variable name="General.LBCommunity" /> Databricks extension</a> that alters the properties of a view.</p> | ||
<h2>Uses</h2> | ||
<p> </p> | ||
<h2>Run <code>alterViewProperties</code></h2> | ||
<MadCap:snippetBlock src="../../Z_Resources/Snippets/text/change-type-run-syntax.flsnp" /> | ||
<h2 id="available-attributes">Available <MadCap:variable name="General.Param/Attribute" />s</h2> | ||
<MadCap:snippetBlock src="../../Z_Resources/Snippets/note/database-required-attributes.flsnp" /> | ||
<table> | ||
<col /> | ||
<col /> | ||
<col /> | ||
<col /> | ||
<thead> | ||
<tr> | ||
<th>Name</th> | ||
<th>Type</th> | ||
<th>Description</th> | ||
<th>Requirement</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td><code class="language-text">viewName</code> | ||
</td> | ||
<td>String</td> | ||
<td> | ||
<MadCap:snippetText src="../../Z_Resources/Snippets/def/attributes/change-types/change-type-view-name.flsnp" /> to alter view properties on.</td> | ||
<td><b>Required</b> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<MadCap:snippetBlock src="../../Z_Resources/Snippets/def/attributes/change-types/databricks/change-type-set-unset-extended-table-properties.flsnp" /> | ||
<h2 id="examples">Examples</h2> | ||
<div class="js-tabs"> | ||
<ul class="js-tablist" data-hx="h3"> | ||
<li class="js-tablist__item"><a href="#yaml_example" id="label_yaml_example" class="js-tablist__link">YAML example</a> | ||
</li> | ||
<li class="js-tablist__item"><a href="#json_example" id="label_json_example" class="js-tablist__link">JSON example</a> | ||
</li> | ||
<li class="js-tablist__item"><a href="#xml_example" id="label_xml_example" class="js-tablist__link">XML example</a> | ||
</li> | ||
</ul> | ||
<div id="yaml_example" class="js-tabcontent"><pre xml:space="preserve"><code class="language-yaml">databaseChangeLog: | ||
- changeSet: | ||
id: 2 | ||
author: your.name | ||
changes: | ||
- alterViewProperties: | ||
viewName: test_alter_view_properties | ||
setExtendedTableProperties: | ||
tblProperties: "'external.location'='s3://mybucket/mytable','this.is.my.key'=12,'this.is.my.key2'=true" | ||
rollback: | ||
- alterViewProperties: | ||
viewName: test_alter_view_properties | ||
unsetExtendedTablePropeties: | ||
tblProperties: "'external.location', 'this.is.my.key','this.is.my.key2'"</code></pre> | ||
</div> | ||
<div id="json_example" class="js-tabcontent"><pre xml:space="preserve"><code class="language-json">{ | ||
"databaseChangeLog": [ | ||
{ | ||
"changeSet": { | ||
"id": "2", | ||
"author": "your.name", | ||
"changes": [ | ||
{ | ||
"alterViewProperties": { | ||
"viewName": "test_alter_view_properties", | ||
"setExtendedTableProperties": { | ||
"tblProperties": "'external.location'='s3://mybucket/mytable','this.is.my.key'=12,'this.is.my.key2'=true" | ||
} | ||
} | ||
} | ||
], | ||
"rollback": [ | ||
{ | ||
"alterViewProperties": { | ||
"viewName": "test_alter_view_properties", | ||
"unsetExtendedTableProperties": { | ||
"tblProperties": "'external.location', 'this.is.my.key','this.is.my.key2'" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
] | ||
}</code></pre> | ||
</div> | ||
<div id="xml_example" class="js-tabcontent"><pre xml:space="preserve"><code class="language-xml"><MadCap:snippetText src="../../Z_Resources/Snippets/code/liquibase-xsd-xml-changelog-databricks.flsnp" /> | ||
|
||
<changeSet id="2" author="your.name"> | ||
<databricks:alterViewProperties viewName="test_alter_view_properties"> | ||
<databricks:setExtendedTableProperties tblProperties="'external.location'='s3://mybucket/mytable','this.is.my.key'=12,'this.is.my.key2'=true"/> | ||
</databricks:alterViewProperties> | ||
|
||
<rollback> | ||
<databricks:alterViewProperties viewName="test_alter_view_properties"> | ||
<databricks:unsetExtendedTableProperties tblProperties="'external.location', 'this.is.my.key','this.is.my.key2'"/> | ||
</databricks:alterViewProperties> | ||
</rollback> | ||
</changeSet> | ||
|
||
</databaseChangeLog></code></pre> | ||
</div> | ||
</div> | ||
<MadCap:snippetBlock src="../../Z_Resources/Snippets/text/change-type-databricks-database-support.flsnp" /> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters