Guest User

Untitled

a guest
Jan 9th, 2019
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.01 KB | None | 0 0
  1. apache drill 1.10.0
  2. "drill baby drill"
  3. 0: jdbc:drill:zk=titana-ch2-p3:5181/drill/TIT> use sys;
  4. +-------+----------------------------------+
  5. | ok | summary |
  6. +-------+----------------------------------+
  7. | true | Default schema changed to [sys] |
  8. +-------+----------------------------------+
  9. 1 row selected (0.975 seconds)
  10. 0: jdbc:drill:zk=titana-ch2-p3:5181/drill/TIT> select version from version;
  11. +----------+
  12. | version |
  13. +----------+
  14. | 1.10.0 |
  15. +----------+
  16. 1 row selected (0.409 seconds)
  17. 0: jdbc:drill:zk=titana-ch2-p3:5181/drill/TIT>
  18. 0: jdbc:drill:zk=titana-ch2-p3:5181/drill/TIT> select * from users.`sbalas002c`.drill_spl_char;
  19. +------------------------+--------------------------------------------------------------+
  20. | ORIG_CAMPAIGN_LINE_ID | ORIG_CAMPAIGN_LINE_NAME |
  21. +------------------------+--------------------------------------------------------------+
  22. | 30092278 | 1573256-1_306774_SeattleTheatreGroup�_201901_ISV_SEA_Z_SSEA |
  23. | 30092282 | 1573257-1_306774_SeattleTheatreGroup�_201901_ISV_SEA_Z_WORD |
  24. | 30092286 | 1573254-1_306774_SeattleTheatreGroup�_201901_ISV_SEA_Z_BLIS |
  25. | 30092290 | 1573255-1_306774_SeattleTheatreGroup�_201901_ISV_SEA_Z_NSEA |
  26. +------------------------+--------------------------------------------------------------+
  27. 4 rows selected (0.445 seconds)
  28. 0: jdbc:drill:zk=titana-ch2-p3:5181/drill/TIT>
  29. 0: jdbc:drill:zk=titana-ch2-p3:5181/drill/TIT> select ORIG_CAMPAIGN_LINE_NAME,
  30. . . . . . . . . . . . . . . . . . . . . . . .> substr(ORIG_CAMPAIGN_LINE_NAME,1,4) sub_CAMPAIGN_LINE_NAME
  31. . . . . . . . . . . . . . . . . . . . . . . .> from users.`sbalas002c`.drill_spl_char;
  32. Error: SYSTEM ERROR: DrillRuntimeException: Unexpected byte 0xa0 at position 36 encountered while decoding UTF8 string.
  33.  
  34. Fragment 0:0
  35.  
  36. [Error Id: 1889163a-f847-48ad-a7a9-bbe4284e112c on titand-ch2-p20.cable.comcast.com:31010] (state=,code=0)
  37. 0: jdbc:drill:zk=titana-ch2-p3:5181/drill/TIT>
  38. 0: jdbc:drill:zk=titana-ch2-p3:5181/drill/TIT> select ORIG_CAMPAIGN_LINE_NAME,
  39. . . . . . . . . . . . . . . . . . . . . . . .> STRING_BINARY(ORIG_CAMPAIGN_LINE_NAME) SB_CAMPAIGN_LINE_NAME,
  40. . . . . . . . . . . . . . . . . . . . . . . .> regexp_replace(STRING_BINARY(ORIG_CAMPAIGN_LINE_NAME),'\xA0','') Good_CAMPAIGN_LINE_NAME
  41. . . . . . . . . . . . . . . . . . . . . . . .> from users.`sbalas002c`.drill_spl_char;
  42. +--------------------------------------------------------------+-----------------------------------------------------------------+-------------------------------------------------------------+
  43. | ORIG_CAMPAIGN_LINE_NAME | SB_CAMPAIGN_LINE_NAME | Good_CAMPAIGN_LINE_NAME |
  44. +--------------------------------------------------------------+-----------------------------------------------------------------+-------------------------------------------------------------+
  45. | 1573256-1_306774_SeattleTheatreGroup�_201901_ISV_SEA_Z_SSEA | 1573256-1_306774_SeattleTheatreGroupxA0_201901_ISV_SEA_Z_SSEA | 1573256-1_306774_SeattleTheatreGroup_201901_ISV_SEA_Z_SSEA |
  46. | 1573257-1_306774_SeattleTheatreGroup�_201901_ISV_SEA_Z_WORD | 1573257-1_306774_SeattleTheatreGroupxA0_201901_ISV_SEA_Z_WORD | 1573257-1_306774_SeattleTheatreGroup_201901_ISV_SEA_Z_WORD |
  47. | 1573254-1_306774_SeattleTheatreGroup�_201901_ISV_SEA_Z_BLIS | 1573254-1_306774_SeattleTheatreGroupxA0_201901_ISV_SEA_Z_BLIS | 1573254-1_306774_SeattleTheatreGroup_201901_ISV_SEA_Z_BLIS |
  48. | 1573255-1_306774_SeattleTheatreGroup�_201901_ISV_SEA_Z_NSEA | 1573255-1_306774_SeattleTheatreGroupxA0_201901_ISV_SEA_Z_NSEA | 1573255-1_306774_SeattleTheatreGroup_201901_ISV_SEA_Z_NSEA |
  49. +--------------------------------------------------------------+-----------------------------------------------------------------+-------------------------------------------------------------+
  50. 4 rows selected (0.64 seconds)
  51. 0: jdbc:drill:zk=titana-ch2-p3:5181/drill/TIT>
  52.  
  53. Hope this helps others.
Add Comment
Please, Sign In to add comment