Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

Native task failed when query single partition from a partitioned table. #67

Open
wuxueyang96 opened this issue Oct 13, 2023 · 0 comments

Comments

@wuxueyang96
Copy link
Collaborator

How to reproduce

Creating table sql for a hive table:

CREATE TABLE `tpcds_hdfs_parquet_10.store_returns`(
  `sr_return_time_sk` bigint,
  `sr_item_sk` bigint,
  `sr_customer_sk` bigint,
  `sr_cdemo_sk` bigint,
  `sr_hdemo_sk` bigint,
  `sr_addr_sk` bigint,
  `sr_store_sk` bigint,
  `sr_reason_sk` bigint,
  `sr_ticket_number` bigint,
  `sr_return_quantity` int,
  `sr_return_amt` double,
  `sr_return_tax` double,
  `sr_return_amt_inc_tax` double,
  `sr_fee` double,
  `sr_return_ship_cost` double,
  `sr_refunded_cash` double,
  `sr_reversed_charge` double,
  `sr_store_credit` double,
  `sr_net_loss` double)
PARTITIONED BY (
  `sr_returned_date_sk` bigint)
STORED AS PARQUET;

Query to reproduce:

select count(1) from store_returns where sr_returned_date_sk = 2451545;

Then, it will fail:

image

The only log related to this issue is:

E1013 10:05:14.872857 49692 Exceptions.h:69] Line: ../velox/velox/connectors/hive/HiveDataSource.cpp:834, Function:makeScanSpec, Expression: dataColumns != nullptr , Source: RUNTIME, ErrorCode: INVALID_STATE
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant