Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
when use a invalid yaml file to register, hawq prints python stack:
[linw@linw-rhel feature]$ hawq register --force -d hawq_feature_test -c /home/linw/workspace/hawq_working/apache-hawq/src/test/feature/ManagementTool/partition/force_mode_normal.yml testhawqregister_testpartitionforcemodenormal.nt
20161031:12:48:49:557022 hawqregister:linw-rhel:linw-[INFO]:-try to connect database localhost:5432 hawq_feature_test
Traceback (most recent call last):
File "/home/linw/hawq-bin/bin/hawqregister", line 1137, in <module>
main(options, args)
File "/home/linw/hawq-bin/bin/hawqregister", line 1093, in main
ins.prepare()
File "/home/linw/hawq-bin/bin/hawqregister", line 1021, in prepare
self._option_parser_yml(options.yml_config)
File "/home/linw/hawq-bin/bin/hawqregister", line 475, in _option_parser_yml
partitions_constraint = [d['Constraint'] for d in params[Format_FileLocations]['Partitions']]
KeyError: 'Constraint'
Instead, hawq should print an error message.
Attachments
Attachments
Issue Links
- relates to
-
HAWQ-991 "HAWQ register" could register tables according to .yml configuration file
- Open