Skip to content

[test](migrate) move some cases from p2 to p0 (#36750)(#36787)#36922

Merged
morningman merged 2 commits into
apache:branch-2.1from
morningman:21_bp36750
Jun 27, 2024
Merged

[test](migrate) move some cases from p2 to p0 (#36750)(#36787)#36922
morningman merged 2 commits into
apache:branch-2.1from
morningman:21_bp36750

Conversation

@morningman
Copy link
Copy Markdown
Contributor

bp #36750 and #36787

…2 to p0 (apache#36750)

Move test `test_hive_to_date` from `external_table_p2` to
`external_table_p0`,
so that developer can run it locally with docker env.

Guidance for how to migrate suites from hive p2 to hive p0:

1. Create suite dir under
`docker/thirdparties/docker-compose/hive/scripts/suites/`

eg:
`docker/thirdparties/docker-compose/hive/scripts/suites/test_hive_to_date/`
	
2. Prepare the data and hql

- Copy the table's data to
`docker/thirdparties/docker-compose/hive/scripts/suites/test_hive_to_date/data/`
and compress it.
- If data is larger then 1MB, better upload to oss and download at
runtime,
see
`docker/thirdparties/docker-compose/hive/scripts/suites/test_hive_compress_type/run.sh`

- Prepare create table stmt like:
`docker/thirdparties/docker-compose/hive/scripts/suites/test_hive_to_date/create_table.hql`

3. Create `run.sh`

eg:
`docker/thirdparties/docker-compose/hive/scripts/suites/test_hive_to_date/run.sh`
	
	This scripts will be called when the hive docker starts.
	
	It will:
	
	1. put local data to hdfs in hive container.
	2. create hive table in hive container.
- test_external_credit_data
- test_upper_case_column_name
Only move the hive related cases, the iceberg related will be done in
next PR
@doris-robot
Copy link
Copy Markdown

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR

Since 2024-03-18, the Document has been moved to doris-website.
See Doris Document.

@morningman
Copy link
Copy Markdown
Contributor Author

run buildall

@morningman morningman merged commit fcc26cc into apache:branch-2.1 Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants