-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generated from 16f41ff45fce953fd50292dcd43b22e5c70df58f (#2531)
[ADLA] - Catalog - Support table preview * Retrieves a preview set of rows in given table * Retrieves a preview set of rows in given partition
- Loading branch information
1 parent
58cc56e
commit 7f402a8
Showing
4 changed files
with
271 additions
and
0 deletions.
There are no files selected for viewing
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
53 changes: 53 additions & 0 deletions
53
...gmt-datalake-analytics/azure/mgmt/datalake/analytics/catalog/models/usql_table_preview.py
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,53 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. See License.txt in the project root for | ||
# license information. | ||
# | ||
# Code generated by Microsoft (R) AutoRest Code Generator. | ||
# Changes may cause incorrect behavior and will be lost if the code is | ||
# regenerated. | ||
# -------------------------------------------------------------------------- | ||
|
||
from msrest.serialization import Model | ||
|
||
|
||
class USqlTablePreview(Model): | ||
"""A Data Lake Analytics catalog table or partition preview rows item. | ||
:param total_row_count: the total number of rows in the table or | ||
partition. | ||
:type total_row_count: long | ||
:param total_column_count: the total number of columns in the table or | ||
partition. | ||
:type total_column_count: long | ||
:param rows: the rows of the table or partition preview, where each row is | ||
an array of string representations the row's values. Note: Byte arrays | ||
will appear as base-64 encoded values, SqlMap and SqlArray objects will | ||
appear as escaped JSON objects, and DateTime objects will appear as ISO | ||
formatted UTC date-times. | ||
:type rows: list[list[str]] | ||
:param truncated: true if the amount of data in the response is less than | ||
expected due to the preview operation's size limitations. This can occur | ||
if the requested rows or row counts are too large. | ||
:type truncated: bool | ||
:param schema: the schema of the table or partition. | ||
:type schema: | ||
list[~azure.mgmt.datalake.analytics.catalog.models.USqlTableColumn] | ||
""" | ||
|
||
_attribute_map = { | ||
'total_row_count': {'key': 'totalRowCount', 'type': 'long'}, | ||
'total_column_count': {'key': 'totalColumnCount', 'type': 'long'}, | ||
'rows': {'key': 'rows', 'type': '[[str]]'}, | ||
'truncated': {'key': 'truncated', 'type': 'bool'}, | ||
'schema': {'key': 'schema', 'type': '[USqlTableColumn]'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(USqlTablePreview, self).__init__(**kwargs) | ||
self.total_row_count = kwargs.get('total_row_count', None) | ||
self.total_column_count = kwargs.get('total_column_count', None) | ||
self.rows = kwargs.get('rows', None) | ||
self.truncated = kwargs.get('truncated', None) | ||
self.schema = kwargs.get('schema', None) |
53 changes: 53 additions & 0 deletions
53
...datalake-analytics/azure/mgmt/datalake/analytics/catalog/models/usql_table_preview_py3.py
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,53 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. See License.txt in the project root for | ||
# license information. | ||
# | ||
# Code generated by Microsoft (R) AutoRest Code Generator. | ||
# Changes may cause incorrect behavior and will be lost if the code is | ||
# regenerated. | ||
# -------------------------------------------------------------------------- | ||
|
||
from msrest.serialization import Model | ||
|
||
|
||
class USqlTablePreview(Model): | ||
"""A Data Lake Analytics catalog table or partition preview rows item. | ||
:param total_row_count: the total number of rows in the table or | ||
partition. | ||
:type total_row_count: long | ||
:param total_column_count: the total number of columns in the table or | ||
partition. | ||
:type total_column_count: long | ||
:param rows: the rows of the table or partition preview, where each row is | ||
an array of string representations the row's values. Note: Byte arrays | ||
will appear as base-64 encoded values, SqlMap and SqlArray objects will | ||
appear as escaped JSON objects, and DateTime objects will appear as ISO | ||
formatted UTC date-times. | ||
:type rows: list[list[str]] | ||
:param truncated: true if the amount of data in the response is less than | ||
expected due to the preview operation's size limitations. This can occur | ||
if the requested rows or row counts are too large. | ||
:type truncated: bool | ||
:param schema: the schema of the table or partition. | ||
:type schema: | ||
list[~azure.mgmt.datalake.analytics.catalog.models.USqlTableColumn] | ||
""" | ||
|
||
_attribute_map = { | ||
'total_row_count': {'key': 'totalRowCount', 'type': 'long'}, | ||
'total_column_count': {'key': 'totalColumnCount', 'type': 'long'}, | ||
'rows': {'key': 'rows', 'type': '[[str]]'}, | ||
'truncated': {'key': 'truncated', 'type': 'bool'}, | ||
'schema': {'key': 'schema', 'type': '[USqlTableColumn]'}, | ||
} | ||
|
||
def __init__(self, *, total_row_count: int=None, total_column_count: int=None, rows=None, truncated: bool=None, schema=None, **kwargs) -> None: | ||
super(USqlTablePreview, self).__init__(**kwargs) | ||
self.total_row_count = total_row_count | ||
self.total_column_count = total_column_count | ||
self.rows = rows | ||
self.truncated = truncated | ||
self.schema = schema |
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