HUE-8737 [indexer] Fix indexer unit tests in py3

Review Request #14678 — Created Dec. 31, 2019 and updated

yingc
hue
master
HUE-8737
jgauthier, johan, ranade, romain, weixia
commit 19b9ffe0afcbbc311fb2c80cc425f2d6e3d5ed40
Author: Ying Chen <yingchen@cloudera.com>
Date:   Tue Dec 31 17:18:08 2019 -0800

    HUE-8737 [indexer] Fix indexer unit tests in py3

:100644 100644 14392badb4... cf2c889ef6... M    apps/beeswax/src/beeswax/templates/create_table_statement.mako
:100644 100644 3304d52c0e... fa13e26c98... M    desktop/libs/indexer/src/indexer/file_format.py
:100644 100644 d60d92da93... 59d61c19bc... M    desktop/libs/indexer/src/indexer/indexers/sql_tests.py
:100644 100644 45c1987096... b2afb8a950... M    desktop/libs/indexer/src/indexer/templates/gen/create_table_statement.mako
:100644 100644 30bc80d3ea... 68c6bf0ad6... M    desktop/libs/indexer/src/indexer/test_utils.py

commit d88a57c37badc8e5c4fb3d6ec9d79c450e8e72dc
Author: Ying Chen <yingchen@cloudera.com>
Date:   Tue Dec 31 20:44:56 2019 -0800

    HUE-8737 [rdbms] Fix rdbms unit tests in py3

:100644 100644 d310d834cc... 5415cc96fe... M    apps/rdbms/src/rdbms/tests.py


  • 0
  • 0
  • 3
  • 0
  • 3
Description From Last Updated
romain
  1. 
      
  2. How about 3 statements? (t avoid any duplication)

    CREATE TABLE `default`.`customer_stats`
    (
    `customers.id` bigint ,
    `customers.name` string ,
    `customers.email_preferences` string ,
    `customers.addresses` string ,
    `customers.orders` string ) PARTITIONED BY (
    `new_field_1` string )
    ROW FORMAT DELIMITED
    FIELDS TERMINATED BY ','
    COLLECTION ITEMS TERMINATED BY '\\002'
    MAP KEYS TERMINATED BY '\\003'
    STORED AS TextFile

    TBLPROPERTIES("transactional" = "false", "skip.header.line.count" = "1")

    TBLPROPERTIES("skip.header.line.count" = "1", "transactional" = "false")

  3. 
      
yingc
Review request changed

Description:

~  

commit aae26c0e0b9843ab6e0d7251109134d9fdb653e4 (HEAD -> py3_unittest)

  ~

commit 19b9ffe0afcbbc311fb2c80cc425f2d6e3d5ed40

    Author: Ying Chen yingchen@cloudera.com
    Date: Tue Dec 31 17:18:08 2019 -0800

   
   
HUE-8737 [indexer] Fix indexer unit tests in py3
   
   

:100644 100644 14392badb4... cf2c889ef6... M apps/beeswax/src/beeswax/templates/create_table_statement.mako

    :100644 100644 3304d52c0e... fa13e26c98... M desktop/libs/indexer/src/indexer/file_format.py
~   :100644 100644 d60d92da93... bd1e69c4a1... M desktop/libs/indexer/src/indexer/indexers/sql_tests.py
  ~ :100644 100644 d60d92da93... 59d61c19bc... M desktop/libs/indexer/src/indexer/indexers/sql_tests.py
    :100644 100644 45c1987096... b2afb8a950... M desktop/libs/indexer/src/indexer/templates/gen/create_table_statement.mako
    :100644 100644 30bc80d3ea... 68c6bf0ad6... M desktop/libs/indexer/src/indexer/test_utils.py

   
   

commit d88a57c37badc8e5c4fb3d6ec9d79c450e8e72dc

    Author: Ying Chen yingchen@cloudera.com
    Date: Tue Dec 31 20:44:56 2019 -0800

   
   
HUE-8737 [rdbms] Fix rdbms unit tests in py3
   
   

:100644 100644 d310d834cc... 5415cc96fe... M apps/rdbms/src/rdbms/tests.py

Diff:

Revision 2 (+40 -26)

Show changes

romain
  1. Nice!

  2. 
      
Loading...