Skip to content

Commit

Permalink
pulled new Thrift definition from https://raw.githubusercontent.com/a…
Browse files Browse the repository at this point in the history
…pache/hive/master/service-rpc/if/TCLIService.thrift

this version includes TIMESTAMPLOCALTZ_TYPE
  • Loading branch information
The-Alchemist committed Jul 18, 2019
1 parent 6925cd7 commit 23e5dc3
Show file tree
Hide file tree
Showing 4 changed files with 1,903 additions and 1,149 deletions.
17 changes: 12 additions & 5 deletions TCLIService/TCLIService-remote
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python
#
# Autogenerated by Thrift Compiler (0.10.0)
# Autogenerated by Thrift Compiler (0.12.0)
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#
Expand Down Expand Up @@ -45,7 +45,8 @@ if len(sys.argv) <= 1 or sys.argv[1] == '--help':
print(' TGetDelegationTokenResp GetDelegationToken(TGetDelegationTokenReq req)')
print(' TCancelDelegationTokenResp CancelDelegationToken(TCancelDelegationTokenReq req)')
print(' TRenewDelegationTokenResp RenewDelegationToken(TRenewDelegationTokenReq req)')
print(' TGetLogResp GetLog(TGetLogReq req)')
print(' TGetQueryIdResp GetQueryId(TGetQueryIdReq req)')
print(' TSetClientInfoResp SetClientInfo(TSetClientInfoReq req)')
print('')
sys.exit(0)

Expand Down Expand Up @@ -251,11 +252,17 @@ elif cmd == 'RenewDelegationToken':
sys.exit(1)
pp.pprint(client.RenewDelegationToken(eval(args[0]),))

elif cmd == 'GetLog':
elif cmd == 'GetQueryId':
if len(args) != 1:
print('GetLog requires 1 args')
print('GetQueryId requires 1 args')
sys.exit(1)
pp.pprint(client.GetLog(eval(args[0]),))
pp.pprint(client.GetQueryId(eval(args[0]),))

elif cmd == 'SetClientInfo':
if len(args) != 1:
print('SetClientInfo requires 1 args')
sys.exit(1)
pp.pprint(client.SetClientInfo(eval(args[0]),))

else:
print('Unrecognized method %s' % cmd)
Expand Down
Loading

0 comments on commit 23e5dc3

Please sign in to comment.