@Shlomi Lanton Yes, that could be the issue. Please ensure partition column is of a supported data type, such as integer or date.
To enable partition pruning, please try changing the data type of the partition column to a supported data type, such as date as explained in example provide in below blog or the public document:
- Alternatives in Serverless SQL Pools for Delta
Example view query:
CREATE VIEW LDW.vwWebTelemetryDelta
AS
SELECT
UserID,
EventType,
ProductID,
[URL] AS ProductURL,
Device,
SessionViewSeconds,
EventYear,
EventMonth,
EventDate
FROM
OPENROWSET
(
BULK 'cleansed/webtelemetrydeltatwo',
DATA_SOURCE = 'ExternalDataSourceDataLakeUKMI',
FORMAT = 'DELTA'
)
WITH
(
UserID INT,
EventType VARCHAR(20),
ProductID SMALLINT,
URL VARCHAR(25),
Device VARCHAR(10),
SessionViewSeconds INT,
EventYear SMALLINT,
EventMonth TINYINT,
EventDate DATE
) AS fct
Hope this info helps. Let us know how it goes.
Please don’t forget to Accept Answer
and Yes
for "was this answer helpful" wherever the information provided helps you, this can be beneficial to other community members.