Skip to content

Commit

Permalink
Update Hive thrift specification
Browse files Browse the repository at this point in the history
  • Loading branch information
jphalip committed Mar 11, 2024
1 parent d4ae481 commit 40b8648
Show file tree
Hide file tree
Showing 4 changed files with 2,811 additions and 1,271 deletions.
31 changes: 26 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.19.0)
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#
Expand Down Expand Up @@ -45,7 +45,10 @@ 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(' TUploadDataResp UploadData(TUploadDataReq req)')
print(' TDownloadDataResp DownloadData(TDownloadDataReq req)')
print('')
sys.exit(0)

Expand Down Expand Up @@ -251,11 +254,29 @@ 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]),))

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

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

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

0 comments on commit 40b8648

Please sign in to comment.