Hola again!

I have a problem when trying to use Hah Join in SQL API.
I am using this doc:

What I am doing:


query = """
SELECT pf.product_sku,
       pf.total_cnt_orders_with_sku,
       rpf.mean_daily_sku_retailer_popularity
FROM ProductFeatures AS pf
         LEFT JOIN RetailerProductFeatures AS rpf
            USE INDEX(HASH_JOIN_IDX)
                   ON pf.product_sku = rpf.product_sku
                       AND rpf.retailer_id = 142
WHERE pf.product_sku IN (52864, 1582957, 110319, 1477711, 272024)
"""

data = next(
    ignite_client.sql(
        query,
        distributed_joins=False,
        enforce_join_order=True,
        collocated=True,
    )
)

What I get:
Index "HASH_JOIN_IDX" not found


So basically it is simple join SQL query that works fine without hash join 
index.
Both tables have affinity key product_sku and this column is part of primary 
key.

When I look at index system tables I see that there is _key_PK_hash index for 
both tables
But I had no luck to specify it - SQL parser can’t find it either.

Please help!

--

Роза Айсина

Старший разработчик ПО

СберМаркет | Доставка из любимых магазинов



Email: [email protected]<mailto:[email protected]>

Mob:

Web: sbermarket.ru<https://sbermarket.ru/>

App: 
iOS<https://apps.apple.com/ru/app/%D1%81%D0%B1%D0%B5%D1%80%D0%BC%D0%B0%D1%80%D0%BA%D0%B5%D1%82-%D0%B4%D0%BE%D1%81%D1%82%D0%B0%D0%B2%D0%BA%D0%B0-%D0%BF%D1%80%D0%BE%D0%B4%D1%83%D0%BA%D1%82%D0%BE%D0%B2/id1166642457>
 и 
Android<https://play.google.com/store/apps/details?id=ru.instamart&hl=en&gl=ru>



УВЕДОМЛЕНИЕ О КОНФИДЕНЦИАЛЬНОСТИ: это электронное сообщение и любые документы, 
приложенные к нему, содержат конфиденциальную информацию. Настоящим уведомляем 
Вас о том, что, если это сообщение не предназначено Вам, использование, 
копирование, распространение информации, содержащейся в настоящем сообщении, а 
также осуществление любых действий на основе этой информации, строго запрещено. 
Если Вы получили это сообщение по ошибке, пожалуйста, сообщите об этом 
отправителю по электронной почте и удалите это сообщение.
CONFIDENTIALITY NOTICE: This email and any files attached to it are 
confidential. If you are not the intended recipient you are notified that 
using, copying, distributing or taking any action in reliance on the contents 
of this information is strictly prohibited. If you have received this email in 
error please notify the sender and delete this email.

Reply via email to