constants.py 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. #
  2. # Autogenerated by Thrift Compiler (0.13.0)
  3. #
  4. # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  5. #
  6. # options string: py:new_style
  7. #
  8. from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException
  9. from thrift.protocol.TProtocol import TProtocolException
  10. from thrift.TRecursive import fix_spec
  11. import sys
  12. from .ttypes import *
  13. PRIMITIVE_TYPES = set((
  14. 0,
  15. 1,
  16. 2,
  17. 3,
  18. 4,
  19. 5,
  20. 6,
  21. 7,
  22. 8,
  23. 9,
  24. 15,
  25. 16,
  26. 17,
  27. 18,
  28. 19,
  29. 20,
  30. 21,
  31. 22,
  32. ))
  33. COMPLEX_TYPES = set((
  34. 10,
  35. 11,
  36. 12,
  37. 13,
  38. 14,
  39. ))
  40. COLLECTION_TYPES = set((
  41. 10,
  42. 11,
  43. ))
  44. TYPE_NAMES = {
  45. 10: "ARRAY",
  46. 4: "BIGINT",
  47. 9: "BINARY",
  48. 0: "BOOLEAN",
  49. 19: "CHAR",
  50. 17: "DATE",
  51. 15: "DECIMAL",
  52. 6: "DOUBLE",
  53. 5: "FLOAT",
  54. 21: "INTERVAL_DAY_TIME",
  55. 20: "INTERVAL_YEAR_MONTH",
  56. 3: "INT",
  57. 11: "MAP",
  58. 16: "NULL",
  59. 2: "SMALLINT",
  60. 7: "STRING",
  61. 12: "STRUCT",
  62. 22: "TIMESTAMP WITH LOCAL TIME ZONE",
  63. 8: "TIMESTAMP",
  64. 1: "TINYINT",
  65. 13: "UNIONTYPE",
  66. 18: "VARCHAR",
  67. }
  68. CHARACTER_MAXIMUM_LENGTH = "characterMaximumLength"
  69. PRECISION = "precision"
  70. SCALE = "scale"