Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chrwhit/merge master five #22177

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
ad75273
Exposes management node in azure-core-amqp (#22095)
conniey Jun 7, 2021
940c22d
Annotate HttpRange with Immutable (#22119)
alzimmermsft Jun 7, 2021
779a485
Cosmos Spark: Changing inferSchema.forceNullableProperties default to…
ealsur Jun 7, 2021
e80d82e
Make getScopes in the ARM Authentication Policy Public (#22120)
alzimmermsft Jun 7, 2021
513f071
[Communication]: Update version, changelog, and dependency for June r…
JianpingChen Jun 8, 2021
2878f5d
Increment version for videoanalyzer releases (#21814)
azure-sdk Jun 8, 2021
26f9c7d
Add module-info to jca and jca test module and change package name of…
michaelqi793 Jun 8, 2021
a30e938
Fix error in aad-starter-sample (#22109)
Jun 8, 2021
52f11be
EventGrid Add 4.4.0 new system events. (#22126)
YijunXieMS Jun 8, 2021
81e47a4
Updates to monitor query based on API review feedback (#22114)
srnagar Jun 8, 2021
e2afc2c
Fix Management Bug (#22122)
conniey Jun 8, 2021
0cebceb
mgmt, upgrade aks (#22136)
weidongxu-microsoft Jun 8, 2021
2b7514b
Add domain_hint in aad-stater. (#22134)
han-gao Jun 8, 2021
bee0474
Increment version for core releases (#22124)
azure-sdk Jun 8, 2021
477dd76
Update datafeed tests to remove error code asserts (#22121)
samvaity Jun 8, 2021
fa289ae
Made Tables service interfaces public (#22130)
vcolin7 Jun 8, 2021
126cf34
Adding lmolkova as owner for core, opentelemetry, and azure monitor e…
lmolkova Jun 8, 2021
c44cbf4
Re-generate EventGrid 4.4.0 events without FarmsBeat events (#22148)
YijunXieMS Jun 8, 2021
cd2363d
Client throughput control: Deferring store invocation (#22144)
FabianMeiswinkel Jun 8, 2021
5d276f1
Sync eng/common directory with azure-sdk-tools for PR 1633 (#22145)
azure-sdk Jun 8, 2021
f05d9f0
[Communication]: Update readme to release version (#22149)
JianpingChen Jun 8, 2021
08a76f1
Update pom (#22155)
JianpingChen Jun 8, 2021
ec155b3
Update EventGrid Version to 4.4.0 (#22156)
YijunXieMS Jun 8, 2021
77cdb2d
Prepared storage for GA release of STG77 (#22152)
gapra-msft Jun 8, 2021
d0472fb
Identity versions Update June 2021 (#22153)
g2vinay Jun 8, 2021
eb60fa2
updated keyvault jca changelog for local jre keystore certificates (#…
michaelqi793 Jun 9, 2021
be6d937
mgmt, support vm boot diagnostics on managed storage account (#22162)
weidongxu-microsoft Jun 9, 2021
fca746e
Cosmos Spark: Not-nullable properties to include "id" (#22143)
ealsur Jun 9, 2021
7ff0a47
Update the release dates (#22169)
ankitarorabit Jun 9, 2021
8c6ce2b
fix(*): update master
chrwhit Jun 9, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions eng/code-quality-reports/src/main/resources/revapi/revapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,16 @@
"old": "field com.azure.core.amqp.exception.AmqpErrorContext.serialVersionUID",
"new": "field com.azure.core.amqp.exception.AmqpErrorContext.serialVersionUID",
"justification": "The field ErrorInfo was added to AmqpErrorContext, but no existing fields were removed or changed."
},
{
"code": "java.method.added",
"new": "method com.azure.core.util.HttpClientOptions com.azure.core.util.HttpClientOptions::setReadTimeout(java.time.Duration)",
"justification": "New Setter method."
},
{
"code": "java.method.added",
"new": "method com.azure.core.util.HttpClientOptions com.azure.core.util.HttpClientOptions::setResponseTimeout(java.time.Duration)",
"justification": "New Setter method."
}
]
}
Expand Down
20 changes: 10 additions & 10 deletions eng/jacoco-test-coverage/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-identity</artifactId>
<version>1.4.0-beta.1</version> <!-- {x-version-update;com.azure:azure-identity;current} -->
<version>1.3.1</version> <!-- {x-version-update;com.azure:azure-identity;current} -->
</dependency>
<dependency>
<groupId>com.azure</groupId>
Expand All @@ -204,7 +204,7 @@
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-messaging-eventgrid</artifactId>
<version>4.4.0-beta.1</version> <!-- {x-version-update;com.azure:azure-messaging-eventgrid;current} -->
<version>4.4.0</version> <!-- {x-version-update;com.azure:azure-messaging-eventgrid;current} -->
</dependency>
<dependency>
<groupId>com.azure</groupId>
Expand Down Expand Up @@ -254,17 +254,17 @@
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-storage-common</artifactId>
<version>12.12.0-beta.2</version> <!-- {x-version-update;com.azure:azure-storage-common;current} -->
<version>12.12.0</version> <!-- {x-version-update;com.azure:azure-storage-common;current} -->
</dependency>
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-storage-blob</artifactId>
<version>12.12.0-beta.2</version> <!-- {x-version-update;com.azure:azure-storage-blob;current} -->
<version>12.12.0</version> <!-- {x-version-update;com.azure:azure-storage-blob;current} -->
</dependency>
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-storage-blob-batch</artifactId>
<version>12.10.0-beta.2</version> <!-- {x-version-update;com.azure:azure-storage-blob-batch;current} -->
<version>12.10.0</version> <!-- {x-version-update;com.azure:azure-storage-blob-batch;current} -->
</dependency>
<dependency>
<groupId>com.azure</groupId>
Expand All @@ -274,7 +274,7 @@
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-storage-blob-cryptography</artifactId>
<version>12.12.0-beta.2</version> <!-- {x-version-update;com.azure:azure-storage-blob-cryptography;current} -->
<version>12.12.0</version> <!-- {x-version-update;com.azure:azure-storage-blob-cryptography;current} -->
</dependency>
<dependency>
<groupId>com.azure</groupId>
Expand All @@ -284,22 +284,22 @@
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-storage-file-share</artifactId>
<version>12.10.0-beta.2</version> <!-- {x-version-update;com.azure:azure-storage-file-share;current} -->
<version>12.10.0</version> <!-- {x-version-update;com.azure:azure-storage-file-share;current} -->
</dependency>
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-storage-file-datalake</artifactId>
<version>12.6.0-beta.2</version> <!-- {x-version-update;com.azure:azure-storage-file-datalake;current} -->
<version>12.6.0</version> <!-- {x-version-update;com.azure:azure-storage-file-datalake;current} -->
</dependency>
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-storage-internal-avro</artifactId>
<version>12.0.5-beta.1</version> <!-- {x-version-update;com.azure:azure-storage-internal-avro;current} -->
<version>12.0.5</version> <!-- {x-version-update;com.azure:azure-storage-internal-avro;current} -->
</dependency>
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-storage-queue</artifactId>
<version>12.10.0-beta.2</version> <!-- {x-version-update;com.azure:azure-storage-queue;current} -->
<version>12.10.0</version> <!-- {x-version-update;com.azure:azure-storage-queue;current} -->
</dependency>
<dependency>
<groupId>com.azure</groupId>
Expand Down
20 changes: 10 additions & 10 deletions eng/versioning/version_client.txt
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@ com.azure:azure-data-schemaregistry-avro;1.0.0-beta.4;1.0.0-beta.5
com.azure:azure-data-tables;12.0.0-beta.7;12.0.0-beta.8
com.azure:azure-digitaltwins-core;1.1.1;1.2.0-beta.1
com.azure:azure-e2e;1.0.0-beta.1;1.0.0-beta.1
com.azure:azure-identity;1.3.0;1.4.0-beta.1
com.azure:azure-identity;1.3.0;1.3.1
com.azure:azure-identity-perf;1.0.0-beta.1;1.0.0-beta.1
com.azure:azure-iot-deviceupdate;1.0.0-beta.1;1.0.0-beta.2
com.azure:azure-iot-modelsrepository;1.0.0-beta.1;1.0.0-beta.2
com.azure:azure-messaging-eventgrid;4.3.0;4.4.0-beta.1
com.azure:azure-messaging-eventgrid;4.3.0;4.4.0
com.azure:azure-messaging-eventhubs;5.7.1;5.8.0-beta.1
com.azure:azure-messaging-eventhubs-checkpointstore-blob;1.7.1;1.8.0-beta.1
com.azure:azure-messaging-eventhubs-track1-perf;1.0.0-beta.1;1.0.0-beta.1
Expand All @@ -115,17 +115,17 @@ com.azure:azure-security-keyvault-secrets;4.2.8;4.3.0-beta.7
com.azure:azure-sdk-template;1.2.1-beta.2;1.2.1-beta.16
com.azure:azure-spring-data-cosmos;3.7.0;3.8.0-beta.1
com.azure:azure-spring-data-cosmos-test;3.0.0-beta.1;3.0.0-beta.1
com.azure:azure-storage-blob;12.11.1;12.12.0-beta.2
com.azure:azure-storage-blob-batch;12.9.1;12.10.0-beta.2
com.azure:azure-storage-blob;12.11.1;12.12.0
com.azure:azure-storage-blob-batch;12.9.1;12.10.0
com.azure:azure-storage-blob-changefeed;12.0.0-beta.6;12.0.0-beta.7
com.azure:azure-storage-blob-cryptography;12.11.1;12.12.0-beta.2
com.azure:azure-storage-blob-cryptography;12.11.1;12.12.0
com.azure:azure-storage-blob-nio;12.0.0-beta.6;12.0.0-beta.7
com.azure:azure-storage-common;12.11.1;12.12.0-beta.2
com.azure:azure-storage-file-share;12.9.1;12.10.0-beta.2
com.azure:azure-storage-file-datalake;12.5.1;12.6.0-beta.2
com.azure:azure-storage-internal-avro;12.0.4;12.0.5-beta.1
com.azure:azure-storage-common;12.11.1;12.12.0
com.azure:azure-storage-file-share;12.9.1;12.10.0
com.azure:azure-storage-file-datalake;12.5.1;12.6.0
com.azure:azure-storage-internal-avro;12.0.4;12.0.5
com.azure:azure-storage-perf;1.0.0-beta.1;1.0.0-beta.1
com.azure:azure-storage-queue;12.9.1;12.10.0-beta.2
com.azure:azure-storage-queue;12.9.1;12.10.0
com.azure:azure-template-perf;1.0.0-beta.1;1.0.0-beta.1
com.azure:azure-media-videoanalyzer-edge;1.0.0-beta.3;1.0.0-beta.4
com.azure:azure-verticals-agrifood-farming;1.0.0-beta.2;1.0.0-beta.3
Expand Down
2 changes: 1 addition & 1 deletion sdk/communication/azure-communication-common/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ It is intended to provide cross cutting concerns, e.g. authentication.
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-communication-common</artifactId>
<version>1.0.1</version>
<version>1.0.2</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
2 changes: 1 addition & 1 deletion sdk/communication/azure-communication-identity/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ The identity package is used for managing users and tokens for Azure Communicati
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-communication-identity</artifactId>
<version>1.1.0</version>
<version>1.1.1</version>
</dependency>
```

Expand Down
16 changes: 16 additions & 0 deletions sdk/communication/azure-communication-identity/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,22 @@
</rules>
</configuration>
</plugin>
<plugin>
<groupId>org.revapi</groupId>
<artifactId>revapi-maven-plugin</artifactId>
<version>0.11.2</version> <!-- {x-version-update;org.revapi:revapi-maven-plugin;external_dependency} -->
<configuration>
<analysisConfiguration>
<revapi.ignore>
<item>
<code>java.method.added</code>
<class>com.azure.core.util.HttpClientOptions</class>
<justification>Transitive from Core. Not our problem</justification>
</item>
</revapi.ignore>
</analysisConfiguration>
</configuration>
</plugin>
</plugins>
</build>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Purchased phone numbers can come with many capabilities, depending on the countr
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-communication-phonenumbers</artifactId>
<version>1.0.2</version>
<version>1.0.3</version>
</dependency>
```

Expand Down
21 changes: 21 additions & 0 deletions sdk/communication/azure-communication-phonenumbers/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,27 @@
</rules>
</configuration>
</plugin>
<plugin>
<groupId>org.revapi</groupId>
<artifactId>revapi-maven-plugin</artifactId>
<version>0.11.2</version> <!-- {x-version-update;org.revapi:revapi-maven-plugin;external_dependency} -->
<configuration>
<analysisConfiguration>
<revapi.ignore>
<item>
<code>java.method.added</code>
<class>com.azure.core.util.HttpClientOptions</class>
<justification>Transitive from Core. Not our problem</justification>
</item>
<item>
<code>java.method.added</code>
<class>com.azure.core.http.rest.PagedFlux</class>
<justification>Transitive from Core. Not our problem</justification>
</item>
</revapi.ignore>
</analysisConfiguration>
</configuration>
</plugin>
</plugins>
</build>

Expand Down
2 changes: 1 addition & 1 deletion sdk/communication/azure-communication-sms/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Azure Communication SMS is used to send simple text messages.
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-communication-sms</artifactId>
<version>1.0.2</version>
<version>1.0.3</version>
</dependency>
```

Expand Down
16 changes: 16 additions & 0 deletions sdk/communication/azure-communication-sms/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,22 @@
</rules>
</configuration>
</plugin>
<plugin>
<groupId>org.revapi</groupId>
<artifactId>revapi-maven-plugin</artifactId>
<version>0.11.2</version> <!-- {x-version-update;org.revapi:revapi-maven-plugin;external_dependency} -->
<configuration>
<analysisConfiguration>
<revapi.ignore>
<item>
<code>java.method.added</code>
<class>com.azure.core.util.HttpClientOptions</class>
<justification>Transitive from Core. Not our problem</justification>
</item>
</revapi.ignore>
</analysisConfiguration>
</configuration>
</plugin>
</plugins>
</build>

Expand Down
8 changes: 4 additions & 4 deletions sdk/communication/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,22 +35,22 @@
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-communication-common</artifactId>
<version>1.1.0-beta.1</version> <!-- {x-version-update;com.azure:azure-communication-common;current} -->
<version>1.0.2</version> <!-- {x-version-update;com.azure:azure-communication-common;current} -->
</dependency>
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-communication-identity</artifactId>
<version>1.2.0-beta.1</version> <!-- {x-version-update;com.azure:azure-communication-identity;current} -->
<version>1.1.1</version> <!-- {x-version-update;com.azure:azure-communication-identity;current} -->
</dependency>
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-communication-phonenumbers</artifactId>
<version>1.1.0-beta.1</version> <!-- {x-version-update;com.azure:azure-communication-phonenumbers;current} -->
<version>1.0.3</version> <!-- {x-version-update;com.azure:azure-communication-phonenumbers;current} -->
</dependency>
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-communication-sms</artifactId>
<version>1.1.0-beta.1</version> <!-- {x-version-update;com.azure:azure-communication-sms;current} -->
<version>1.0.3</version> <!-- {x-version-update;com.azure:azure-communication-sms;current} -->
</dependency>
</dependencies>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@ private object CosmosTableSchemaInferrer
ResourceIdAttributeName,
AttachmentsAttributeName)

private val notNullableProperties = List(
IdAttributeName,
ETagAttributeName,
SelfAttributeName,
ResourceIdAttributeName,
TimestampAttributeName,
AttachmentsAttributeName)

private[spark] def inferSchema(
inferredItems: Seq[ObjectNode],
includeSystemProperties: Boolean,
Expand Down Expand Up @@ -125,7 +133,7 @@ private object CosmosTableSchemaInferrer
case anyType: DataType => field.getKey -> StructField(
field.getKey,
anyType,
nullable= !systemProperties.contains(field.getKey) && allowNullForInferredProperties)
nullable= !notNullableProperties.contains(field.getKey) && allowNullForInferredProperties)
})
.toSeq)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class CosmosTableSchemaInferrerSpec extends UnitSpec {
schema.fields(1).name shouldBe "otherProperty"
schema.fields(0).dataType shouldBe StringType
schema.fields(1).dataType shouldBe StringType
schema.fields(0).nullable shouldBe true
schema.fields(0).nullable shouldBe false
schema.fields(1).nullable shouldBe true
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,12 @@ class SparkE2EQueryITest
fieldNames.contains(CosmosTableSchemaInferrer.ResourceIdAttributeName) shouldBe true
fieldNames.contains(CosmosTableSchemaInferrer.ETagAttributeName) shouldBe true
fieldNames.contains(CosmosTableSchemaInferrer.AttachmentsAttributeName) shouldBe true

rowWithInference.schema(CosmosTableSchemaInferrer.SelfAttributeName).nullable shouldBe false
rowWithInference.schema(CosmosTableSchemaInferrer.TimestampAttributeName).nullable shouldBe false
rowWithInference.schema(CosmosTableSchemaInferrer.ResourceIdAttributeName).nullable shouldBe false
rowWithInference.schema(CosmosTableSchemaInferrer.ETagAttributeName).nullable shouldBe false
rowWithInference.schema(CosmosTableSchemaInferrer.AttachmentsAttributeName).nullable shouldBe false
}

"spark query" can "use schema inference with just timestamp" in {
Expand Down Expand Up @@ -438,7 +444,7 @@ class SparkE2EQueryITest
"spark.cosmos.database" -> cosmosDatabase,
"spark.cosmos.container" -> cosmosContainer,
"spark.cosmos.read.inferSchema.enabled" -> "true",
"spark.cosmos.read.inferSchema.query" -> "select TOP 1 c.type, c.age, c.isAlive, c._ts from c",
"spark.cosmos.read.inferSchema.query" -> "select TOP 1 c.type, c.age, c.isAlive, c._ts, c.id from c",
"spark.cosmos.read.partitioning.strategy" -> "Restrictive"
)

Expand All @@ -455,9 +461,67 @@ class SparkE2EQueryITest
val fieldNames = rowWithInference.schema.fields.map(field => field.name)
fieldNames.contains(CosmosTableSchemaInferrer.SelfAttributeName) shouldBe false
fieldNames.contains(CosmosTableSchemaInferrer.TimestampAttributeName) shouldBe true
fieldNames.contains(CosmosTableSchemaInferrer.IdAttributeName) shouldBe true
fieldNames.contains(CosmosTableSchemaInferrer.ResourceIdAttributeName) shouldBe false
fieldNames.contains(CosmosTableSchemaInferrer.ETagAttributeName) shouldBe false
fieldNames.contains(CosmosTableSchemaInferrer.AttachmentsAttributeName) shouldBe false

rowWithInference.schema(CosmosTableSchemaInferrer.TimestampAttributeName).nullable shouldBe false
rowWithInference.schema(CosmosTableSchemaInferrer.IdAttributeName).nullable shouldBe false
rowWithInference.schema("type").nullable shouldBe true
rowWithInference.schema("age").nullable shouldBe true
rowWithInference.schema("isAlive").nullable shouldBe true
}

"spark query" can "when forceNullableProperties is false and rows have different schema" in {
val cosmosEndpoint = TestConfigurations.HOST
val cosmosMasterKey = TestConfigurations.MASTER_KEY
val samplingSize = 100
val expectedResults = samplingSize * 2
val container = cosmosClient.getDatabase(cosmosDatabase).getContainer(cosmosContainer)

// Inserting documents with slightly different schema
for( _ <- 1 to expectedResults) {
val objectNode = Utils.getSimpleObjectMapper.createObjectNode()
val arr = objectNode.putArray("object_array")
val nested = Utils.getSimpleObjectMapper.createObjectNode()
nested.put("A", "test")
nested.put("B", "test")
arr.add(nested)
objectNode.put("id", UUID.randomUUID().toString)
container.createItem(objectNode).block()
}

for( _ <- 1 to samplingSize) {
val objectNode2 = Utils.getSimpleObjectMapper.createObjectNode()
val arr = objectNode2.putArray("object_array")
val nested = Utils.getSimpleObjectMapper.createObjectNode()
nested.put("A", "test")
arr.add(nested)
objectNode2.put("id", UUID.randomUUID().toString)
container.createItem(objectNode2).block()
}

val cfgWithInference = Map("spark.cosmos.accountEndpoint" -> cosmosEndpoint,
"spark.cosmos.accountKey" -> cosmosMasterKey,
"spark.cosmos.database" -> cosmosDatabase,
"spark.cosmos.container" -> cosmosContainer,
"spark.cosmos.read.inferSchema.enabled" -> "true",
"spark.cosmos.read.inferSchema.forceNullableProperties" -> "false",
"spark.cosmos.read.inferSchema.samplingSize" -> samplingSize.toString,
"spark.cosmos.read.inferSchema.query" -> "SELECT * FROM c ORDER BY c._ts",
"spark.cosmos.read.partitioning.strategy" -> "Restrictive"
)

val dfWithInference = spark.read.format("cosmos.oltp").options(cfgWithInference).load()
try {
dfWithInference.collect()
fail("Should have thrown an exception")
}
catch {
case inner: Exception =>
inner.toString.contains("The 1th field 'B' of input row cannot be null") shouldBe true
}
}

"spark query" can "when forceNullableProperties is false and rows have different schema" in {
Expand Down
Loading