Skip to content

Commit 88844db

Browse files
feat: DataQualityDimension is now part of the DataQualityDimensionResult message (#11791)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 571976684 Source-Link: googleapis/googleapis@38d8c5d Source-Link: googleapis/googleapis-gen@2132f5e Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRhdGFwbGV4Ly5Pd2xCb3QueWFtbCIsImgiOiIyMTMyZjVlMWE0NGI2OTNjNzRiM2NlNTNiMDNlZDRmNjcyMWJjMWRhIn0= --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 9f06089 commit 88844db

File tree

9 files changed

+38
-27
lines changed

9 files changed

+38
-27
lines changed

packages/google-cloud-dataplex/CONTRIBUTING.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,12 +143,12 @@ Running System Tests
143143
$ nox -s system
144144

145145
# Run a single system test
146-
$ nox -s system- -- -k <name of test>
146+
$ nox -s system-3.11 -- -k <name of test>
147147

148148

149149
.. note::
150150

151-
System tests are only configured to run under Python.
151+
System tests are only configured to run under Python 3.8, 3.9, 3.10 and 3.11.
152152
For expediency, we do not run them in older versions of Python 3.
153153

154154
This alone will not run the tests. You'll need to change some local

packages/google-cloud-dataplex/google/cloud/dataplex/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
DataProfileSpec,
6363
)
6464
from google.cloud.dataplex_v1.types.data_quality import (
65+
DataQualityDimension,
6566
DataQualityDimensionResult,
6667
DataQualityResult,
6768
DataQualityRule,
@@ -212,6 +213,7 @@
212213
"UpdateContentRequest",
213214
"DataProfileResult",
214215
"DataProfileSpec",
216+
"DataQualityDimension",
215217
"DataQualityDimensionResult",
216218
"DataQualityResult",
217219
"DataQualityRule",

packages/google-cloud-dataplex/google/cloud/dataplex/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "1.6.3" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-dataplex/google/cloud/dataplex_v1/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
)
4141
from .types.data_profile import DataProfileResult, DataProfileSpec
4242
from .types.data_quality import (
43+
DataQualityDimension,
4344
DataQualityDimensionResult,
4445
DataQualityResult,
4546
DataQualityRule,
@@ -190,6 +191,7 @@
190191
"DataAttributeBinding",
191192
"DataProfileResult",
192193
"DataProfileSpec",
194+
"DataQualityDimension",
193195
"DataQualityDimensionResult",
194196
"DataQualityResult",
195197
"DataQualityRule",

packages/google-cloud-dataplex/google/cloud/dataplex_v1/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "1.6.3" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-dataplex/google/cloud/dataplex_v1/types/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
)
2525
from .data_profile import DataProfileResult, DataProfileSpec
2626
from .data_quality import (
27+
DataQualityDimension,
2728
DataQualityDimensionResult,
2829
DataQualityResult,
2930
DataQualityRule,
@@ -157,6 +158,7 @@
157158
"UpdateContentRequest",
158159
"DataProfileResult",
159160
"DataProfileSpec",
161+
"DataQualityDimension",
160162
"DataQualityDimensionResult",
161163
"DataQualityResult",
162164
"DataQualityRule",

packages/google-cloud-dataplex/google/cloud/dataplex_v1/types/data_quality.py

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"DataQualityResult",
2929
"DataQualityRuleResult",
3030
"DataQualityDimensionResult",
31+
"DataQualityDimension",
3132
"DataQualityRule",
3233
},
3334
)
@@ -295,16 +296,41 @@ class DataQualityDimensionResult(proto.Message):
295296
per-dimension view of the results.
296297
297298
Attributes:
299+
dimension (google.cloud.dataplex_v1.types.DataQualityDimension):
300+
Output only. The dimension config specified
301+
in the DataQualitySpec, as is.
298302
passed (bool):
299303
Whether the dimension passed or failed.
300304
"""
301305

306+
dimension: "DataQualityDimension" = proto.Field(
307+
proto.MESSAGE,
308+
number=1,
309+
message="DataQualityDimension",
310+
)
302311
passed: bool = proto.Field(
303312
proto.BOOL,
304313
number=3,
305314
)
306315

307316

317+
class DataQualityDimension(proto.Message):
318+
r"""A dimension captures data quality intent about a defined
319+
subset of the rules specified.
320+
321+
Attributes:
322+
name (str):
323+
The dimension name a rule belongs to. Supported dimensions
324+
are ["COMPLETENESS", "ACCURACY", "CONSISTENCY", "VALIDITY",
325+
"UNIQUENESS", "INTEGRITY"]
326+
"""
327+
328+
name: str = proto.Field(
329+
proto.STRING,
330+
number=1,
331+
)
332+
333+
308334
class DataQualityRule(proto.Message):
309335
r"""A rule captures data quality intent about a data source.
310336

packages/google-cloud-dataplex/noxfile.py

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
UNIT_TEST_EXTRAS = []
4747
UNIT_TEST_EXTRAS_BY_PYTHON = {}
4848

49-
SYSTEM_TEST_PYTHON_VERSIONS = []
49+
SYSTEM_TEST_PYTHON_VERSIONS = ["3.8", "3.9", "3.10", "3.11"]
5050
SYSTEM_TEST_STANDARD_DEPENDENCIES = [
5151
"mock",
5252
"pytest",
@@ -405,24 +405,3 @@ def prerelease_deps(session):
405405
session.run("python", "-c", "import google.auth; print(google.auth.__version__)")
406406

407407
session.run("py.test", "tests/unit")
408-
409-
system_test_path = os.path.join("tests", "system.py")
410-
system_test_folder_path = os.path.join("tests", "system")
411-
412-
# Only run system tests if found.
413-
if os.path.exists(system_test_path):
414-
session.run(
415-
"py.test",
416-
"--verbose",
417-
f"--junitxml=system_{session.python}_sponge_log.xml",
418-
system_test_path,
419-
*session.posargs,
420-
)
421-
if os.path.exists(system_test_folder_path):
422-
session.run(
423-
"py.test",
424-
"--verbose",
425-
f"--junitxml=system_{session.python}_sponge_log.xml",
426-
system_test_folder_path,
427-
*session.posargs,
428-
)

packages/google-cloud-dataplex/samples/generated_samples/snippet_metadata_google.cloud.dataplex.v1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"language": "PYTHON",
1010
"name": "google-cloud-dataplex",
11-
"version": "1.6.3"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

0 commit comments

Comments
 (0)