Skip to content

Commit

Permalink
Release v0.11.5.post0 (#225)
Browse files Browse the repository at this point in the history
  • Loading branch information
wjsi committed Jan 8, 2024
1 parent 4c12aa6 commit 59d1678
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion odps/_version.py
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

version_info = (0, 11, 5)
version_info = (0, 11, 5, 'post0')
_num_index = max(idx if isinstance(v, int) else 0
for idx, v in enumerate(version_info))
__version__ = '.'.join(map(str, version_info[:_num_index + 1])) + \
Expand Down
5 changes: 3 additions & 2 deletions odps/apis/storage_api/storage_api.py
Expand Up @@ -576,11 +576,12 @@ def get_request_id(self):
class StorageApiClient(object):
"""Client to bundle configuration needed for API requests."""

def __init__(self, odps: ODPS, table: Table, rest_endpoint: str = None):
def __init__(self, odps: ODPS, table: Table, rest_endpoint: str = None, quota_name: str = None):
if isinstance(odps, ODPS) and isinstance(table, Table):
self._odps = odps
self._table = table
self._rest_endpoint = rest_endpoint
self._quota_name = quota_name
self._tunnel_rest = None
else:
raise ValueError("Please input odps configuration")
Expand All @@ -596,7 +597,7 @@ def tunnel_rest(self):

from ...tunnel.tabletunnel import TableTunnel

tunnel = TableTunnel(self._odps, endpoint=self._rest_endpoint)
tunnel = TableTunnel(self._odps, endpoint=self._rest_endpoint, quota_name=self._quota_name)
self._tunnel_rest = tunnel.tunnel_rest
return self._tunnel_rest

Expand Down
1 change: 0 additions & 1 deletion odps/models/table.py
Expand Up @@ -826,7 +826,6 @@ def head(self, limit, partition=None, columns=None, use_legacy=True, timeout=Non
"""
try:
if pa is not None and not use_legacy:
timeout = timeout if timeout is not None else options.tunnel.legacy_fallback_timeout
return self._head_by_preview(
limit, partition=partition, columns=columns, timeout=timeout
)
Expand Down

0 comments on commit 59d1678

Please sign in to comment.