Skip to content

Left- vs right-multiplying array by Dask scalar #528

@alexander-held

Description

@alexander-held

The following raises

NotImplementedError: no overload for ak.to_layout with arguments (dask.awkward<from-awkward, npartitions=1>,)

when attempting to multiply the array by a scalar from the left:

import awkward as ak
import dask_awkward as dak

arr = dak.from_awkward(ak.Array([1,3,4]), npartitions=1)
dak.sum(arr, axis=-1) * arr

Doing the same thing from the right works:

arr * dak.sum(arr, axis=-1)

I'm using awkward 2.6.6 and dask_awkward 2024.6.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions